svga: don't advertise support for R32G32B32_UINT/SINT surface formats
authorNeha Bhende <bhenden@vmware.com>
Thu, 2 Jun 2016 21:35:20 +0000 (14:35 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 20:32:06 +0000 (14:32 -0600)
commit429ace2fbc8b647473e5aa6bf6c4ec381c3ff296
treea3de5f21f56401b7e0cb488cac3079b394d76130
parenteb0ced74f6decd1bf1e111b162e1389bede89af6
svga: don't advertise support for R32G32B32_UINT/SINT surface formats

We want to be able to copy between different 32-bit, 3-channel surface
formats for GL_ARB_copy_image but since we don't support R32G32B32_FLOAT
for textures (it's not blendable and wouldn't work for render to texture)
we can't support 32-bit, 3-channel integer formats.

The state tracker will choose 4-channel formats instead.

Fixes the piglit arb_copy_image-format test for several cases.

Note: This change may need to be revisited if/when the texture_view exension
is enabled in driver.

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