Home
last modified time | relevance | path

Searched refs:inv_dir (Results 1 – 5 of 5) sorted by relevance

/third_party/mesa3d/src/amd/vulkan/
Dradv_rt_common.h41 nir_ssa_def *inv_dir);
46 nir_ssa_def *inv_dir);
Dradv_nir_lower_ray_queries.c130 rq_variable *inv_dir; member
183 result.inv_dir = rq_variable_create(shader, impl, array_length, vec3_type, VAR_NAME("_inv_dir")); in init_ray_query_traversal_vars()
357 rq_store_var(b, index, vars->trav.inv_dir, nir_fdiv(b, vec3ones, instr->src[6].ssa), 0x7); in lower_rq_initialize()
617 nir_fmin(b, nir_fmul(b, bvh_lo, rq_load_var(b, index, vars->trav.inv_dir)), in insert_traversal_aabb_case()
618 nir_fmul(b, bvh_hi, rq_load_var(b, index, vars->trav.inv_dir))); in insert_traversal_aabb_case()
620 nir_fmax(b, nir_fmul(b, bvh_lo, rq_load_var(b, index, vars->trav.inv_dir)), in insert_traversal_aabb_case()
621 nir_fmul(b, bvh_hi, rq_load_var(b, index, vars->trav.inv_dir))); in insert_traversal_aabb_case()
682 rq_store_var(b, index, vars->trav.inv_dir, in lower_rq_proceed()
702 rq_load_var(b, index, vars->trav.inv_dir)); in lower_rq_proceed()
764 rq_store_var(b, index, vars->trav.inv_dir, in lower_rq_proceed()
[all …]
Dradv_rt_common.c76 nir_ssa_def *inv_dir) in intersect_ray_amd_software_box() argument
97 inv_dir = nir_fclamp(b, inv_dir, nir_imm_float(b, -FLT_MAX), nir_imm_float(b, FLT_MAX)); in intersect_ray_amd_software_box()
127 nir_ssa_def *bound0 = nir_fmul(b, nir_fsub(b, node_coords[0], origin), inv_dir); in intersect_ray_amd_software_box()
129 nir_ssa_def *bound1 = nir_fmul(b, nir_fsub(b, node_coords[1], origin), inv_dir); in intersect_ray_amd_software_box()
178 nir_ssa_def *inv_dir) in intersect_ray_amd_software_tri() argument
Dradv_pipeline_rt.c1046 nir_variable *inv_dir; member
1065 ret.inv_dir = in init_traversal_vars()
1333 nir_ssa_def *t_vec = nir_fmin(b, nir_fmul(b, bvh_lo, nir_load_var(b, trav_vars->inv_dir)), in insert_traversal_aabb_case()
1334 nir_fmul(b, bvh_hi, nir_load_var(b, trav_vars->inv_dir))); in insert_traversal_aabb_case()
1335 nir_ssa_def *t2_vec = nir_fmax(b, nir_fmul(b, bvh_lo, nir_load_var(b, trav_vars->inv_dir)), in insert_traversal_aabb_case()
1336 nir_fmul(b, bvh_hi, nir_load_var(b, trav_vars->inv_dir))); in insert_traversal_aabb_case()
1425 … nir_store_var(&b, trav_vars.inv_dir, nir_fdiv(&b, vec3ones, nir_load_var(&b, trav_vars.dir)), 7); in build_traversal_shader()
1448 … nir_store_var(&b, trav_vars.inv_dir, nir_fdiv(&b, vec3ones, nir_load_var(&b, trav_vars.dir)), 7); in build_traversal_shader()
1466 nir_load_var(&b, trav_vars.inv_dir)); in build_traversal_shader()
1520 nir_store_var(&b, trav_vars.inv_dir, in build_traversal_shader()
[all …]
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp6090 Temp inv_dir = get_ssa_temp(ctx, instr->src[5].ssa); in visit_bvh64_intersect_ray_amd() local
6102 args.push_back(emit_extract_vector(ctx, inv_dir, 0, v1)); in visit_bvh64_intersect_ray_amd()
6103 args.push_back(emit_extract_vector(ctx, inv_dir, 1, v1)); in visit_bvh64_intersect_ray_amd()
6104 args.push_back(emit_extract_vector(ctx, inv_dir, 2, v1)); in visit_bvh64_intersect_ray_amd()