Home
last modified time | relevance | path

Searched refs:sampler_index (Results 1 – 25 of 78) sorted by relevance

1234

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_tex_shadow.c93 int sampler_index = nir_tex_instr_src_index(tex, nir_tex_src_sampler_deref); in nir_lower_tex_shadow_impl() local
94 if (sampler_index >= 0) { in nir_lower_tex_shadow_impl()
95 sampler_deref = nir_instr_as_deref(tex->src[sampler_index].src.ssa->parent_instr); in nir_lower_tex_shadow_impl()
129 if (sampler_index >= 0) { in nir_lower_tex_shadow_impl()
Dnir_lower_tex.c329 plane_tex->sampler_index = tex->sampler_index; in sample_plane()
808 txd->sampler_index = tex->sampler_index; in lower_tex_to_txd()
847 txl->sampler_index = tex->sampler_index; in lower_txb_to_txl()
1043 switch (options->lower_tex_packing[tex->sampler_index]) { in lower_tex_packing()
1129 unsigned sampler_index = tex->sampler_index; in sampler_index_lt() local
1137 sampler_index += nir_src_as_uint(tex->src[sampler_offset_idx].src); in sampler_index_lt()
1140 return sampler_index < max; in sampler_index_lt()
1378 if ((1 << tex->sampler_index) & options->saturate_r) in nir_lower_tex_block()
1380 if ((1 << tex->sampler_index) & options->saturate_t) in nir_lower_tex_block()
1382 if ((1 << tex->sampler_index) & options->saturate_s) in nir_lower_tex_block()
[all …]
Dnir_builtin_builder.c358 txs->sampler_index = tex->sampler_index; in nir_get_texture_size()
412 tql->sampler_index = tex->sampler_index; in nir_get_texture_lod()
Dnir_lower_drawpixels.c189 tex->sampler_index = state->options->pixelmap_sampler; in lower_color()
208 tex->sampler_index = state->options->pixelmap_sampler; in lower_color()
Dnir_lower_samplers.c111 instr->sampler_index = base_index; in lower_tex_src_to_offset()
Dnir_instr_set.c283 hash = HASH(hash, instr->sampler_index); in hash_tex()
671 tex1->sampler_index != tex2->sampler_index) { in nir_instrs_equal()
/third_party/mesa3d/src/panfrost/bifrost/
Dbi_opt_dual_tex.c55 (I->texture_index < 4 && I->sampler_index < 4) && in bi_can_fuse_dual_tex()
77 .primary_sampler_index = I1->sampler_index, in bi_fuse_dual()
82 .secondary_sampler_index = I2->sampler_index, in bi_fuse_dual()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instr_tex.cpp393 auto sampler = get_sampler_id(tex->sampler_index, src.sampler_deref); in emit_tex_tex()
416 auto sampler = get_sampler_id(tex->sampler_index, src.sampler_deref); in emit_tex_txl_txb()
442 int sampler = tex->sampler_index; in emit_tex_txf()
542 auto sampler = get_sampler_id(tex->sampler_index, src.sampler_deref); in emit_tex_tex_ms_direct()
580 auto sampler = get_sampler_id(tex->sampler_index, src.sampler_deref); in emit_tex_tex_ms()
666 int res_id = R600_MAX_CONST_BUFFERS + instr->sampler_index; in emit_tex_texture_samples()
701 auto sampler = get_sampler_id(tex->sampler_index, src.sampler_deref); in emit_tex_txd()
772 … tex->sampler_index + R600_MAX_CONST_BUFFERS)); in emit_tex_txs()
774 int id = 2 * tex->sampler_index + (512 + R600_BUFFER_INFO_OFFSET / 16) + 1; in emit_tex_txs()
786 auto sampler = get_sampler_id(tex->sampler_index, src.sampler_deref); in emit_tex_txs()
[all …]
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir_lower_int_samplers.c73 tql->sampler_index = tex->sampler_index; in dx_get_texture_lod()
273 txf->sampler_index = tex->sampler_index; in create_txf_from_tex()
423 dxil_wrap_sampler_state *active_wrap_state = &states->wrap_states[tex->sampler_index]; in lower_sample_to_txf_for_integer_tex_impl()
526 &states->tex_swizzles[tex->sampler_index]: in lower_sample_to_txf_for_integer_tex_impl()
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm_sample.c334 unsigned sampler_index = params->sampler_index; in draw_llvm_sampler_soa_emit_fetch_texel() local
337 assert(sampler_index < PIPE_MAX_SAMPLERS); in draw_llvm_sampler_soa_emit_fetch_texel()
356 &sampler->dynamic_state.static_state[sampler_index].sampler_state, in draw_llvm_sampler_soa_emit_fetch_texel()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tex_sample.c368 const unsigned sampler_index = params->sampler_index; in lp_llvm_sampler_soa_emit_fetch_texel() local
370 assert(sampler_index < PIPE_MAX_SAMPLERS); in lp_llvm_sampler_soa_emit_fetch_texel()
397 &sampler->dynamic_state.static_state[sampler_index].sampler_state, in lp_llvm_sampler_soa_emit_fetch_texel()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_tex_src_plane.c158 assume(tex->texture_index == tex->sampler_index); in lower_tex_src_plane_block()
159 tex->texture_index = tex->sampler_index = u_v_samp; in lower_tex_src_plane_block()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_lower_cubemap_to_array.c72 return (BITFIELD_BIT(tex->sampler_index) & (*nonseamless_cube_mask)) != 0; in lower_cubemap_to_array_filter()
157 array_tex->sampler_index = tex->sampler_index; in create_array_tex_from_cube_tex()
425 txl->sampler_index = tex->sampler_index; in lower_tex_to_txl()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_lower_vulkan_resource.c206 value += binding->stage[stage].sampler_index; in lower_vri_instr_tex_deref()
221 tex->sampler_index = value; in lower_vri_instr_tex_deref()
372 value += binding->stage[shader->info.stage].sampler_index; in lvp_lower_pipeline_layout()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_exec.h184 const unsigned sampler_index,
205 const unsigned sampler_index,
Dtgsi_transform.h555 unsigned sampler_index) in tgsi_transform_tex_inst() argument
570 tgsi_transform_src_reg_xyzw(&inst.Src[1], TGSI_FILE_SAMPLER, sampler_index); in tgsi_transform_tex_inst()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_shader.c422 key->tex[i].sampler_index = i; in svga_init_shader_key_common()
451 key->tex[i].sampler_index = next_index; in svga_init_shader_key_common()
462 key->tex[i].sampler_index = key->tex[j].sampler_index; in svga_init_shader_key_common()
/third_party/mesa3d/src/intel/vulkan/
Danv_nir_lower_ycbcr_textures.c154 tex->sampler_index = old_tex->sampler_index; in create_plane_tex_instr_implicit()
/third_party/mesa3d/src/amd/vulkan/
Dradv_nir_lower_ycbcr_textures.c153 tex->sampler_index = old_tex->sampler_index; in create_plane_tex_instr_implicit()
/third_party/mesa3d/src/broadcom/vulkan/
Dv3dv_private.h1909 uint32_t sampler_index) in v3dv_pipeline_combined_index_key_create() argument
1911 return texture_index << 24 | sampler_index; in v3dv_pipeline_combined_index_key_create()
1917 uint32_t *sampler_index) in v3dv_pipeline_combined_index_key_unpack() argument
1925 if (sampler_index) in v3dv_pipeline_combined_index_key_unpack()
1926 *sampler_index = sampler; in v3dv_pipeline_combined_index_key_unpack()
/third_party/mesa3d/src/intel/blorp/
Dblorp_nir_builder.h63 tex->sampler_index = 0; in blorp_nir_txf_ms_mcs()
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_sample.h109 unsigned sampler_index; member
586 unsigned sampler_index,
Dlp_bld_sample_soa.c2526 unsigned sampler_index, in lp_build_sample_common() argument
2614 sampler_index); in lp_build_sample_common()
2619 lp_build_lod_selector(bld, is_lodq, texture_index, sampler_index, in lp_build_sample_common()
3298 unsigned sampler_index, in lp_build_sample_soa_code() argument
3704 lp_build_sample_common(&bld, op_is_lodq, texture_index, sampler_index, in lp_build_sample_soa_code()
3733 lp_build_sample_aos(&bld, sampler_index, in lp_build_sample_soa_code()
3740 lp_build_sample_general(&bld, sampler_index, in lp_build_sample_soa_code()
3873 lp_build_sample_aos(&bld4, sampler_index, in lp_build_sample_soa_code()
3889 lp_build_sample_general(&bld4, sampler_index, in lp_build_sample_soa_code()
3961 unsigned sampler_index, in lp_build_sample_gen_func() argument
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_tex_prefetch.c148 return (tex->texture_index <= 0x1f) && (tex->sampler_index <= 0xf); in ok_tex_samp()
/third_party/mesa3d/src/intel/compiler/
Dbrw_vec4_generator.cpp115 struct brw_reg sampler_index) in generate_tex() argument
207 assert(sampler_index.type == BRW_REGISTER_TYPE_UD); in generate_tex()
244 brw_adjust_sampler_state_pointer(p, header, sampler_index); in generate_tex()
275 sampler_index.file == BRW_IMMEDIATE_VALUE) { in generate_tex()
277 uint32_t sampler = sampler_index.ud; in generate_tex()
296 struct brw_reg sampler_reg = vec1(retype(sampler_index, BRW_REGISTER_TYPE_UD)); in generate_tex()

1234