nvfx: new 2D: use a CPU copy for up to 4 pixels, up from 0
authorLuca Barbieri <luca@luca-barbieri.com>
Sun, 18 Apr 2010 14:43:19 +0000 (16:43 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 18:42:14 +0000 (20:42 +0200)
commit0481ed25c9c35178bf5151c80f4c36ad42b75648
tree8073c0eb370c7ba9f18f2db6d229c2c59c80e386
parent28eb392a853bb43bdc6cfe7ba814f046c39ca7ae
nvfx: new 2D: use a CPU copy for up to 4 pixels, up from 0

Seems a reasonable threshold for now.

Significantly speeds up Piglit's 1x1 glReadPixels (but, you know,
reading pixels in 1x1 blocks is NOT a good idea, especially if you
might be running on a less-than-perfect driver).
src/gallium/drivers/nvfx/nvfx_surface.c