Commit eb39052a authored by Brian Paul's avatar Brian Paul

glsl-fs-fragcoord: incr loops by 16 to probe fewer pixels

As it was, we were calling glReadPixels 65,536 times to probe all the
pixels.  This actually took quite a while with some drivers.  Probing
"only" 256 pixels now is much faster, and good enough.
parent 75ac5bc9
......@@ -48,8 +48,8 @@ piglit_display(void)
piglit_draw_rect(0, 0, piglit_width, piglit_height);
for (y = 0; y < piglit_height; y++) {
for (x = 0; x < piglit_width; x++) {
for (y = 8; y < piglit_height && pass; y += 16) {
for (x = 8; x < piglit_width; x += 16) {
float color[3];
color[0] = x / 256.0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment