1. 01 Oct, 2012 1 commit
  2. 10 Aug, 2012 1 commit
    • Jose Fonseca's avatar
      Fix build on MinGW. · a086d33d
      Jose Fonseca authored
      MinGW has many Unix headers, but unfortunately aren't complete.
      
      This fixes build failure due to missing S_ISLNK() macro.
      a086d33d
  3. 31 Jul, 2012 1 commit
  4. 16 Jul, 2012 2 commits
  5. 28 Jun, 2012 3 commits
  6. 20 Jun, 2012 1 commit
  7. 24 May, 2012 1 commit
  8. 29 Apr, 2012 1 commit
  9. 09 Apr, 2012 1 commit
  10. 27 Jan, 2012 1 commit
  11. 06 Jan, 2012 1 commit
    • Paul Berry's avatar
      Modify piglit_check_gl_error() to return a boolean. · 83c8ef80
      Paul Berry authored
      Previously piglit_check_gl_error() would terminate the test if an
      error occurred.  However, there are many cases when we would prefer to
      simply report the error, and continue testing.
      
      Where it was convenient, I've replaced calls of the form
      
      piglit_check_gl_error(..., PIGLIT_FAIL);
      
      with
      
      pass = piglit_check_gl_error(...) && pass;
      
      So that the test can continue executing.
      
      In other cases, I replaced it with
      
      if (!piglit_check_gl_error(...))
              piglit_report_result(PIGLIT_FAIL);
      
      Which is equivalent to the old functionality.
      Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
      83c8ef80
  12. 21 Dec, 2011 1 commit
    • Paul Berry's avatar
      Fix infinite loop in piglit_is_extension_in_string. · 38b46694
      Paul Berry authored
      If piglit_is_extension_in_string() finds an extension whose name
      begins with the name it is searching for, but is not equal to the name
      it is searching for (e.g. it is searching for EXT_transform_feedback
      but it finds EXT_transform_feedback2), we need it to advance to the
      end of the substring it's found before restarting the search,
      otherwise it will loop indefinitely.
      
      Prevents a hang when running some transform feedback tests on nVidia's
      proprietary Linux driver.
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      38b46694
  13. 14 Dec, 2011 1 commit
  14. 09 Dec, 2011 1 commit
  15. 30 Nov, 2011 1 commit
  16. 17 Oct, 2011 3 commits
    • Paul Berry's avatar
      Fix incorrect variable in piglit_get_gl_version · 2391d290
      Paul Berry authored
      In commit 2733dc61, I accidentally
      passed version_string to sscanf instead of version_number_string,
      causing the piglit_get_gl_version() to fail on OpenGL ES.
      Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
      2391d290
    • Paul Berry's avatar
      Add a piglit_require_gl_version() function. · 79e03b9e
      Paul Berry authored
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      79e03b9e
    • Paul Berry's avatar
      Split piglit_get_gl_version() into two functions. · 2733dc61
      Paul Berry authored
      Previously, piglit_get_gl_version() had three return values: the GL
      version (major and minor version numbers separately) and a boolean
      indicating whether or not the API is GL ES.  This meant that we had to
      jump through hoops in order to use it, e.g.:
      
          /* Are we using GL with a version of at least 3.1? */
          bool es;
          int major;
          int minor;
          piglit_get_gl_version(&es, &major, &minor);
          if (!es && (major > 3 || (major == 3 && minor >= 1)))
              ...
      
      This patch changes piglit_get_gl_version() so that it returns a single
      integer whose value is 10 times the GL version (e.g. 31 for GL version
      3.1), and splits off the functionality for checking whether the API is
      GL ES to a new function, piglit_is_gles().
      
      Now the same logic looks like this:
      
          /* Are we using GL with a version of at least 3.1? */
          if (!piglit_is_gles() && piglit_get_gl_version() >= 31)
              ...
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      2733dc61
  17. 15 Sep, 2011 1 commit
  18. 09 Sep, 2011 3 commits
  19. 31 Aug, 2011 2 commits
    • Vinson Lee's avatar
      util: Remove unused variables. · 430784ed
      Vinson Lee authored
      Fixes these GCC warnings.
      piglit-util.c:183: warning: unused variable 'actual_name'
      piglit-util.c:182: warning: unused variable 'expected_name'
      430784ed
    • Vinson Lee's avatar
      util: Fix printf format warning. · 94d46718
      Vinson Lee authored
      Fixes this GCC warning.
      piglit-util.c:202: warning: format '%x' expects type 'unsigned int', but
      argument 2 has type 'const char *'
      94d46718
  20. 30 Aug, 2011 2 commits
  21. 19 Aug, 2011 1 commit
    • Ian Romanick's avatar
      Add piglit_set_rlimit utility function · b8d96338
      Ian Romanick authored
      This function sets the maximum amount of memory that a process can
      have in its address space.  This is useful for tests that use
      "infinite" memory on failing implementations.  Setting this low can
      prevent the test from exhausting system memory and adversely affecting
      other tests.
      Acked-by: Jose Fonseca's avatarJosé Fonseca <jfonseca@vmware.com>
      b8d96338
  22. 13 Jul, 2011 1 commit
  23. 24 May, 2011 1 commit
  24. 19 May, 2011 1 commit
  25. 18 May, 2011 1 commit
  26. 29 Apr, 2011 1 commit
  27. 28 Apr, 2011 1 commit
  28. 14 Mar, 2011 1 commit
    • Jose Fonseca's avatar
      s/WIN32/_WIN32/ · f1377213
      Jose Fonseca authored
      The proper macro for Windows operating systems is _WIN32 and not WIN32.
      Thanks to Vinson Lee to remind me of that.
      f1377213
  29. 13 Mar, 2011 1 commit
  30. 12 Mar, 2011 2 commits