meta: Use sampler object in framebuffer blit
authorPauli Nieminen <pauli.nieminen@linux.intel.com>
Tue, 12 Jun 2012 18:39:01 +0000 (21:39 +0300)
committerEric Anholt <eric@anholt.net>
Wed, 1 Aug 2012 22:57:12 +0000 (15:57 -0700)
commit204bfb904bd5d4dd9ce90fe4d3e8e48b0d01fdae
tree4a8d2c89392f1d47258ed218434ec4ff8fe6f61a
parent676a563d5bdcd9c75e1e33d75e2fa16bedcf5e83
meta: Use sampler object in framebuffer blit

Framebuffer blit needs to setup texture sampling with no reference to the
user's texturing state, and a sampler object lets us avoid a bunch of changes
to the user's state setup.

We don't bother caching the sampler object since we're changing parameters in
it based on the filtering option to glBlitFramebuffer().

Fixes piglit GL_ARB_sampler_objects/framebufferblit and rendering in l4d2 (our
setting of srgb decode wasn't being respected due to the user's sampler object
being active).

Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/common/meta.c