svga: set render target flag for snorm surfaces
authorBrian Paul <brianp@vmware.com>
Mon, 27 Jun 2016 17:18:10 +0000 (11:18 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 30 Jun 2016 20:32:07 +0000 (14:32 -0600)
commit3a3c3d124aced6444cd637d21c5d723c8417b0b9
treeb9b2dda8f765e41cdc92700dc0a612831ec3995d
parent46e7355a13927b4a2f082358c417881d66c97982
svga: set render target flag for snorm surfaces

We don't normally support rendering to SNORM surfaces, but with
GL_ARB_copy_image we can copy to them if we treat them as typeless
and use a UNORM surface view.

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