Home
last modified time | relevance | path

Searched refs:sampler_idx (Results 1 – 8 of 8) sorted by relevance

/external/mesa3d/src/compiler/nir/
Dnir_lower_samplers.c129 int sampler_idx = in lower_sampler() local
132 if (sampler_idx >= 0) { in lower_sampler()
133 lower_tex_src_to_offset(b, instr, sampler_idx); in lower_sampler()
136 if (texture_idx < 0 && sampler_idx < 0) in lower_sampler()
/external/mesa3d/src/compiler/glsl/
Dgl_nir_lower_samplers_as_deref.c249 int sampler_idx = in lower_sampler() local
267 if (sampler_idx >= 0) { in lower_sampler()
268 assert(instr->src[sampler_idx].src.is_ssa); in lower_sampler()
270 lower_deref(b, state, nir_src_as_deref(instr->src[sampler_idx].src)); in lower_sampler()
273 nir_instr_rewrite_src(&instr->instr, &instr->src[sampler_idx].src, in lower_sampler()
Dgl_nir_link_uniforms.c546 int sampler_idx = in add_var_use_shader() local
553 if (sampler_idx >= 0) { in add_var_use_shader()
555 nir_src_as_deref(tex_instr->src[sampler_idx].src); in add_var_use_shader()
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_uniforms.c129 uint32_t sampler_idx; in write_tmu_p1() local
135 NULL, &sampler_idx); in write_tmu_p1()
136 assert(sampler_idx != V3DV_NO_SAMPLER_IDX); in write_tmu_p1()
140 pipeline->layout, sampler_idx); in write_tmu_p1()
144 pipeline->layout, sampler_idx); in write_tmu_p1()
Dv3dv_pipeline.c769 int sampler_idx = in lower_sampler() local
772 if (sampler_idx >= 0) in lower_sampler()
773 lower_tex_src_to_offset(b, instr, sampler_idx, pipeline, layout); in lower_sampler()
775 if (texture_idx < 0 && sampler_idx < 0) in lower_sampler()
781 sampler_idx < 0 ? V3DV_NO_SAMPLER_IDX : instr->sampler_index); in lower_sampler()
Dv3dv_cmd_buffer.c2924 uint32_t sampler_idx; in cmd_buffer_populate_v3d_key() local
2927 &texture_idx, &sampler_idx); in cmd_buffer_populate_v3d_key()
2940 if (sampler_idx != V3DV_NO_SAMPLER_IDX) { in cmd_buffer_populate_v3d_key()
2945 sampler_idx); in cmd_buffer_populate_v3d_key()
/external/mesa3d/src/freedreno/ir3/
Dir3_compiler_nir.c2047 int sampler_idx = nir_tex_instr_src_index(tex, nir_tex_src_sampler_handle); in get_tex_samp_tex_src() local
2050 if (texture_idx >= 0 || sampler_idx >= 0) { in get_tex_samp_tex_src()
2076 if (sampler_idx >= 0) { in get_tex_samp_tex_src()
2078 bindless_samp = ir3_bindless_resource(tex->src[sampler_idx].src); in get_tex_samp_tex_src()
2128 sampler = ir3_get_src(ctx, &tex->src[sampler_idx].src)[0]; in get_tex_samp_tex_src()
2140 sampler_idx = nir_tex_instr_src_index(tex, nir_tex_src_sampler_offset); in get_tex_samp_tex_src()
2155 if (sampler_idx >= 0) { in get_tex_samp_tex_src()
2156 sampler = ir3_get_src(ctx, &tex->src[sampler_idx].src)[0]; in get_tex_samp_tex_src()
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.c2114 const unsigned sampler_idx, in fetch_texel() argument
2132 sampler->get_samples(sampler, sview_idx, sampler_idx, in fetch_texel()