meta: fix glDrawPixels fallback test, stencil drawing
authorBrian Paul <brianp@vmware.com>
Fri, 27 Jul 2012 14:22:44 +0000 (08:22 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Jul 2012 20:53:16 +0000 (14:53 -0600)
commit906febaf8bd37fffa4fc14c56eda1dd6e4b4dcda
tree75614800f4389229e2651d963434616bf5436656
parenta80b7407f3724ddac96167d640a0f9a91d60ac5f
meta: fix glDrawPixels fallback test, stencil drawing

Remove the check for pixel transfer ops.  If any RGB/depth scale/bias
is in effect, it'll be applied in the glTexImage step.

If drawing stencil pixels we need to disable pixel transfer so that
alpha scale/bias are not applied to the stencil data.

These issues were spotted by Roland.

Fixes Blender performance issues reported in
http://bugs.freedesktop.org/show_bug.cgi?id=47375

NOTE: This is a candidate for the 8.0 branch.

Tested-by: Barto <mister.freeman@laposte.net>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/drivers/common/meta.c