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

Author: Konstantin Seurer <konstantin.seu...@gmail.com>
Date:   Tue Sep 12 17:30:39 2023 +0200

radv/rt: Remove useless assert

If it's NULL, the code will segfault anyways.

Reviewed-by: Friedrich Vock <friedrich.v...@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25224>

---

 src/amd/vulkan/radv_pipeline_rt.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline_rt.c 
b/src/amd/vulkan/radv_pipeline_rt.c
index 32ec0d1f1fa..d31e26b7e8f 100644
--- a/src/amd/vulkan/radv_pipeline_rt.c
+++ b/src/amd/vulkan/radv_pipeline_rt.c
@@ -191,7 +191,6 @@ radv_rt_fill_group_info(struct radv_device *device, const 
struct radv_ray_tracin
          if (groups[idx].recursive_shader < pCreateInfo->stageCount) {
             capture_replay_blocks[groups[idx].recursive_shader] = 
handle->recursive_shader_alloc;
          } else if (groups[idx].recursive_shader != VK_SHADER_UNUSED_KHR) {
-            assert(stages[groups[idx].recursive_shader].shader);
             struct radv_shader *library_shader =
                container_of(stages[groups[idx].recursive_shader].shader, 
struct radv_shader, base);
             simple_mtx_lock(&library_shader->replay_mtx);

Reply via email to