Module: Mesa Branch: main Commit: b5ecb5388e7ef2e0c77ebcd1b2f2c708a1170179 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5ecb5388e7ef2e0c77ebcd1b2f2c708a1170179
Author: Konstantin Seurer <[email protected]> Date: Thu Oct 20 20:54:26 2022 +0200 radv/rt: Fix setting tmax for opaque AABBs data->vars->tmax will be overwritten by inner_vars.tmax so we have to set inner_vars.tmax instead. This probably doesn't affect anything in practise. cc: mesa-stable Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19207> --- src/amd/vulkan/radv_pipeline_rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_pipeline_rt.c b/src/amd/vulkan/radv_pipeline_rt.c index c1a62c79472..9ceb4ddc9ed 100644 --- a/src/amd/vulkan/radv_pipeline_rt.c +++ b/src/amd/vulkan/radv_pipeline_rt.c @@ -1289,7 +1289,7 @@ handle_candidate_aabb(nir_builder *b, struct radv_leaf_intersection *intersectio nir_fge(b, t_max, nir_load_var(b, data->vars->tmin)))); { nir_store_var(b, data->vars->ahit_accept, nir_imm_true(b), 0x1); - nir_store_var(b, data->vars->tmax, nir_fmax(b, t_min, nir_load_var(b, data->vars->tmin)), + nir_store_var(b, inner_vars.tmax, nir_fmax(b, t_min, nir_load_var(b, data->vars->tmin)), 1); } nir_pop_if(b, NULL);
