Home
last modified time | relevance | path

Searched refs:samplers (Results 1 – 25 of 171) sorted by relevance

1234567

/external/v8/src/libsampler/
Dsampler.cc232 SamplerList* samplers = new SamplerList(); in AddSampler() local
233 samplers->push_back(sampler); in AddSampler()
234 entry->value = samplers; in AddSampler()
236 SamplerList* samplers = reinterpret_cast<SamplerList*>(entry->value); in AddSampler() local
238 for (SamplerListIterator iter = samplers->begin(); in AddSampler()
239 iter != samplers->end(); ++iter) { in AddSampler()
246 samplers->push_back(sampler); in AddSampler()
260 SamplerList* samplers = reinterpret_cast<SamplerList*>(entry->value); in RemoveSampler() local
261 for (SamplerListIterator iter = samplers->begin(); iter != samplers->end(); in RemoveSampler()
264 samplers->erase(iter); in RemoveSampler()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c249 struct pipe_sampler_state *samplers, in update_shader_samplers() argument
266 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
294 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
332 st->state.samplers[PIPE_SHADER_FRAGMENT], in update_samplers()
339 st->state.samplers[PIPE_SHADER_VERTEX], in update_samplers()
347 st->state.samplers[PIPE_SHADER_GEOMETRY], in update_samplers()
355 st->state.samplers[PIPE_SHADER_TESS_CTRL], in update_samplers()
363 st->state.samplers[PIPE_SHADER_TESS_EVAL], in update_samplers()
371 st->state.samplers[PIPE_SHADER_COMPUTE], in update_samplers()
Dst_vdpau.c68 struct pipe_sampler_view **samplers; in st_vdpau_video_surface_gallium() local
79 samplers = buffer->get_sampler_view_planes(buffer); in st_vdpau_video_surface_gallium()
80 if (!samplers) in st_vdpau_video_surface_gallium()
83 sv = samplers[index >> 1]; in st_vdpau_video_surface_gallium()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_descriptors.c420 struct si_sampler_views *views = &sctx->samplers[shader].views; in si_set_sampler_view()
502 struct si_textures_info *samplers = &sctx->samplers[shader]; in si_update_compressed_tex_shader_mask() local
505 if (samplers->depth_texture_mask || in si_update_compressed_tex_shader_mask()
506 samplers->compressed_colortex_mask || in si_update_compressed_tex_shader_mask()
519 struct si_textures_info *samplers = &sctx->samplers[shader]; in si_set_sampler_views() local
529 samplers->depth_texture_mask &= ~(1u << slot); in si_set_sampler_views()
530 samplers->compressed_colortex_mask &= ~(1u << slot); in si_set_sampler_views()
544 samplers->depth_texture_mask |= 1u << slot; in si_set_sampler_views()
546 samplers->depth_texture_mask &= ~(1u << slot); in si_set_sampler_views()
549 samplers->compressed_colortex_mask |= 1u << slot; in si_set_sampler_views()
[all …]
/external/mesa3d/src/mesa/main/
Dsamplerobj.h99 _mesa_GenSamplers(GLsizei count, GLuint *samplers);
101 _mesa_CreateSamplers(GLsizei count, GLuint *samplers);
103 _mesa_DeleteSamplers(GLsizei count, const GLuint *samplers);
109 _mesa_BindSamplers(GLuint first, GLsizei count, const GLuint *samplers);
Dsamplerobj.c181 create_samplers(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers() argument
195 if (!samplers) in create_samplers()
207 samplers[i] = first + i; in create_samplers()
214 _mesa_GenSamplers(GLsizei count, GLuint *samplers) in _mesa_GenSamplers() argument
217 create_samplers(ctx, count, samplers, "glGenSamplers"); in _mesa_GenSamplers()
221 _mesa_CreateSamplers(GLsizei count, GLuint *samplers) in _mesa_CreateSamplers() argument
224 create_samplers(ctx, count, samplers, "glCreateSamplers"); in _mesa_CreateSamplers()
229 _mesa_DeleteSamplers(GLsizei count, const GLuint *samplers) in _mesa_DeleteSamplers() argument
244 if (samplers[i]) { in _mesa_DeleteSamplers()
247 _mesa_lookup_samplerobj_locked(ctx, samplers[i]); in _mesa_DeleteSamplers()
[all …]
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_sampler.c55 void **samplers) in softpipe_bind_sampler_states() argument
61 assert(start + num <= ARRAY_SIZE(softpipe->samplers[shader])); in softpipe_bind_sampler_states()
67 softpipe->samplers[shader][start + i] = samplers[i]; in softpipe_bind_sampler_states()
73 while (j > 0 && softpipe->samplers[shader][j - 1] == NULL) in softpipe_bind_sampler_states()
81 softpipe->samplers[shader], in softpipe_bind_sampler_states()
/external/mesa3d/src/gallium/drivers/ilo/
Dilo_render_dynamic.c139 struct ilo_state_sampler samplers[ILO_MAX_SAMPLERS]; in gen6_emit_draw_dynamic_samplers() local
205 samplers[i] = cso->sampler; in gen6_emit_draw_dynamic_samplers()
206 ilo_state_sampler_set_surface(&samplers[i], in gen6_emit_draw_dynamic_samplers()
209 samplers[i] = vec->disabled_sampler; in gen6_emit_draw_dynamic_samplers()
213 *sampler_state = gen6_SAMPLER_STATE(r->builder, samplers, in gen6_emit_draw_dynamic_samplers()
478 struct ilo_state_sampler samplers[ILO_MAX_SAMPLERS]; in gen6_emit_launch_grid_dynamic_samplers() local
499 samplers[i] = cso->sampler; in gen6_emit_launch_grid_dynamic_samplers()
500 ilo_state_sampler_set_surface(&samplers[i], in gen6_emit_launch_grid_dynamic_samplers()
503 samplers[i] = vec->disabled_sampler; in gen6_emit_launch_grid_dynamic_samplers()
507 r->state.cs.SAMPLER_STATE = gen6_SAMPLER_STATE(r->builder, samplers, in gen6_emit_launch_grid_dynamic_samplers()
/external/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_mlaa.c141 const struct pipe_sampler_state *samplers[] = {&p->sampler_point}; in pp_jimenezmlaa_run() local
142 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers); in pp_jimenezmlaa_run()
170 const struct pipe_sampler_state *samplers[] = in pp_jimenezmlaa_run() local
172 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 3, samplers); in pp_jimenezmlaa_run()
202 const struct pipe_sampler_state *samplers[] = in pp_jimenezmlaa_run() local
204 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 2, samplers); in pp_jimenezmlaa_run()
Dpp_colors.c40 const struct pipe_sampler_state *samplers[] = {&p->sampler_point}; in pp_nocolor() local
48 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers); in pp_nocolor()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_sampler.c72 void **samplers) in llvmpipe_bind_sampler_states() argument
78 assert(start + num <= ARRAY_SIZE(llvmpipe->samplers[shader])); in llvmpipe_bind_sampler_states()
84 llvmpipe->samplers[shader][start + i] = samplers[i]; in llvmpipe_bind_sampler_states()
90 while (j > 0 && llvmpipe->samplers[shader][j - 1] == NULL) in llvmpipe_bind_sampler_states()
98 llvmpipe->samplers[shader], in llvmpipe_bind_sampler_states()
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c59 void *samplers[PIPE_MAX_SAMPLERS]; member
84 struct sampler_info samplers[PIPE_SHADER_TYPES]; member
243 for (j = 0; j < ctx->samplers[i].nr_samplers; j++) { in sanitize_hash()
244 struct cso_sampler *sampler = ctx->samplers[i].cso_samplers[j]; in sanitize_hash()
1239 ctx->samplers[shader_stage].cso_samplers[idx] = cso; in cso_single_sampler()
1240 ctx->samplers[shader_stage].samplers[idx] = cso->data; in cso_single_sampler()
1242 ctx->samplers[shader_stage].cso_samplers[idx] = NULL; in cso_single_sampler()
1243 ctx->samplers[shader_stage].samplers[idx] = NULL; in cso_single_sampler()
1257 struct sampler_info *info = &ctx->samplers[shader_stage]; in cso_single_sampler_done()
1263 if (info->samplers[i - 1] != NULL) in cso_single_sampler_done()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv40_verttex.c38 struct nv30_sampler_state *ss = nv30->fragprog.samplers[unit]; in nv40_verttex_validate()
59 nv30->vertprog.samplers[i] = hwcso[i]; in nv40_verttex_sampler_states_bind()
64 nv30->vertprog.samplers[i] = NULL; in nv40_verttex_sampler_states_bind()
Dnv30_fragtex.c44 struct nv30_sampler_state *ss = nv30->fragprog.samplers[unit]; in nv30_fragtex_validate()
160 nv30->fragprog.samplers[i] = hwcso[i]; in nv30_fragtex_sampler_states_bind()
165 nv30->fragprog.samplers[i] = NULL; in nv30_fragtex_sampler_states_bind()
/external/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pipe_pstipple.c89 void *samplers[PIPE_MAX_SAMPLERS]; member
206 pstip->state.samplers[pstip->fs->sampler_unit] = pstip->sampler_cso; in pstip_first_tri()
215 num_samplers, pstip->state.samplers); in pstip_first_tri()
244 pstip->state.samplers); in pstip_flush()
388 memcpy(pstip->state.samplers, sampler, num * sizeof(void *)); in pstip_bind_sampler_states()
390 pstip->state.samplers[i] = NULL; in pstip_bind_sampler_states()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_hw_context.c356 struct r600_textures_info *samplers = &ctx->samplers[shader]; in r600_begin_new_cs() local
359 samplers->views.dirty_mask = samplers->views.enabled_mask; in r600_begin_new_cs()
360 samplers->states.dirty_mask = samplers->states.enabled_mask; in r600_begin_new_cs()
363 r600_sampler_views_dirty(ctx, &samplers->views); in r600_begin_new_cs()
364 r600_sampler_states_dirty(ctx, &samplers->states); in r600_begin_new_cs()
Dr600_state_common.c416 struct r600_textures_info *dst = &rctx->samplers[shader]; in r600_bind_sampler_states()
606 struct r600_textures_info *dst = &rctx->samplers[shader]; in r600_set_sampler_views()
1205 struct r600_textures_info *samplers = &rctx->samplers[shader_type]; in r600_setup_buffer_constants() local
1211 if (!samplers->views.dirty_buffer_constants) in r600_setup_buffer_constants()
1214 samplers->views.dirty_buffer_constants = FALSE; in r600_setup_buffer_constants()
1216 bits = util_last_bit(samplers->views.enabled_mask); in r600_setup_buffer_constants()
1222 if (samplers->views.enabled_mask & (1 << i)) { in r600_setup_buffer_constants()
1225 desc = util_format_description(samplers->views.views[i]->base.format); in r600_setup_buffer_constants()
1240 …constants[offset + 5] = samplers->views.views[i]->base.texture->width0 / util_format_get_blocksize… in r600_setup_buffer_constants()
1241 constants[offset + 6] = samplers->views.views[i]->base.texture->array_size / 6; in r600_setup_buffer_constants()
[all …]
/external/mesa3d/src/gallium/state_trackers/xa/
Dxa_yuv.c72 struct pipe_sampler_state *samplers[3]; in xa_yuv_bind_samplers() local
87 samplers[i] = &sampler; in xa_yuv_bind_samplers()
95 cso_set_samplers(r->cso, PIPE_SHADER_FRAGMENT, 3, (const struct pipe_sampler_state **)samplers); in xa_yuv_bind_samplers()
Dxa_composite.c392 struct pipe_sampler_state *samplers[PIPE_MAX_SAMPLERS]; in bind_samplers() local
407 samplers[0] = NULL; in bind_samplers()
421 samplers[0] = &src_sampler; in bind_samplers()
445 samplers[1] = &mask_sampler; in bind_samplers()
467 (const struct pipe_sampler_state **)samplers); in bind_samplers()
/external/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_texture.c59 tex->samplers[p] = hwcso[i]; in bind_sampler_states()
60 if (tex->samplers[p]) in bind_sampler_states()
150 struct pipe_sampler_state *sampler = tex->samplers[i]; in fd_setup_border_colors()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state.c299 void **samplers) in i915_bind_vertex_sampler_states() argument
308 !memcmp(i915->vertex_samplers + start, samplers, in i915_bind_vertex_sampler_states()
313 i915->vertex_samplers[i + start] = samplers[i]; in i915_bind_vertex_sampler_states()
334 void **samplers) in i915_bind_fragment_sampler_states() argument
341 !memcmp(i915->fragment_sampler + start, samplers, in i915_bind_fragment_sampler_states()
346 i915->fragment_sampler[i + start] = samplers[i]; in i915_bind_fragment_sampler_states()
364 void **samplers) in i915_bind_sampler_states() argument
368 i915_bind_vertex_sampler_states(pipe, start, num_samplers, samplers); in i915_bind_sampler_states()
371 i915_bind_fragment_sampler_states(pipe, start, num_samplers, samplers); in i915_bind_sampler_states()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_sampler.c370 memcmp(ids, svga->state.hw_draw.samplers[shader], in update_samplers()
380 memcpy(svga->state.hw_draw.samplers[shader], ids, in update_samplers()
397 if (svga->state.hw_draw.samplers[PIPE_SHADER_FRAGMENT][unit] in update_samplers()
408 svga->state.hw_draw.samplers[PIPE_SHADER_FRAGMENT][unit] = in update_samplers()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_zscan.c314 zscan->samplers[i] = zscan->pipe->create_sampler_state(zscan->pipe, &sampler); in init_state()
315 if (!zscan->samplers[i]) in init_state()
323 if (zscan->samplers[i]) in init_state()
324 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in init_state()
343 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in cleanup_state()
580 0, 3, zscan->samplers); in vl_zscan_render()
Dvl_compositor.c833 struct pipe_sampler_view **samplers = &layer->sampler_views[0]; in draw_layers() local
834 unsigned num_sampler_views = !samplers[1] ? 1 : !samplers[2] ? 2 : 3; in draw_layers()
841 num_sampler_views, layer->samplers); in draw_layers()
843 num_sampler_views, samplers); in draw_layers()
1012 s->layers[layer].samplers[i] = c->sampler_linear; in vl_compositor_set_buffer_layer()
1065 s->layers[layer].samplers[0] = c->sampler_linear; in vl_compositor_set_palette_layer()
1066 s->layers[layer].samplers[1] = c->sampler_nearest; in vl_compositor_set_palette_layer()
1067 s->layers[layer].samplers[2] = NULL; in vl_compositor_set_palette_layer()
1093 s->layers[layer].samplers[0] = c->sampler_linear; in vl_compositor_set_rgba_layer()
1094 s->layers[layer].samplers[1] = NULL; in vl_compositor_set_rgba_layer()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_state.c590 if (nv50_context(pipe)->samplers[s][i] == hwcso) in nv50_sampler_state_delete()
591 nv50_context(pipe)->samplers[s][i] = NULL; in nv50_sampler_state_delete()
607 struct nv50_tsc_entry *old = nv50->samplers[s][i]; in nv50_stage_sampler_states_bind()
609 nv50->samplers[s][i] = nv50_tsc_entry(hwcso[i]); in nv50_stage_sampler_states_bind()
615 if (nv50->samplers[s][i]) { in nv50_stage_sampler_states_bind()
616 nv50_screen_tsc_unlock(nv50->screen, nv50->samplers[s][i]); in nv50_stage_sampler_states_bind()
617 nv50->samplers[s][i] = NULL; in nv50_stage_sampler_states_bind()
647 unsigned num_samplers, void **samplers) in nv50_bind_sampler_states() argument
652 nv50_vp_sampler_states_bind(pipe, num_samplers, samplers); in nv50_bind_sampler_states()
655 nv50_gp_sampler_states_bind(pipe, num_samplers, samplers); in nv50_bind_sampler_states()
[all …]

1234567