Home
last modified time | relevance | path

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

12345

/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.c181 unsigned unit, num_samplers; in update_shader_samplers() local
194 num_samplers = util_last_bit(samplers_used); in update_shader_samplers()
265 num_samplers = MAX2(num_samplers, extra + 1); in update_shader_samplers()
268 cso_set_samplers(st->cso_context, shader_stage, num_samplers, states); in update_shader_samplers()
271 *out_num_samplers = num_samplers; in update_shader_samplers()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_texture.c262 assert (lima_tex->num_samplers <= 16); in lima_update_textures()
265 if (!lima_tex->num_samplers || !lima_tex->num_textures) in lima_update_textures()
269 for (int i = 0; i < lima_tex->num_samplers; i++) { in lima_update_textures()
281 for (int i = 0; i < lima_tex->num_samplers; i++) { in lima_update_textures()
290 for (int i = 0; i < lima_tex->num_samplers; i++) { in lima_update_textures()
/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/svga/
Dsvga_state_sampler.c399 const unsigned count = svga->curr.num_samplers[shader]; in update_samplers()
429 for (; i < svga->state.hw_draw.num_samplers[shader]; i++) { in update_samplers()
433 nsamplers = MAX2(svga->state.hw_draw.num_samplers[shader], count); in update_samplers()
435 if (count != svga->state.hw_draw.num_samplers[shader] || in update_samplers()
448 svga->state.hw_draw.num_samplers[shader] = count; in update_samplers()
Dsvga_state_fs.c272 svga->curr.num_samplers[shader]); in make_fs_key()
276 svga->curr.num_samplers[shader]) { in make_fs_key()
280 svga->curr.num_samplers[shader]); in make_fs_key()
301 for (i = 0; i < svga->curr.num_samplers[shader]; ++i) { in make_fs_key()
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/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/a6xx/
Dfd6_texture.h116 for (unsigned i = 0; i < tex->num_samplers; i++) { in fd6_border_color_offset()
129 return ctx->tex[PIPE_SHADER_VERTEX].num_samplers; in fd6_border_color_offset()
/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()
347 transform.num_samplers = log2(samplers_declared_bitmask + 1); in tgsi_remove_dynamic_indexing()
/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/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/freedreno/a4xx/
Dfd4_emit.c151 if (tex->num_samplers > 0) { in emit_textures()
152 int num_samplers; in emit_textures() local
158 num_samplers = align(tex->num_samplers, 2); in emit_textures()
161 OUT_PKT3(ring, CP_LOAD_STATE4, 2 + (2 * num_samplers)); in emit_textures()
165 CP_LOAD_STATE4_0_NUM_UNIT(num_samplers)); in emit_textures()
168 for (i = 0; i < tex->num_samplers; i++) { in emit_textures()
179 for (; i < num_samplers; i++) { in emit_textures()
/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/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/panfrost/vulkan/
Dpanvk_descriptor_set.c152 set_layout->num_samplers = sampler_idx; in panvk_CreateDescriptorSetLayout()
285 sampler_idx += set_layout->num_samplers; in panvk_CreatePipelineLayout()
309 layout->num_samplers = sampler_idx; in panvk_CreatePipelineLayout()
Dpanvk_vX_cmd_buffer.c414 unsigned num_samplers = pipeline->layout->num_samplers; in panvk_cmd_prepare_samplers() local
416 if (!num_samplers || desc_state->samplers) in panvk_cmd_prepare_samplers()
421 num_samplers, in panvk_cmd_prepare_samplers()
431 desc_state->sets[i].set->layout->num_samplers * in panvk_cmd_prepare_samplers()
434 sampler += desc_state->sets[i].set->layout->num_samplers; in panvk_cmd_prepare_samplers()
/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
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_context.h94 unsigned num_samplers[PIPE_SHADER_TYPES]; member

12345