v3dv: ignore image view aspects for depth/stencil attachments
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 7 Feb 2020 11:24:18 +0000 (12:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:27 +0000 (21:21 +0000)
commit0dc4416827e85619ba750070e3fb63a7bab7d45f
tree0a11b617055e1b84582198cf419c5a49f5074cc6
parent50652cb919d8cd78e11351b380b1b422b5cf6ad0
v3dv: ignore image view aspects for depth/stencil attachments

 From the Vulkan spec:

   "When an image view of a depth/stencil image is used as a
    depth/stencil framebuffer attachment, the aspectMask is ignored
    and both depth and stencil image subresources are used."

So in that scenario, we ignore the aspect mask on the view and go
check the actual format of the underlying image to decide if we
have depth or depth+stencil aspects.

This gets VkRunner's depth-buffer.shader_test to pass.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c
src/broadcom/vulkan/v3dv_private.h