Home
last modified time | relevance | path

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

12345678910>>...22

/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DSamplerHeapCacheD3D12.cpp29 SamplerHeapCacheEntry::SamplerHeapCacheEntry(std::vector<Sampler*> samplers) in SamplerHeapCacheEntry() argument
30 : mSamplers(std::move(samplers)) { in SamplerHeapCacheEntry()
35 std::vector<Sampler*> samplers, in SamplerHeapCacheEntry() argument
38 mSamplers(std::move(samplers)), in SamplerHeapCacheEntry()
100 std::vector<Sampler*> samplers; in GetOrCreate() local
101 samplers.reserve(bgl->GetSamplerDescriptorCount()); in GetOrCreate()
107 samplers.push_back(ToBackend(group->GetBindingAsSampler(bindingIndex))); in GetOrCreate()
113 SamplerHeapCacheEntry blueprint(std::move(samplers)); in GetOrCreate()
121 samplers = std::move(blueprint.AcquireSamplers()); in GetOrCreate()
129 for (uint32_t i = 0; i < samplers.size(); ++i) { in GetOrCreate()
[all …]
DSamplerHeapCacheD3D12.h48 SamplerHeapCacheEntry(std::vector<Sampler*> samplers);
51 std::vector<Sampler*> samplers,
/third_party/mesa3d/src/gallium/auxiliary/vl/
Dvl_compositor_cs.c650 struct pipe_sampler_view **samplers) in set_viewport() argument
683 if (samplers[1]) { in set_viewport()
684 float h_ratio = samplers[1]->texture->width0 / in set_viewport()
685 (float) samplers[0]->texture->width0; in set_viewport()
687 float v_ratio = samplers[1]->texture->height0 / in set_viewport()
688 (float) samplers[0]->texture->height0; in set_viewport()
708 struct pipe_sampler_view **samplers = &layer->sampler_views[0]; in draw_layers() local
709 unsigned num_sampler_views = !samplers[1] ? 1 : !samplers[2] ? 2 : 3; in draw_layers()
725 set_viewport(s, &drawn, samplers); in draw_layers()
728 num_sampler_views, layer->samplers); in draw_layers()
[all …]
/third_party/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.c173 create_samplers(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers() argument
178 if (!samplers) in create_samplers()
183 _mesa_HashFindFreeKeys(ctx->Shared->SamplerObjects, samplers, count); in create_samplers()
189 sampObj = ctx->Driver.NewSamplerObject(ctx, samplers[i]); in create_samplers()
196 _mesa_HashInsertLocked(ctx->Shared->SamplerObjects, samplers[i], in create_samplers()
204 create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers_err() argument
216 create_samplers(ctx, count, samplers, caller); in create_samplers_err()
220 _mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers) in _mesa_GenSamplers_no_error() argument
223 create_samplers(ctx, count, samplers, "glGenSamplers"); in _mesa_GenSamplers_no_error()
227 _mesa_GenSamplers(GLsizei count, GLuint *samplers) in _mesa_GenSamplers() argument
[all …]
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_context.c60 void *samplers[PIPE_MAX_SAMPLERS]; member
84 struct sampler_info samplers[PIPE_SHADER_TYPES]; member
192 struct cso_sampler *sampler = ctx->samplers[i].cso_samplers[j]; in sanitize_hash()
392 memset(&ctx->samplers, 0, sizeof(ctx->samplers)); in cso_unbind_context()
988 struct sampler_info *info = &ctx->samplers[PIPE_SHADER_COMPUTE]; in cso_save_compute_samplers()
993 memcpy(saved->samplers, info->samplers, sizeof(info->samplers)); in cso_save_compute_samplers()
1000 struct sampler_info *info = &ctx->samplers[PIPE_SHADER_COMPUTE]; in cso_restore_compute_samplers()
1005 memcpy(info->samplers, saved->samplers, sizeof(info->samplers)); in cso_restore_compute_samplers()
1008 if (info->samplers[i]) { in cso_restore_compute_samplers()
1232 ctx->samplers[shader_stage].cso_samplers[idx] = cso; in cso_set_sampler()
[all …]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dsi_descriptors.c208 static void si_release_sampler_views(struct si_samplers *samplers) in si_release_sampler_views() argument
212 for (i = 0; i < ARRAY_SIZE(samplers->views); i++) { in si_release_sampler_views()
213 pipe_sampler_view_reference(&samplers->views[i], NULL); in si_release_sampler_views()
236 static void si_sampler_views_begin_new_cs(struct si_context *sctx, struct si_samplers *samplers) in si_sampler_views_begin_new_cs() argument
238 unsigned mask = samplers->enabled_mask; in si_sampler_views_begin_new_cs()
243 struct si_sampler_view *sview = (struct si_sampler_view *)samplers->views[i]; in si_sampler_views_begin_new_cs()
250 static bool si_sampler_views_check_encrypted(struct si_context *sctx, struct si_samplers *samplers, in si_sampler_views_check_encrypted() argument
253 unsigned mask = samplers->enabled_mask & samplers_declared; in si_sampler_views_check_encrypted()
258 struct si_sampler_view *sview = (struct si_sampler_view *)samplers->views[i]; in si_sampler_views_check_encrypted()
503 static void si_reset_sampler_view_slot(struct si_samplers *samplers, unsigned slot, in si_reset_sampler_view_slot() argument
[all …]
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_llvm.h168 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
272 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
353 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
407 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
531 struct draw_sampler_static_state samplers[1]; member
540 struct draw_sampler_static_state samplers[1]; member
552 struct draw_sampler_static_state samplers[1]; member
623 struct draw_sampler_static_state *samplers = (struct draw_sampler_static_state *) in draw_llvm_variant_key_images() local
626 &samplers[key->nr_samplers]; in draw_llvm_variant_key_images()
633 &key->samplers[key->nr_samplers]; in draw_gs_llvm_variant_key_images()
[all …]
Ddraw_pipe_pstipple.c91 void *samplers[PIPE_MAX_SAMPLERS]; member
216 pstip->state.samplers[pstip->fs->sampler_unit] = pstip->sampler_cso; in pstip_first_tri()
225 num_samplers, pstip->state.samplers); in pstip_first_tri()
255 pstip->state.samplers); in pstip_flush()
406 memcpy(pstip->state.samplers, sampler, num * sizeof(void *)); in pstip_bind_sampler_states()
408 pstip->state.samplers[i] = NULL; in pstip_bind_sampler_states()
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/
DDrawTester.hpp105 samplers.push_back(sampler); in addSampler()
106 return { samplers.size() - 1, samplers.back() }; in addSampler()
111 return samplers[id]; in getSamplerById()
167 std::vector<vk::Sampler> samplers; // Owning handles member in DrawTester
/third_party/mesa3d/src/gallium/auxiliary/postprocess/
Dpp_mlaa.c134 const struct pipe_sampler_state *samplers[] = {&p->sampler_point}; in pp_jimenezmlaa_run() local
135 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers); in pp_jimenezmlaa_run()
163 const struct pipe_sampler_state *samplers[] = in pp_jimenezmlaa_run() local
165 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 3, samplers); in pp_jimenezmlaa_run()
195 const struct pipe_sampler_state *samplers[] = in pp_jimenezmlaa_run() local
197 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 2, samplers); in pp_jimenezmlaa_run()
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineState.cpp100 std::vector<D3D12_CPU_DESCRIPTOR_HANDLE> samplers(fNumSamplers); in setAndBindTextures() local
108 samplers[currTextureBinding++] = in setAndBindTextures()
116 samplers[currTextureBinding++] = gpu->resourceProvider().findOrCreateCompatibleSampler( in setAndBindTextures()
125 samplers[currTextureBinding++] = in setAndBindTextures()
138 gpu->resourceProvider().findOrCreateSamplerTable(samplers); in setAndBindTextures()
/third_party/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()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_atom_sampler.c174 struct pipe_sampler_state *samplers, in update_shader_samplers() argument
191 if (!samplers) in update_shader_samplers()
192 samplers = local_samplers; in update_shader_samplers()
198 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
224 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
/third_party/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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/
DResolveDepthStencil.hlsl27 // MS samplers must use Load
38 // MS samplers must use Load
50 // MS samplers must use Load
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/
DResolveDepthStencil.hlsl27 // MS samplers must use Load
38 // MS samplers must use Load
50 // MS samplers must use Load
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_descriptor_set.c76 set->samplers = vk_zalloc(&device->vk.alloc, in panvk_per_arch()
79 if (!set->samplers) in panvk_per_arch()
108 vk_free(&device->vk.alloc, set->samplers); in panvk_per_arch()
221 struct mali_sampler_packed *samplers = set->samplers; in panvk_per_arch() local
253 panvk_set_sampler_desc(&samplers[sampler], info); in panvk_per_arch()
/third_party/flutter/skia/third_party/externals/angle2/src/libGL/
Dentry_points_gl_4_4_autogen.cpp101 void GL_APIENTRY BindSamplers(GLuint first, GLsizei count, const GLuint *samplers) in BindSamplers() argument
104 first, count, (uintptr_t)samplers); in BindSamplers()
111 (context->skipValidation() || ValidateBindSamplers(context, first, count, samplers)); in BindSamplers()
114 context->bindSamplers(first, count, samplers); in BindSamplers()
116 ANGLE_CAPTURE(BindSamplers, isCallValid, context, first, count, samplers); in BindSamplers()
/third_party/skia/third_party/externals/spirv-cross/shaders-hlsl/frag/
Dsampler-image-arrays.frag10 vec4 sample_from_argument(sampler2D samplers[4])
12 return texture(samplers[vIndex], vTex + 0.2);
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/frag/
Dsampler-image-arrays.msl2.frag10 vec4 sample_from_argument(sampler2D samplers[4])
12 return texture(samplers[vIndex], vTex + 0.2);
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_sampler.c73 void **samplers) in llvmpipe_bind_sampler_states() argument
79 assert(start + num <= ARRAY_SIZE(llvmpipe->samplers[shader])); in llvmpipe_bind_sampler_states()
87 if (samplers && samplers[i]) in llvmpipe_bind_sampler_states()
88 sampler = samplers[i]; in llvmpipe_bind_sampler_states()
89 llvmpipe->samplers[shader][start + i] = sampler; in llvmpipe_bind_sampler_states()
95 while (j > 0 && llvmpipe->samplers[shader][j - 1] == NULL) in llvmpipe_bind_sampler_states()
106 llvmpipe->samplers[shader], in llvmpipe_bind_sampler_states()
/third_party/mesa3d/src/gallium/frontends/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()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_descriptor_set.c160 struct tu_sampler *samplers = (void*) &set_layout->binding[num_bindings]; in tu_CreateDescriptorSetLayout() local
162 (void*) &samplers[immutable_sampler_count]; in tu_CreateDescriptorSetLayout()
217 samplers[i] = *tu_sampler_from_handle(binding->pImmutableSamplers[i]); in tu_CreateDescriptorSetLayout()
219 samplers += binding->descriptorCount; in tu_CreateDescriptorSetLayout()
539 const struct tu_sampler *samplers = in tu_descriptor_set_create() local
543 memcpy(set->mapped_ptr + offset, samplers[j].descriptor, in tu_descriptor_set_create()
544 sizeof(samplers[j].descriptor)); in tu_descriptor_set_create()
931 const struct tu_sampler *samplers = in tu_update_descriptor_sets() local
976 … write_sampler_push(ptr + A6XX_TEX_CONST_DWORDS, &samplers[writeset->dstArrayElement + j]); in tu_update_descriptor_sets()
982 write_sampler_push(ptr, &samplers[writeset->dstArrayElement + j]); in tu_update_descriptor_sets()
[all …]
/third_party/mindspore/mindspore/lite/tools/dataset/cropper/
Dassociations.txt1samplers/pk_sampler_ir.cc", "randomsampler": "mindspore/ccsrc/minddata/dataset/engine/ir/datasetop…

12345678910>>...22