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

Author: Konstantin Seurer <[email protected]>
Date:   Thu Mar 16 21:19:45 2023 +0100

radv: Fix inserting stack_size into the cache

Fixes: 3e03fe4 ("radv/rt: move stack_sizes into radv_ray_tracing_module")
Reviewed-by: Friedrich Vock <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21969>

---

 src/amd/vulkan/radv_pipeline_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline_cache.c 
b/src/amd/vulkan/radv_pipeline_cache.c
index 1688187a6af..c52a34eb54b 100644
--- a/src/amd/vulkan/radv_pipeline_cache.c
+++ b/src/amd/vulkan/radv_pipeline_cache.c
@@ -470,7 +470,7 @@ radv_pipeline_cache_insert_shaders(struct radv_device 
*device, struct radv_pipel
    }
 
    for (int i = 0; i < num_rt_groups; ++i) {
-      memcpy(p, &rt_groups->stack_size, sizeof(struct 
radv_pipeline_shader_stack_size));
+      memcpy(p, &rt_groups[i].stack_size, sizeof(struct 
radv_pipeline_shader_stack_size));
       p += sizeof(struct radv_pipeline_shader_stack_size);
    }
    entry->num_stack_sizes = num_rt_groups;

Reply via email to