zink: propagate have_workgroup_memory_explicit_layout to ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 3 Aug 2023 11:05:18 +0000 (07:05 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Aug 2023 21:20:05 +0000 (21:20 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24467>

src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_types.h

index e2fbf51..76786f6 100644 (file)
@@ -4799,6 +4799,7 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir,
                         nir_find_variable_with_location(nir, nir_var_shader_out, VARYING_SLOT_EDGE);
 
    ret->sinfo.have_vulkan_memory_model = screen->info.have_KHR_vulkan_memory_model;
+   ret->sinfo.have_workgroup_memory_explicit_layout = screen->info.have_KHR_workgroup_memory_explicit_layout;
    ret->sinfo.bindless_set_idx = screen->desc_set_id[ZINK_DESCRIPTOR_BINDLESS];
 
    util_queue_fence_init(&ret->precompile.fence);
index 30c53dd..b764ffa 100644 (file)
@@ -762,6 +762,7 @@ struct zink_shader_info {
    bool have_xfb;
    bool have_sparse;
    bool have_vulkan_memory_model;
+   bool have_workgroup_memory_explicit_layout;
    unsigned bindless_set_idx;
 };