svga: create BGRX render target view for BGRX_UNORM surface
authorCharmaine Lee <charmainel@vmware.com>
Tue, 25 Oct 2016 20:56:52 +0000 (13:56 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Nov 2016 20:29:22 +0000 (14:29 -0600)
commit4bd5ce853bd1a78889aa7b73dd8c748ba1e47f5c
treeab259293ec5e6d103f2dcd10f792f03601bacf4e
parent0d221fcd40e2f942b855915bedcf1a6e60001856
svga: create BGRX render target view for BGRX_UNORM surface

Currently we adjust the view format when we are asked to create a
BGRA render target view for BGRX surface. But we only look for
SVGA3D_B8G8R8X8_TYPELESS surface format.
With this patch, we will also check for SVGA3D_B8G8R8X8_UNORM surface format,
and use SVGA3D_B8G8R8X8_UNORM as the view format for that case.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_surface.c