Module: Mesa
Branch: main
Commit: 17e7fe9d975c3b2f295c7a23c69455f57f56b836
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=17e7fe9d975c3b2f295c7a23c69455f57f56b836

Author: Lionel Landwerlin <[email protected]>
Date:   Fri Mar 25 14:59:05 2022 +0200

anv: make input attachments available through bindless

With independent sets, we cannot bake into the shader the binding
table entry of input attachments anymore because that final location
is affected by multiple sets.

We can still access them by looking into the descriptor buffer. This
change enables the image handle to be stored in the descriptor buffer.

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15637>

---

 src/intel/vulkan/anv_descriptor_set.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_descriptor_set.c 
b/src/intel/vulkan/anv_descriptor_set.c
index 128d035ed4e..6211b4c2938 100644
--- a/src/intel/vulkan/anv_descriptor_set.c
+++ b/src/intel/vulkan/anv_descriptor_set.c
@@ -66,7 +66,8 @@ anv_descriptor_data_for_type(const struct anv_physical_device 
*device,
       break;
 
    case VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT:
-      data = ANV_DESCRIPTOR_SURFACE_STATE;
+      data = ANV_DESCRIPTOR_SURFACE_STATE |
+             ANV_DESCRIPTOR_SAMPLED_IMAGE;
       break;
 
    case VK_DESCRIPTOR_TYPE_STORAGE_IMAGE:

Reply via email to