/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_tex.c | 245 nir_ssa_def *idx = nir_imm_int(b, tex->texture_index); in lower_rect_tex_scale() 328 plane_tex->texture_index = tex->texture_index; in sample_plane() 337 if (options->scale_factors[tex->texture_index]) in sample_plane() 339 options->scale_factors[tex->texture_index]); in sample_plane() 349 unsigned texture_index) in convert_yuv_to_rgb() 355 if (options->yuv_full_range_external & (1u << texture_index)) { in convert_yuv_to_rgb() 356 if (options->bt709_external & (1u << texture_index)) { in convert_yuv_to_rgb() 359 } else if (options->bt2020_external & (1u << texture_index)) { in convert_yuv_to_rgb() 367 if (options->bt709_external & (1u << texture_index)) { in convert_yuv_to_rgb() 345 convert_yuv_to_rgb(nir_builder *b, nir_tex_instr *tex, nir_ssa_def *y, nir_ssa_def *u, nir_ssa_def *v, nir_ssa_def *a, const nir_lower_tex_options *options, unsigned texture_index) convert_yuv_to_rgb() argument 401 lower_y_uv_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_y_uv_external() argument 420 lower_y_u_v_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_y_u_v_external() argument 440 lower_yx_xuxv_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_yx_xuxv_external() argument 459 lower_xy_uxvx_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_xy_uxvx_external() argument 478 lower_ayuv_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_ayuv_external() argument 496 lower_y41x_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_y41x_external() argument 514 lower_xyuv_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_xyuv_external() argument 532 lower_yuv_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_yuv_external() argument 550 lower_yu_yv_external(nir_builder *b, nir_tex_instr *tex, const nir_lower_tex_options *options, unsigned texture_index) lower_yu_yv_external() argument 1414 unsigned texture_index = tex->texture_index; nir_lower_tex_block() local [all...] |
H A D | nir_builtin_builder.c | 357 txs->texture_index = tex->texture_index; in nir_get_texture_size() 411 tql->texture_index = tex->texture_index; in nir_get_texture_lod()
|
H A D | nir_lower_samplers.c | 63 * Otherwise instr->sampler_index or instr->texture_index would be out in lower_tex_src_to_offset() 113 instr->texture_index = base_index; in lower_tex_src_to_offset()
|
H A D | nir_lower_tex_shadow.c | 88 unsigned sampler_binding = tex->texture_index; in nir_lower_tex_shadow_impl()
|
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | bi_opt_dual_tex.c | 55 (I->texture_index < 4 && I->sampler_index < 4) && in bi_can_fuse_dual_tex() 76 .primary_texture_index = I1->texture_index, in bi_fuse_dual() 81 .secondary_texture_index = I2->texture_index, in bi_fuse_dual()
|
H A D | bi_opt_message_preload.c | 115 .texture_index = I->texture_index, in bi_opt_message_preload()
|
H A D | bi_opt_mod_props.c | 316 (tex->texture_index == tex->sampler_index) && in bi_is_var_tex() 317 (tex->texture_index < 4) && in bi_is_var_tex() 330 var->sample, var->update, tex->texture_index, var->index); in bi_optimizer_var_tex()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_nir_lower_txf_ms.c | 46 txf->texture_index = txf_ms->texture_index; in vc4_nir_lower_txf_ms_instr() 79 unsigned unit = txf_ms->texture_index; in vc4_nir_lower_txf_ms_instr()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_nir_lower_tex_src_plane.c | 123 unsigned y_samp = tex->texture_index; in lower_tex_src_plane_block() 157 /* For others we need to update texture_index */ in lower_tex_src_plane_block() 158 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()
|
H A D | st_program.h | 183 uint8_t texture_index[MAX_NUM_FRAGMENT_REGISTERS_ATI]; member
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
H A D | lp_tex_sample.c | 367 const unsigned texture_index = params->texture_index; in lp_llvm_sampler_soa_emit_fetch_texel() local 371 assert(texture_index < PIPE_MAX_SHADER_SAMPLER_VIEWS); in lp_llvm_sampler_soa_emit_fetch_texel() 381 lp_build_const_int32(gallivm, texture_index), ""); in lp_llvm_sampler_soa_emit_fetch_texel() 396 lp_build_sample_soa(&sampler->dynamic_state.static_state[texture_index].texture_state, in lp_llvm_sampler_soa_emit_fetch_texel()
|
/third_party/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_llvm_sample.c | 333 unsigned texture_index = params->texture_index; in draw_llvm_sampler_soa_emit_fetch_texel() local 336 assert(texture_index < PIPE_MAX_SHADER_SAMPLER_VIEWS); in draw_llvm_sampler_soa_emit_fetch_texel() 343 lp_build_const_int32(gallivm, texture_index), ""); in draw_llvm_sampler_soa_emit_fetch_texel() 355 lp_build_sample_soa(&sampler->dynamic_state.static_state[texture_index].texture_state, in draw_llvm_sampler_soa_emit_fetch_texel()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_sample_soa.c | 2525 unsigned texture_index, in lp_build_sample_common() 2568 coords[3] = lp_build_layer_coord(bld, texture_index, TRUE, layer, NULL); in lp_build_sample_common() 2575 coords[2] = lp_build_layer_coord(bld, texture_index, FALSE, coords[2], NULL); in lp_build_sample_common() 2619 lp_build_lod_selector(bld, is_lodq, texture_index, sampler_index, in lp_build_sample_common() 2629 texture_index, NULL); in lp_build_sample_common() 2633 texture_index, NULL); in lp_build_sample_common() 2669 lp_build_nearest_mip_level(bld, texture_index, lod_ipart, ilevel0, NULL); in lp_build_sample_common() 2680 texture_index, NULL); in lp_build_sample_common() 2686 lp_build_nearest_mip_level(bld, texture_index, lod_ipart, ilevel0, NULL); in lp_build_sample_common() 2691 lp_build_linear_mip_levels(bld, texture_index, in lp_build_sample_common() 2523 lp_build_sample_common(struct lp_build_sample_context *bld, boolean is_lodq, unsigned texture_index, unsigned sampler_index, LLVMValueRef *coords, const struct lp_derivatives *derivs, LLVMValueRef lod_bias, LLVMValueRef explicit_lod, LLVMValueRef *lod_pos_or_zero, LLVMValueRef *lod, LLVMValueRef *lod_fpart, LLVMValueRef *ilevel0, LLVMValueRef *ilevel1) lp_build_sample_common() argument 3291 lp_build_sample_soa_code(struct gallivm_state *gallivm, const struct lp_static_texture_state *static_texture_state, const struct lp_static_sampler_state *static_sampler_state, struct lp_sampler_dynamic_state *dynamic_state, struct lp_type type, unsigned sample_key, unsigned texture_index, unsigned sampler_index, LLVMValueRef context_ptr, LLVMValueRef thread_data_ptr, const LLVMValueRef *coords, const LLVMValueRef *offsets, const struct lp_derivatives *derivs, LLVMValueRef lod, LLVMValueRef ms_index, LLVMValueRef aniso_filter_table, LLVMValueRef texel_out[4]) lp_build_sample_soa_code() argument 3955 lp_build_sample_gen_func(struct gallivm_state *gallivm, const struct lp_static_texture_state *static_texture_state, const struct lp_static_sampler_state *static_sampler_state, struct lp_sampler_dynamic_state *dynamic_state, struct lp_type type, unsigned texture_index, unsigned sampler_index, LLVMValueRef function, unsigned num_args, unsigned sample_key, bool has_aniso_filter_table) lp_build_sample_gen_func() argument 4089 lp_build_sample_soa_func(struct gallivm_state *gallivm, const struct lp_static_texture_state *static_texture_state, const struct lp_static_sampler_state *static_sampler_state, struct lp_sampler_dynamic_state *dynamic_state, const struct lp_sampler_params *params, int texture_index, int sampler_index, LLVMValueRef *tex_ret) lp_build_sample_soa_func() argument [all...] |
H A D | lp_bld_sample.h | 108 unsigned texture_index; member 585 unsigned texture_index,
|
/third_party/mesa3d/src/panfrost/lib/ |
H A D | pan_shader.h | 154 cfg->var_tex.texture_index = msg->texture_index; in pan_pack_message_preload()
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_nir_lower_int_samplers.c | 72 tql->texture_index = tex->texture_index; in dx_get_texture_lod() 272 txf->texture_index = tex->texture_index; in create_txf_from_tex()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_lower_cubemap_to_array.c | 156 array_tex->texture_index = tex->texture_index; in create_array_tex_from_cube_tex() 388 unsigned index = tex->texture_index; in rewrite_cube_var_type() 424 txl->texture_index = tex->texture_index; in lower_tex_to_txl()
|
/third_party/mesa3d/src/amd/vulkan/ |
H A D | radv_nir_lower_ycbcr_textures.c | 152 tex->texture_index = old_tex->texture_index; in create_plane_tex_instr_implicit() 249 assert(tex->texture_index == 0); in try_lower_tex_ycbcr()
|
/third_party/mesa3d/src/intel/vulkan/ |
H A D | anv_nir_lower_ycbcr_textures.c | 153 tex->texture_index = old_tex->texture_index; in create_plane_tex_instr_implicit() 234 assert(tex->texture_index == 0); in anv_nir_lower_ycbcr_textures_instr()
|
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | midgard_errata_lod.c | 55 nir_src idx = nir_src_for_ssa(nir_imm_int(b, tex->texture_index)); in nir_lod_errata_instr()
|
/third_party/mesa3d/src/intel/blorp/ |
H A D | blorp_nir_builder.h | 62 tex->texture_index = 0; in blorp_nir_txf_ms_mcs()
|
/third_party/mesa3d/src/panfrost/util/ |
H A D | pan_sysval.c | 125 PAN_TXS_SYSVAL_ID(tex->texture_index, in panfrost_sysval_for_instr()
|
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dv_private.h | 1908 v3dv_pipeline_combined_index_key_create(uint32_t texture_index, in v3dv_pipeline_combined_index_key_create() argument 1911 return texture_index << 24 | sampler_index; in v3dv_pipeline_combined_index_key_create() 1916 uint32_t *texture_index, in v3dv_pipeline_combined_index_key_unpack() 1922 if (texture_index) in v3dv_pipeline_combined_index_key_unpack() 1923 *texture_index = texture; in v3dv_pipeline_combined_index_key_unpack() 1915 v3dv_pipeline_combined_index_key_unpack(uint32_t combined_index_key, uint32_t *texture_index, uint32_t *sampler_index) v3dv_pipeline_combined_index_key_unpack() argument
|
/third_party/mesa3d/src/freedreno/ir3/ |
H A D | ir3_nir_lower_tex_prefetch.c | 148 return (tex->texture_index <= 0x1f) && (tex->sampler_index <= 0xf); in ok_tex_samp()
|
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | v3d33_tex.c | 43 unsigned unit = instr->texture_index; in v3d33_vir_emit_tex()
|