Home
last modified time | relevance | path

Searched refs:samp_id (Results 1 – 24 of 24) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_uniforms.c37 get_const_idx(const struct etna_context *ctx, bool frag, unsigned samp_id) in get_const_idx() argument
42 return samp_id; in get_const_idx()
44 return samp_id + screen->specs.vertex_sampler_offset; in get_const_idx()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_nir_lower_load_barycentric_at_sample.c36 load_sample_pos(nir_builder *b, nir_ssa_def *samp_id) in load_sample_pos() argument
38 return nir_load_sample_pos_from_id(b, 32, samp_id); in load_sample_pos()
Dir3_context.h91 struct ir3_instruction *samp_id, *samp_mask_in; member
Dir3_shader.h259 uint8_t samp_id; member
Dir3_compiler_nir.c2346 if (!ctx->samp_id) { in emit_intrinsic()
2347 ctx->samp_id = create_sysval_input(ctx, SYSTEM_VALUE_SAMPLE_ID, 0x1); in emit_intrinsic()
2348 ctx->samp_id->dsts[0]->flags |= IR3_REG_HALF; in emit_intrinsic()
2350 dst[0] = ir3_COV(b, ctx->samp_id, TYPE_U16, TYPE_U32); in emit_intrinsic()
4567 fetch->samp_id = instr->prefetch.samp_base; in collect_tex_prefetches()
4573 fetch->samp_id = instr->prefetch.samp; in collect_tex_prefetches()
4584 assert(fetch->samp_id <= 0xf); in collect_tex_prefetches()
Dir3_shader.c809 "xyzw"[fetch->dst & 0x3], fetch -> src, fetch -> samp_id, in ir3_shader_disasm()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_texture.c238 unsigned samp_id) assert_dt in fd2_get_const_idx() argument
241 return samp_id; in fd2_get_const_idx()
242 return samp_id + ctx->tex[PIPE_SHADER_FRAGMENT].num_samplers; in fd2_get_const_idx()
Dfd2_emit.c114 struct fd_texture_stateobj *tex, unsigned samp_id, texmask emitted) in emit_texture() argument
116 unsigned const_idx = fd2_get_const_idx(ctx, tex, samp_id); in emit_texture()
126 sampler = tex->samplers[samp_id] in emit_texture()
127 ? fd2_sampler_stateobj(tex->samplers[samp_id]) in emit_texture()
129 view = tex->textures[samp_id] ? fd2_pipe_sampler_view(tex->textures[samp_id]) in emit_texture()
Dfd2_texture.h61 struct fd_texture_stateobj *tex, unsigned samp_id);
Dir2.h43 uint16_t samp_id; member
Dir2_assemble.c443 info->tex.samp_id = instr->fetch.tex.samp_id; in assemble()
Dir2_private.h117 uint8_t samp_id; member
Dfd2_program.c200 instr->tex.const_idx = fd2_get_const_idx(ctx, tex, fi->tex.samp_id); in patch_fetches()
Dir2_nir.c748 instr->fetch.tex.samp_id = tex->sampler_index; in emit_tex()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.h62 struct fd_texture_stateobj *tex, unsigned samp_id);
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_texture.h65 struct fd_texture_stateobj *tex, unsigned samp_id);
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_hlsl.hpp251 …d_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id) override;
Dspirv_glsl.hpp377 …it_sampled_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id);
749 std::string to_combined_image_sampler(VariableID image_id, VariableID samp_id);
Dspirv_msl.hpp722 …d_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id) override;
Dspirv_glsl.cpp6390 string CompilerGLSL::to_combined_image_sampler(VariableID image_id, VariableID samp_id) in to_combined_image_sampler() argument
6405 auto *samp = maybe_get_backing_variable(samp_id); in to_combined_image_sampler()
6409 samp_id = samp->self; in to_combined_image_sampler()
6415 … [samp_id](const SPIRFunction::Parameter &param) { return samp_id == param.id; }); in to_combined_image_sampler()
6423 VariableID sid = global_sampler ? samp_id : VariableID(uint32_t(sampler_itr - begin(args))); in to_combined_image_sampler()
6444 …auto itr = find_if(begin(mapping), end(mapping), [image_id, samp_id](const CombinedImageSampler &c… in to_combined_image_sampler()
6445 return combined.image_id == image_id && combined.sampler_id == samp_id; in to_combined_image_sampler()
6482 …mit_sampled_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id) in emit_sampled_image_op() argument
6486 emit_binary_func_op(result_type, result_id, image_id, samp_id, in emit_sampled_image_op()
6492 emit_op(result_type, result_id, to_combined_image_sampler(image_id, samp_id), true, true); in emit_sampled_image_op()
Dspirv_hlsl.cpp2276 …mit_sampled_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id) in emit_sampled_image_op() argument
2280 set<SPIRCombinedImageSampler>(result_id, result_type, image_id, samp_id); in emit_sampled_image_op()
2285 emit_op(result_type, result_id, to_combined_image_sampler(image_id, samp_id), true, true); in emit_sampled_image_op()
Dspirv_msl.cpp9950 …mit_sampled_image_op(uint32_t result_type, uint32_t result_id, uint32_t image_id, uint32_t samp_id) in emit_sampled_image_op() argument
9952 set<SPIRCombinedImageSampler>(result_id, result_type, image_id, samp_id); in emit_sampled_image_op()
10311 uint32_t samp_id = 0; in to_sampler_expression() local
10313 samp_id = combined->sampler; in to_sampler_expression()
10316 return samp_id ? to_expression(samp_id) : expr + sampler_name_suffix; in to_sampler_expression()
10321 return samp_id ? to_expression(samp_id) : (image_expr + sampler_name_suffix + array_expr); in to_sampler_expression()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_program.c535 A6XX_SP_FS_PREFETCH_CMD_SAMP_ID(prefetch->samp_id) | in setup_stateobj()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_pipeline.c1427 A6XX_SP_FS_PREFETCH_CMD_SAMP_ID(prefetch->samp_id) | in tu6_emit_fs_inputs()