mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-07 01:30:26 +01:00
radv: fix when incomplete rt pipeline libraries are loaded from cache
It might be that the radv_pipeline_cache_lookup_nir_handle() in radv_ray_tracing_pipeline_cache_search() fails but we will later need the NIR. If rt_stages[i].shader was non-NULL, then we would not have created the NIR. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Backport-to: 25.2 Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38263>
This commit is contained in:
parent
d6745b358d
commit
89eefdcadb
1 changed files with 2 additions and 2 deletions
|
|
@ -674,7 +674,7 @@ radv_rt_compile_shaders(struct radv_device *device, struct vk_pipeline_cache *ca
|
|||
bool can_use_monolithic = !library && pipeline->stage_count < 50;
|
||||
|
||||
for (uint32_t i = 0; i < pCreateInfo->stageCount; i++) {
|
||||
if (rt_stages[i].shader || rt_stages[i].nir)
|
||||
if (rt_stages[i].nir)
|
||||
continue;
|
||||
|
||||
int64_t stage_start = os_time_get_nano();
|
||||
|
|
@ -749,7 +749,7 @@ radv_rt_compile_shaders(struct radv_device *device, struct vk_pipeline_cache *ca
|
|||
inline_any_hit_shaders |= raygen_lowering_mode == RADV_RT_LOWERING_MODE_MONOLITHIC && !raygen_imported;
|
||||
|
||||
for (uint32_t idx = 0; idx < pCreateInfo->stageCount; idx++) {
|
||||
if (rt_stages[idx].shader || rt_stages[idx].nir)
|
||||
if (rt_stages[idx].nir)
|
||||
continue;
|
||||
|
||||
int64_t stage_start = os_time_get_nano();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue