OSDN Git Service

vk/image: Fix retrieval of anv_surface for depthstencil aspect
authorChad Versace <chad.versace@intel.com>
Wed, 7 Oct 2015 16:03:47 +0000 (09:03 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 7 Oct 2015 16:10:25 +0000 (09:10 -0700)
commit03dd72279f871c242a47bc4d03aef128bd5ae792
tree7e61a81b9f8722349ead4662c749cc02f7f3dfa2
parent85ff3cfde32fe1614d93071f6a866bf797b4d12f
vk/image: Fix retrieval of anv_surface for depthstencil aspect

If anv_image_get_surface_for_aspect_mask() is given a combined
depthstencil aspect mask, and the image has a stencil surface but no
depth surface, then return the stencil surface.

Hacks on hacks.
src/vulkan/anv_image.c