intel/rt/nir: add support for RayCullMaskKHR
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 25 Nov 2022 18:43:42 +0000 (20:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Dec 2022 09:28:23 +0000 (09:28 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20011>

src/intel/compiler/brw_nir_lower_rt_intrinsics.c

index fa46168aaea5ba8aeb816f06f70c22fe2cf6cc8f..0290f4c680b52e073014ad87cbc3da68203ba620 100644 (file)
@@ -232,6 +232,10 @@ lower_rt_intrinsics_impl(nir_function_impl *impl,
             sysval = nir_u2u32(b, world_ray_in.inst_leaf_ptr);
             break;
 
+         case nir_intrinsic_load_cull_mask:
+            sysval = nir_u2u32(b, world_ray_in.ray_mask);
+            break;
+
          case nir_intrinsic_load_ray_geometry_index: {
             nir_ssa_def *geometry_index_dw =
                nir_load_global(b, nir_iadd_imm(b, hit_in.prim_leaf_ptr, 4), 4,