intel/nir/rt: fix ray query proceed level
Initially the level is world (top level), then it's whatever level the
potential hit is.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: c78be5da30
("intel/fs: lower ray query intrinsics")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17396>
This commit is contained in:

committed by
Marge Bot

parent
3f01071c79
commit
259b1647e6
@@ -309,7 +309,7 @@ lower_ray_query_intrinsic(nir_builder *b,
|
||||
update_trace_ctrl_level(b, ctrl_level_addr,
|
||||
NULL, NULL,
|
||||
nir_imm_int(b, GEN_RT_TRACE_RAY_CONTINUE),
|
||||
nir_imm_int(b, BRW_RT_BVH_LEVEL_OBJECT));
|
||||
hit_in.bvh_level);
|
||||
|
||||
not_done_then = nir_inot(b, hit_in.done);
|
||||
}
|
||||
|
Reference in New Issue
Block a user