svga: adjust sampler view format for RGBX
authorBrian Paul <brianp@vmware.com>
Mon, 27 Jun 2016 17:16:03 +0000 (11:16 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 20:32:07 +0000 (14:32 -0600)
commit68388043f3280bbac9383721e37f8ca7685b7f01
tree74bb7dfadf3d779070c82aad2ec9fed535c9ec3e
parent1049002eaeb39e1dfa728894b3681534a0142ba8
svga: adjust sampler view format for RGBX

We previously handled the case of a RGBX sampler view of a RGBA surface.
Add the reverse case too.  For GL_ARB_copy_image.

Acked-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_sampler.c