Home
last modified time | relevance | path

Searched refs:coord_index (Results 1 – 6 of 6) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_tex.cpp40 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_coord_shift_normalized() local
43 auto corr2 = nir_fadd(b, nir_channels(b, tex->src[coord_index].src.ssa, 3), in lower_coord_shift_normalized()
47 b, tex->src[coord_index].src.ssa, 2)); in lower_coord_shift_normalized()
51 tex->src[coord_index].src.ssa); in lower_coord_shift_normalized()
54 nir_instr_rewrite_src(&tex->instr, &tex->src[coord_index].src, in lower_coord_shift_normalized()
62 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_coord_shift_unnormalized() local
65 auto corr2 = nir_fadd(b, nir_channels(b, tex->src[coord_index].src.ssa, 3), in lower_coord_shift_unnormalized()
68 nir_channel(b, tex->src[coord_index].src.ssa, 2)); in lower_coord_shift_unnormalized()
70 corr = nir_fadd(b, tex->src[coord_index].src.ssa, in lower_coord_shift_unnormalized()
73 nir_instr_rewrite_src(&tex->instr, &tex->src[coord_index].src, in lower_coord_shift_unnormalized()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_tex.c170 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_offset() local
171 assert(coord_index >= 0); in lower_offset()
174 assert(tex->src[coord_index].src.is_ssa); in lower_offset()
176 nir_ssa_def *coord = tex->src[coord_index].src.ssa; in lower_offset()
181 if (nir_tex_instr_src_type(tex, coord_index) == nir_type_float) { in lower_offset()
211 nir_instr_rewrite_src(&tex->instr, &tex->src[coord_index].src, in lower_offset()
229 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_rect() local
231 if (coord_index != -1) { in lower_rect()
233 nir_ssa_for_src(b, tex->src[coord_index].src, tex->coord_components); in lower_rect()
235 &tex->src[coord_index].src, in lower_rect()
[all …]
/third_party/mesa3d/src/broadcom/compiler/
Dv3d_nir_lower_txf_ms.c44 int coord_index = nir_tex_instr_src_index(instr, nir_tex_src_coord); in v3d_nir_lower_txf_ms_instr() local
46 nir_ssa_def *coord = instr->src[coord_index].src.ssa; in v3d_nir_lower_txf_ms_instr()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_lower_int_samplers.c80 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in dx_get_texture_lod() local
81 nir_ssa_def *ssa_src = nir_channels(b, tex->src[coord_index].src.ssa, in dx_get_texture_lod()
427 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_sample_to_txf_for_integer_tex_impl() local
428 nir_ssa_def *old_coord = tex->src[coord_index].src.ssa; in lower_sample_to_txf_for_integer_tex_impl()
Ddxil_nir_lower_int_cubemaps.c427 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_cube_sample() local
428 assert(coord_index >= 0); in lower_cube_sample()
431 nir_ssa_def *coord = tex->src[coord_index].src.ssa; in lower_cube_sample()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_lower_cubemap_to_array.c462 int coord_index = nir_tex_instr_src_index(tex, nir_tex_src_coord); in lower_cube_sample() local
463 assert(coord_index >= 0); in lower_cube_sample()
466 nir_ssa_def *coord = tex->src[coord_index].src.ssa; in lower_cube_sample()