[Piglit] Faster piglit with probe_rect_*

Marek Olšák maraeo at gmail.com
Tue Sep 28 19:37:48 PDT 2010


Hi,

I've optimized piglit by reducing the number of glReadPixels calls in tests
which probe from hundreds to hundreds of thousands of pixels (the fbo tests
are the worst ones). It touches shader_runner and 26 other tests. The
quick-driver.tests profile is significantly faster now (especially for GPUs
which store framebuffers in VRAM). If there are no concerns, I'll merge this
on thursday evening CEST.

The commits can be read here:
http://cgit.freedesktop.org/~mareko/piglit/log/?h=probe-rect

Marek

The following changes since commit cb76309936178d1f42e55413963cf94b51d54580:
  Vinson Lee (1):
        glean: Update glsl1 to 9682c3021140961d26c4c6b1dcc1d148eb137cd2.

are available in the git repository at:

  git://anongit.freedesktop.org/~mareko/piglit probe-rect

Marek Olšák (7):
      util: call glReadPixels only once in piglit_probe_rect_rgb(a)
      util: implement piglit_probe_rect_depth
      shader_runner: implement "probe all" using piglit_probe_rect_rgb(a)
      fdo23670-drawpix_stencil: use piglit_probe_rect_rgb
      fbo tests: use piglit_probe_rect_* when appropriate
      general tests: use piglit_probe_rect_* when appropriate
      glsl-vs-sqrt-zero: use piglit_probe_rect_rgb

 tests/bugs/fdo23670-drawpix_stencil.c    |   11 +---
 tests/fbo/fbo-3d.c                       |   12 +----
 tests/fbo/fbo-blit-d24s8.c               |   30 +++-------
 tests/fbo/fbo-blit.c                     |   29 +++-------
 tests/fbo/fbo-clearmipmap.c              |   13 +----
 tests/fbo/fbo-copypix.c                  |   29 +++-------
 tests/fbo/fbo-cubemap.c                  |   11 +----
 tests/fbo/fbo-drawbuffers.c              |    8 +--
 tests/fbo/fbo-drawbuffers2-blend.c       |   16 ++----
 tests/fbo/fbo-drawbuffers2-colormask.c   |   16 ++----
 tests/fbo/fbo-flushing.c                 |   10 +---
 tests/fbo/fbo-generatemipmap-nonsquare.c |   29 +++-------
 tests/fbo/fbo-generatemipmap-scissor.c   |   29 +++-------
 tests/fbo/fbo-generatemipmap-viewport.c  |   29 +++-------
 tests/fbo/fbo-generatemipmap.c           |   28 +++-------
 tests/fbo/fbo-nodepth-test.c             |    7 +--
 tests/fbo/fbo-nostencil-test.c           |    7 +--
 tests/fbo/fbo-readdrawpix.c              |   29 +++-------
 tests/general/dlist-clear.c              |   17 ++----
 tests/general/read-front.c               |   15 +-----
 tests/general/scissor-clear.c            |   17 ++----
 tests/general/scissor-depth-clear.c      |   17 ++----
 tests/general/scissor-many.c             |    6 +--
 tests/general/scissor-stencil-clear.c    |   17 ++----
 tests/general/stencil-drawpixels.c       |   22 +++-----
 tests/shaders/glsl-vs-sqrt-zero.c        |    7 +--
 tests/shaders/shader_runner.c            |   20 ++-----
 tests/util/piglit-util.c                 |   85
+++++++++++++++++++++++++----
 tests/util/piglit-util.h                 |    1 +
 29 files changed, 208 insertions(+), 359 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20100929/f381b520/attachment.htm>


More information about the Piglit mailing list