1. 29 Mar, 2019 1 commit
  2. 11 Jun, 2018 1 commit
  3. 05 Feb, 2018 1 commit
  4. 24 Oct, 2017 1 commit
  5. 31 Jul, 2017 1 commit
  6. 12 Jun, 2017 1 commit
    • Brian Paul's avatar
      util: fix Cygwin stdout/stderr buffering · 5aeb0136
      Brian Paul authored
      Using Cywin on Windows, printf() to stdout/stderr aren't immediately
      flushed.  So Piglit messages about failed pixel probes, etc. don't appear
      until the test exits.  This patch calls setbuf() to disable buffering so
      the output appears right away.
      
      Refactor the init code a bit to avoid calling setbuf() from some
      arbitrary place otherwise.
      
      Reviewed-by: Neha Bhende<bhenden@vmware.com>
      Reviewed-by: Jose Fonseca's avatarJosé Fonseca <jfonseca@vmware.com>
      5aeb0136
  7. 10 May, 2017 1 commit
  8. 03 Feb, 2017 1 commit
  9. 27 Oct, 2016 1 commit
    • Robert Bragg's avatar
      util: Add piglit_delay_ns() api · e0048f49
      Robert Bragg authored
      Provides a utility for blocking the cpu for a requested time (best
      effort) and returning the actual duration blocked.
      
      This should e.g. be useful for comparing durations measured via arb
      timer queries vs a monotonic system clock, where it's acceptable if we
      don't achieve an exact reference delay on the cpu (say due to OS
      signalling or scheduling conditions) so long as we get told accurately
      how long the final delay ended up being.
      Signed-off-by: Robert Bragg's avatarRobert Bragg <robert@sixbynine.org>
      Acked-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
      e0048f49
  10. 14 Oct, 2016 1 commit
    • Ian Romanick's avatar
      fbo: Ensure power-of-two window size in tests that make textures w/the window size · 858b4e67
      Ian Romanick authored
      Commit 0f163d1d removed the non-default window size from many tests.
      However, quite a few of these tests had power-of-two window sizes for
      drivers that do not support GL_ARB_texture_non_power_of_two.
      
      Fixes
      
          fbo-nodepth-test on NV20 and i865G
          fbo-nostencil-test on NV20 and i865G
          fbo-alphatest-formats on i865G
          fbo-blending-formats on NV20 and i865G
      
      Somehow fbo-alphatest-formats was previously passing on NV20.
      
      There are still a few failures in fbo-blending-formats on i865G, but the
      test mostly passes.  The remaining failures there are likely legitimate
      problems.
      
      None of the tests were fixed on R200, and both fbo-alphatest-formats and
      fbo-blending-formats go from FAIL to CRASH.  Both hit an assertion:
      
      main/format_utils.c:178: _mesa_compute_rgba2base2rgba_component_mapping: Assertion `!&"Unexpected base format"' failed.
      
      This should also fix these tests on NV10, NV30, and r100.  I suspect
      r100 will have the same troubles as r200.
      Signed-off-by: default avatarIan Romanick <ian.d.romanick@intel.com>
      Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      858b4e67
  11. 07 Oct, 2016 1 commit
  12. 01 Jul, 2016 1 commit
    • Andres Gomez's avatar
      util: Wrapper to load exact hex patterns for ints · a0868da6
      Andres Gomez authored
      For some cases we want to have shaders where we load an exact bit
      pattern into a signed int.
      
      If we would just use strtol, the negative values would have to include
      the sign, as in -0x7fffffff, and not the exact bit pattern, which
      would be 0x80000000, to avoid an ERANGE out of range errno value on
      32-bit systems.
      
      Hence, we were using strtoll but that was also causing that we would
      lose the internal range check performed by strtol.
      
      Now, we use an implementation that would accept exact bit patterns,
      including a proper internal range check and, also, the other
      alternative formats allowed by strtol.
      Signed-off-by: Andres Gomez's avatarAndres Gomez <agomez@igalia.com>
      Reviewed-by: Alejandro Piñeiro's avatarAlejandro Piñeiro <apinheiro@igalia.com>
      a0868da6
  13. 04 May, 2016 1 commit
  14. 08 Jun, 2015 2 commits
  15. 30 Apr, 2015 1 commit
  16. 26 Feb, 2015 1 commit
  17. 23 Feb, 2015 1 commit
  18. 20 Feb, 2015 2 commits
  19. 13 Dec, 2014 1 commit
  20. 12 Dec, 2014 1 commit
  21. 03 Dec, 2014 10 commits
  22. 08 Nov, 2014 6 commits
  23. 10 Oct, 2014 1 commit
  24. 04 Sep, 2014 1 commit