radv/rt: Remove useless assert

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

Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25224>
This commit is contained in:
Konstantin Seurer 2023-09-12 17:30:39 +02:00
parent 8198805e1f
commit 59d490b8aa

View file

@ -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);