svga: set PIPE_BIND_DEPTH_STENCIL flag for new resources when possible
authorBrian Paul <brianp@vmware.com>
Tue, 20 Sep 2016 23:22:42 +0000 (17:22 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 24 Sep 2016 01:54:42 +0000 (19:54 -0600)
commitc0d7b6073d308101b4ffb59b588445e07dad7690
treef680306eb5a58a97a82b9fa0133c45b4ee95f39d
parentf942a703406b5e08f18fe308d78ea91422b2e01c
svga: set PIPE_BIND_DEPTH_STENCIL flag for new resources when possible

When we create a depth/stencil texture, also check if we can render to
it and set the PIPE_BIND_DEPTH_STENCIL flag.  We were previously doing
this for color textures (PIPE_BIND_RENDER_TARGET).

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