vk: Fix format of anv_depth_stencil_view
authorChad Versace <chad.versace@intel.com>
Fri, 28 Aug 2015 14:44:32 +0000 (07:44 -0700)
committerChad Versace <chad.versace@intel.com>
Fri, 28 Aug 2015 14:44:32 +0000 (07:44 -0700)
commitb2ee317e24d9d236d0050b2a6188df379e913c45
treeff27aba11a885bf192d8af3041a7dd1a70ae5e91
parent798acb2464f1a7baf58b0085d020d7b2b3d21de7
vk: Fix format of anv_depth_stencil_view

The format of the view itself and of the view's image may differ.
Moreover, if the view's format has no depth aspect but the image's
format does, we must not program the depth buffer. Ditto for stencil.
src/vulkan/anv_image.c
src/vulkan/anv_private.h
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen8_cmd_buffer.c