v3dv/pipeline: track if texture is shadow
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 19 Aug 2020 21:34:30 +0000 (23:34 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:33 +0000 (21:21 +0000)
commit229cce40562a16b70ba5799677aec3fa4e4ed281
tree5dd73de2b37f6577c81b3e5487c08c0c0ba9e24d
parentc1bd8e0a1cff2871a9f209feb8014b3b48f9f643
v3dv/pipeline: track if texture is shadow

To be used to decide the texture return size. We add it on the
descriptor map because it is the easier place to do so. As we are
lowering the texture accesses we can check instr->is_shadow at that
point. It is true that it is somewhat odd, as so far the descriptor
map was general-descriptor info, but is_shadow is only for
textures. But it doesn't make sense to make an effort now, as it is
possible that we would get more descriptor-specific info on the map on
the future. We can revisit that later.

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