Home
last modified time | relevance | path

Searched refs:num_samplers (Results 1 – 25 of 100) sorted by relevance

1234

/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_pstipple.c83 uint num_samplers; member
198 uint num_samplers; in pstip_first_tri() local
212 num_samplers = MAX2(pstip->num_samplers, pstip->fs->sampler_unit + 1); in pstip_first_tri()
213 num_sampler_views = MAX2(pstip->num_sampler_views, num_samplers); in pstip_first_tri()
220 assert(num_samplers <= PIPE_MAX_SAMPLERS); in pstip_first_tri()
225 num_samplers, pstip->state.samplers); in pstip_first_tri()
254 pstip->num_samplers, in pstip_flush()
410 pstip->num_samplers = num; in pstip_bind_sampler_states()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c185 unsigned unit, num_samplers; in update_shader_samplers() local
198 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
269 num_samplers = MAX2(num_samplers, extra + 1); in update_shader_samplers()
272 cso_set_samplers(st->cso_context, shader_stage, num_samplers, states); in update_shader_samplers()
275 *out_num_samplers = num_samplers; in update_shader_samplers()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_sampler.c400 const unsigned count = svga->curr.num_samplers[shader]; in update_samplers()
466 for (i = nsamplers; i < svga->state.hw_draw.num_samplers[shader]; i++) { in update_samplers()
471 MAX2(nsamplers, svga->state.hw_draw.num_samplers[shader]); in update_samplers()
480 if (nsamplers != svga->state.hw_draw.num_samplers[shader] || in update_samplers()
494 svga->state.hw_draw.num_samplers[shader] = nsamplers; in update_samplers()
524 svga->state.hw_draw.num_samplers[PIPE_SHADER_FRAGMENT]++; in update_samplers()
666 const unsigned count = svga->curr.num_samplers[shader]; in update_cs_samplers()
681 for (; i < svga->state.hw_draw.num_samplers[shader]; i++) { in update_cs_samplers()
685 nsamplers = MAX2(svga->state.hw_draw.num_samplers[shader], count); in update_cs_samplers()
687 if (count != svga->state.hw_draw.num_samplers[shader] || in update_cs_samplers()
[all …]
Dsvga_state_fs.c211 svga->curr.num_samplers[shader]); in make_fs_key()
215 svga->curr.num_samplers[shader]) { in make_fs_key()
219 svga->curr.num_samplers[shader]); in make_fs_key()
240 for (i = 0; i < svga->curr.num_samplers[shader]; ++i) { in make_fs_key()
Dsvga_shader.c289 svga->curr.num_samplers[shader_type]); in svga_init_shader_key_common()
291 key->num_samplers = 0; in svga_init_shader_key_common()
298 svga_use_sampler_state_mapping(svga, svga->curr.num_samplers[shader_type]); in svga_init_shader_key_common()
423 key->num_samplers = i + 1; in svga_init_shader_key_common()
449 MIN2(key->num_samplers, SVGA3D_DX_MAX_SAMPLERS-1); in svga_init_shader_key_common()
452 key->num_samplers = next_index + 1; in svga_init_shader_key_common()
456 key->num_samplers++; in svga_init_shader_key_common()
Dsvga_tgsi_decl_sm30.c565 for (i = 0; i < emit->num_samplers; i++) { in svga_shader_emit_samplers_decl()
590 emit->num_samplers = MAX2(emit->num_samplers, decl->Range.Last + 1); in svga_translate_decl_sm30()
/third_party/mesa3d/src/gallium/frontends/xa/
Dxa_composite.c456 int num_samplers = 0; in bind_samplers() local
480 num_samplers++; in bind_samplers()
495 samplers[num_samplers] = &mask_sampler; in bind_samplers()
501 ctx->bound_sampler_views[num_samplers] = src_view; in bind_samplers()
502 num_samplers++; in bind_samplers()
505 cso_set_samplers(ctx->cso, PIPE_SHADER_FRAGMENT, num_samplers, in bind_samplers()
507 pipe->set_sampler_views(pipe, PIPE_SHADER_FRAGMENT, 0, num_samplers, 0, in bind_samplers()
509 ctx->num_bound_samplers = num_samplers; in bind_samplers()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_texture.c292 assert (lima_tex->num_samplers <= 16); in lima_update_textures()
295 if (!lima_tex->num_samplers || !lima_tex->num_textures) in lima_update_textures()
299 for (int i = 0; i < lima_tex->num_samplers; i++) { in lima_update_textures()
313 for (int i = 0; i < lima_tex->num_samplers; i++) { in lima_update_textures()
322 for (int i = 0; i < lima_tex->num_samplers; i++) { in lima_update_textures()
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_texture.h94 for (unsigned i = 0; i < tex->num_samplers; i++) { in fd6_border_color_offset()
107 return ctx->tex[PIPE_SHADER_VERTEX].num_samplers; in fd6_border_color_offset()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv40_verttex.c63 for (; i < nv30->vertprog.num_samplers; i++) { in nv40_verttex_sampler_states_bind()
68 nv30->vertprog.num_samplers = nr; in nv40_verttex_sampler_states_bind()
Dnv30_context.h84 unsigned num_samplers; member
97 unsigned num_samplers; member
Dnv30_texture.c192 unsigned num_samplers, void **samplers) in nv30_bind_sampler_states() argument
196 nv40_verttex_sampler_states_bind(pipe, num_samplers, samplers); in nv30_bind_sampler_states()
199 nv30_fragtex_sampler_states_bind(pipe, num_samplers, samplers); in nv30_bind_sampler_states()
Dnv30_fragtex.c164 for (; i < nv30->fragprog.num_samplers; i++) { in nv30_fragtex_sampler_states_bind()
169 nv30->fragprog.num_samplers = nr; in nv30_fragtex_sampler_states_bind()
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
Dfd4_emit.c161 if (tex->num_samplers > 0 || tex->num_textures > 0) { in emit_textures()
162 int num_samplers = tex->num_samplers; in emit_textures() local
168 if (num_samplers == 0) in emit_textures()
169 num_samplers++; in emit_textures()
175 num_samplers = align(num_samplers, 2); in emit_textures()
178 OUT_PKT3(ring, CP_LOAD_STATE4, 2 + (2 * num_samplers)); in emit_textures()
182 CP_LOAD_STATE4_0_NUM_UNIT(num_samplers)); in emit_textures()
185 for (i = 0; i < tex->num_samplers; i++) { in emit_textures()
196 for (; i < num_samplers; i++) { in emit_textures()
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_tex.c381 assert(nv50->num_samplers[s] <= PIPE_MAX_SAMPLERS); in nv50_validate_tsc()
382 for (i = 0; i < nv50->num_samplers[s]; ++i) { in nv50_validate_tsc()
410 for (; i < nv50->state.num_samplers[s]; ++i) { in nv50_validate_tsc()
417 nv50->state.num_samplers[s] = nv50->num_samplers[s]; in nv50_validate_tsc()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_dynamic_indexing.c49 unsigned num_samplers; member
300 dc->num_iterations = dc->num_samplers; in dIndexing_inst()
346 transform.num_samplers = log2(samplers_declared_bitmask + 1); in tgsi_remove_dynamic_indexing()
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_descriptor_set.c151 sampler_idx += set_layout->num_samplers; in panvk_CreatePipelineLayout()
182 layout->num_samplers = sampler_idx; in panvk_CreatePipelineLayout()
193 layout->num_samplers++; in panvk_CreatePipelineLayout()
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c66 tex->num_samplers = util_last_bit(tex->valid_samplers); in bind_sampler_states()
143 for (i = 0; i < tex->num_samplers; i++) { in fd_setup_border_colors()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_texture.c45 unsigned start_slot, unsigned num_samplers, in etna_bind_sampler_states() argument
56 ctx->num_fragment_samplers = num_samplers; in etna_bind_sampler_states()
67 for (int idx = 0; idx < num_samplers; ++idx, mask <<= 1) { in etna_bind_sampler_states()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_sampler.c72 unsigned j = MAX2(softpipe->num_samplers[shader], start + num); in softpipe_bind_sampler_states()
75 softpipe->num_samplers[shader] = j; in softpipe_bind_sampler_states()
82 softpipe->num_samplers[shader]); in softpipe_bind_sampler_states()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_texture.c137 if (nr != ctx->tex[PIPE_SHADER_FRAGMENT].num_samplers) in fd2_sampler_states_bind()
242 return samp_id + ctx->tex[PIPE_SHADER_FRAGMENT].num_samplers; in fd2_get_const_idx()
/third_party/mesa3d/src/gallium/frontends/clover/nir/
Dinvocation.cpp130 int num_samplers = 0; in clover_nir_lower_images() local
138 var->data.driver_location = num_samplers++; in clover_nir_lower_images()
145 if (num_samplers) in clover_nir_lower_images()
146 BITSET_SET_RANGE(shader->info.samplers_used, 0, num_samplers - 1); in clover_nir_lower_images()
/third_party/mesa3d/src/freedreno/decode/
Dpgmdump.c52 uint32_t num_samplers; member
402 for (i = 0; i < state->hdr->num_samplers; i++) { in dump_short_summary()
713 printf("\tsamplers: %d\n", state->hdr->num_samplers); in dump_program()
771 for (i = 0; (i < state->hdr->num_samplers) && (state->sz > 0); i++) { in dump_program()
793 for (i = 0; (i < state->hdr->num_samplers) && (state->sz > 0); i++) { in dump_program()
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_emit.c191 for (i = 0; i < tex->num_samplers; i++) { in setup_border_colors()
333 &entries[ctx->tex[PIPE_SHADER_VERTEX].num_samplers]); in emit_border_color()
348 (sb == SB4_FS_TEX) ? ctx->tex[PIPE_SHADER_VERTEX].num_samplers : 0; in emit_textures()
351 if (tex->num_samplers > 0) { in emit_textures()
353 OUT_PKT7(ring, CP_LOAD_STATE4, 3 + (4 * tex->num_samplers)); in emit_textures()
357 CP_LOAD_STATE4_0_NUM_UNIT(tex->num_samplers)); in emit_textures()
361 for (i = 0; i < tex->num_samplers; i++) { in emit_textures()
/third_party/mesa3d/src/microsoft/clc/
Dclc_compiler.h68 size_t num_samplers; member

1234