Home
last modified time | relevance | path

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

12345678910

/external/mesa3d/src/mesa/main/
Dsamplerobj.h99 _mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers);
102 _mesa_GenSamplers(GLsizei count, GLuint *samplers);
105 _mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers);
108 _mesa_CreateSamplers(GLsizei count, GLuint *samplers);
111 _mesa_DeleteSamplers_no_error(GLsizei count, const GLuint *samplers);
114 _mesa_DeleteSamplers(GLsizei count, const GLuint *samplers);
126 _mesa_BindSamplers_no_error(GLuint first, GLsizei count, const GLuint *samplers);
129 _mesa_BindSamplers(GLuint first, GLsizei count, const GLuint *samplers);
Dsamplerobj.c157 create_samplers(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers() argument
163 if (!samplers) in create_samplers()
183 samplers[i] = name; in create_samplers()
190 create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers_err() argument
202 create_samplers(ctx, count, samplers, caller); in create_samplers_err()
206 _mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers) in _mesa_GenSamplers_no_error() argument
209 create_samplers(ctx, count, samplers, "glGenSamplers"); in _mesa_GenSamplers_no_error()
213 _mesa_GenSamplers(GLsizei count, GLuint *samplers) in _mesa_GenSamplers() argument
216 create_samplers_err(ctx, count, samplers, "glGenSamplers"); in _mesa_GenSamplers()
220 _mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers) in _mesa_CreateSamplers_no_error() argument
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c253 struct pipe_sampler_state *samplers, in update_shader_samplers() argument
272 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
297 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
335 st->state.samplers[PIPE_SHADER_VERTEX], in st_update_vertex_samplers()
349 st->state.samplers[PIPE_SHADER_TESS_CTRL], in st_update_tessctrl_samplers()
364 st->state.samplers[PIPE_SHADER_TESS_EVAL], in st_update_tesseval_samplers()
379 st->state.samplers[PIPE_SHADER_GEOMETRY], in st_update_geometry_samplers()
393 st->state.samplers[PIPE_SHADER_FRAGMENT], in st_update_fragment_samplers()
407 st->state.samplers[PIPE_SHADER_COMPUTE], in st_update_compute_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/v8/src/libsampler/
Dsampler.cc254 SamplerList* samplers = new SamplerList(); in AddSampler() local
255 samplers->push_back(sampler); in AddSampler()
256 entry->value = samplers; in AddSampler()
258 SamplerList* samplers = reinterpret_cast<SamplerList*>(entry->value); in AddSampler() local
260 for (SamplerListIterator iter = samplers->begin(); in AddSampler()
261 iter != samplers->end(); ++iter) { in AddSampler()
268 samplers->push_back(sampler); in AddSampler()
282 SamplerList* samplers = reinterpret_cast<SamplerList*>(entry->value); in RemoveSampler() local
283 for (SamplerListIterator iter = samplers->begin(); iter != samplers->end(); in RemoveSampler()
286 samplers->erase(iter); in RemoveSampler()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_descriptors.c226 static void si_release_sampler_views(struct si_samplers *samplers) in si_release_sampler_views() argument
230 for (i = 0; i < ARRAY_SIZE(samplers->views); i++) { in si_release_sampler_views()
231 pipe_sampler_view_reference(&samplers->views[i], NULL); in si_release_sampler_views()
275 struct si_samplers *samplers) in si_sampler_views_begin_new_cs() argument
277 unsigned mask = samplers->enabled_mask; in si_sampler_views_begin_new_cs()
282 struct si_sampler_view *sview = (struct si_sampler_view *)samplers->views[i]; in si_sampler_views_begin_new_cs()
497 struct si_samplers *samplers = &sctx->samplers[shader]; in si_set_sampler_view() local
503 if (samplers->views[slot] == view && !disallow_early_out) in si_set_sampler_view()
510 samplers->sampler_states[slot], desc); in si_set_sampler_view()
514 samplers->needs_depth_decompress_mask &= ~(1u << slot); in si_set_sampler_view()
[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/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/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/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/freedreno/
Dfreedreno_texture.c59 tex->samplers[p] = hwcso[i]; in bind_sampler_states()
60 if (tex->samplers[p]) in bind_sampler_states()
127 struct pipe_sampler_state *sampler = tex->samplers[i]; in fd_setup_border_colors()
/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/r600/
Dr600_hw_context.c402 struct r600_textures_info *samplers = &ctx->samplers[shader]; in r600_begin_new_cs() local
405 samplers->views.dirty_mask = samplers->views.enabled_mask; in r600_begin_new_cs()
406 samplers->states.dirty_mask = samplers->states.enabled_mask; in r600_begin_new_cs()
409 r600_sampler_views_dirty(ctx, &samplers->views); in r600_begin_new_cs()
410 r600_sampler_states_dirty(ctx, &samplers->states); in r600_begin_new_cs()
/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c59 void *samplers[PIPE_MAX_SAMPLERS]; member
83 struct sampler_info samplers[PIPE_SHADER_TYPES]; member
252 struct cso_sampler *sampler = ctx->samplers[i].cso_samplers[j]; in sanitize_hash()
1245 ctx->samplers[shader_stage].cso_samplers[idx] = cso; in cso_single_sampler()
1246 ctx->samplers[shader_stage].samplers[idx] = cso->data; in cso_single_sampler()
1259 struct sampler_info *info = &ctx->samplers[shader_stage]; in cso_single_sampler_done()
1266 info->samplers); in cso_single_sampler_done()
1291 struct sampler_info *info = &ctx->samplers[PIPE_SHADER_FRAGMENT]; in cso_save_fragment_samplers()
1296 memcpy(saved->samplers, info->samplers, sizeof(info->samplers)); in cso_save_fragment_samplers()
1303 struct sampler_info *info = &ctx->samplers[PIPE_SHADER_FRAGMENT]; in cso_restore_fragment_samplers()
[all …]
/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/intel/vulkan/
Danv_nir_apply_pipeline_layout.c394 struct anv_sampler **samplers = binding->immutable_samplers; in anv_nir_apply_pipeline_layout() local
396 uint8_t planes = samplers ? samplers[i]->n_planes : 1; in anv_nir_apply_pipeline_layout()
409 struct anv_sampler **samplers = binding->immutable_samplers; in anv_nir_apply_pipeline_layout() local
411 uint8_t planes = samplers ? samplers[i]->n_planes : 1; in anv_nir_apply_pipeline_layout()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_zscan.c335 zscan->samplers[i] = zscan->pipe->create_sampler_state(zscan->pipe, &sampler); in init_state()
336 if (!zscan->samplers[i]) in init_state()
344 if (zscan->samplers[i]) in init_state()
345 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in init_state()
364 zscan->pipe->delete_sampler_state(zscan->pipe, zscan->samplers[i]); in cleanup_state()
601 0, 3, zscan->samplers); in vl_zscan_render()
Dvl_compositor.c921 struct pipe_sampler_view **samplers = &layer->sampler_views[0]; in draw_layers() local
922 unsigned num_sampler_views = !samplers[1] ? 1 : !samplers[2] ? 2 : 3; in draw_layers()
929 num_sampler_views, layer->samplers); in draw_layers()
931 num_sampler_views, samplers); in draw_layers()
965 s->layers[layer].samplers[i] = c->sampler_linear; in set_yuv_layer()
1014 s->layers[layer].samplers[0] = c->sampler_linear; in set_rgb_to_yuv_layer()
1015 s->layers[layer].samplers[1] = NULL; in set_rgb_to_yuv_layer()
1016 s->layers[layer].samplers[2] = NULL; in set_rgb_to_yuv_layer()
1178 s->layers[layer].samplers[i] = c->sampler_linear; in vl_compositor_set_buffer_layer()
1231 s->layers[layer].samplers[0] = c->sampler_linear; in vl_compositor_set_palette_layer()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_descriptor_set.c65 uint32_t *samplers = (uint32_t*)&set_layout->binding[max_binding + 1]; in radv_CreateDescriptorSetLayout() local
140 memcpy(samplers + 4 * i, &radv_sampler_from_handle(binding->pImmutableSamplers[i])->state, 16); in radv_CreateDescriptorSetLayout()
142 if (memcmp(samplers + 4 * i, samplers, 16) != 0) in radv_CreateDescriptorSetLayout()
152 samplers += 4 * binding->descriptorCount; in radv_CreateDescriptorSetLayout()
355 …const uint32_t *samplers = (const uint32_t*)((const char*)layout + layout->binding[i].immutable_sa… in radv_descriptor_set_create() local
357 memcpy(set->mapped_ptr + offset, samplers + 4 * j, 16); in radv_descriptor_set_create()
702 const uint32_t *samplers = radv_immutable_samplers(set->layout, binding_layout); in radv_update_descriptor_sets() local
743 memcpy(ptr + 16, samplers + 4 * idx, 16); in radv_update_descriptor_sets()
752 memcpy(ptr, samplers + 4 * idx, 16); in radv_update_descriptor_sets()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_sampler.c424 memcmp(ids, svga->state.hw_draw.samplers[shader], in update_samplers()
434 memcpy(svga->state.hw_draw.samplers[shader], ids, in update_samplers()
451 if (svga->state.hw_draw.samplers[PIPE_SHADER_FRAGMENT][unit] in update_samplers()
462 svga->state.hw_draw.samplers[PIPE_SHADER_FRAGMENT][unit] = in update_samplers()
/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 …]

12345678910