/external/mesa3d/src/mesa/main/ |
D | samplerobj.h | 99 _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);
|
D | samplerobj.c | 157 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/ |
D | st_atom_sampler.c | 253 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()
|
D | st_vdpau.c | 68 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/ |
D | sampler.cc | 254 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/ |
D | si_descriptors.c | 226 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/ |
D | sp_state_sampler.c | 55 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/ |
D | lp_state_sampler.c | 72 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/ |
D | pp_mlaa.c | 141 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()
|
D | pp_colors.c | 40 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/ |
D | nv40_verttex.c | 38 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()
|
D | nv30_fragtex.c | 44 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/ |
D | draw_pipe_pstipple.c | 89 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/ |
D | freedreno_texture.c | 59 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/ |
D | xa_yuv.c | 72 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()
|
D | xa_composite.c | 392 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/ |
D | r600_hw_context.c | 402 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/ |
D | cso_context.c | 59 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/ |
D | i915_state.c | 299 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/ |
D | anv_nir_apply_pipeline_layout.c | 394 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/ |
D | vl_zscan.c | 335 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()
|
D | vl_compositor.c | 921 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/ |
D | radv_descriptor_set.c | 65 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/ |
D | svga_state_sampler.c | 424 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/ |
D | nv50_state.c | 590 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 …]
|