i965/gen6: Improve glReadPixels() performance by blitting to a linear temp.
authorEric Anholt <eric@anholt.net>
Wed, 19 Oct 2011 17:31:40 +0000 (10:31 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 4 Nov 2011 06:48:07 +0000 (23:48 -0700)
commiteab201bad4d4f250ca9318a228d1c71561daee1a
treedc6069e4fe6399ed825b80fad39d5a9abb1e65c3
parenta1488eec38d5a76f4e04245a6ce8302444800805
i965/gen6: Improve glReadPixels() performance by blitting to a linear temp.

The readpixels microbenchmark in mesa-demos goes from 47Mpix/sec at
1000x1000 to 450Mpix/sec.  The 10x10 sizes stay about the same.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h