Home
last modified time | relevance | path

Searched refs:samplers (Results 1 - 25 of 265) sorted by relevance

1234567891011

/third_party/vk-gl-cts/external/amber/src/src/amberscript/
H A Dparser_sampler_test.cc31 const auto& samplers = script->GetSamplers(); in TEST_F() local
32 ASSERT_EQ(1U, samplers.size()); in TEST_F()
34 ASSERT_TRUE(samplers[0] != nullptr); in TEST_F()
35 EXPECT_EQ("sampler", samplers[0]->GetName()); in TEST_F()
37 auto* sampler = samplers[0].get(); in TEST_F()
71 const auto& samplers = script->GetSamplers(); in TEST_F() local
72 ASSERT_EQ(1U, samplers.size()); in TEST_F()
74 ASSERT_TRUE(samplers[0] != nullptr); in TEST_F()
75 EXPECT_EQ("sampler", samplers[0]->GetName()); in TEST_F()
77 auto* sampler = samplers[ in TEST_F()
189 const auto& samplers = script->GetSamplers(); TEST_F() local
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A 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()
38 mSamplers(std::move(samplers)), in SamplerHeapCacheEntry()
96 // If a previously created bindgroup used the same samplers, the backing sampler heap in GetOrCreate()
97 // allocation can be reused. The packed list of samplers acts as the key to lookup the in GetOrCreate()
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()
112 // samplers in GetOrCreate()
33 SamplerHeapCacheEntry(SamplerHeapCache* cache, StagingDescriptorAllocator* allocator, std::vector<Sampler*> samplers, CPUDescriptorHeapAllocation allocation) SamplerHeapCacheEntry() argument
[all...]
H A DSamplerHeapCacheD3D12.h48 SamplerHeapCacheEntry(std::vector<Sampler*> samplers);
51 std::vector<Sampler*> samplers,
/third_party/node/deps/v8/src/libsampler/
H A Dsampler.cc208 SamplerList samplers; in AddSampler() local
209 samplers.push_back(sampler); in AddSampler()
210 sampler_map_.emplace(thread_id, std::move(samplers)); in AddSampler()
212 SamplerList& samplers = it->second; in AddSampler() local
213 auto sampler_it = std::find(samplers.begin(), samplers.end(), sampler); in AddSampler()
214 if (sampler_it == samplers.end()) samplers.push_back(sampler); in AddSampler()
224 SamplerList& samplers = it->second; in RemoveSampler() local
225 samplers in RemoveSampler()
[all...]
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A 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()
255 /* Verify if a samplers uses an encrypted resource */ in si_sampler_views_check_encrypted()
258 struct si_sampler_view *sview = (struct si_sampler_view *)samplers in si_sampler_views_check_encrypted()
507 si_reset_sampler_view_slot(struct si_samplers *samplers, unsigned slot, uint32_t * restrict desc) si_reset_sampler_view_slot() argument
525 struct si_samplers *samplers = &sctx->samplers[shader]; si_set_sampler_views() local
622 struct si_samplers *samplers = &sctx->samplers[shader]; si_update_shader_needs_decompress_mask() local
652 si_samplers_update_needs_color_decompress_mask(struct si_samplers *samplers) si_samplers_update_needs_color_decompress_mask() argument
1023 struct si_samplers *samplers = &sctx->samplers[shader]; si_bind_sampler_states() local
1776 struct si_samplers *samplers = &sctx->samplers[shader]; si_rebind_buffer() local
2007 struct si_samplers *samplers = &sctx->samplers[shader]; si_update_all_texture_descriptors() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/vl/
H A Dvl_compositor_cs.c650 struct pipe_sampler_view **samplers) in set_viewport()
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()
648 set_viewport(struct vl_compositor_state *s, struct cs_viewport *drawn, struct pipe_sampler_view **samplers) set_viewport() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
H A Dcso_context.c60 void *samplers[PIPE_MAX_SAMPLERS]; member
85 struct sampler_info samplers[PIPE_SHADER_TYPES]; member
152 /* nothing to do for samplers */ in delete_cso()
193 struct cso_sampler *sampler = ctx->samplers[i].cso_samplers[j]; in sanitize_hash()
400 memset(&ctx->samplers, 0, sizeof(ctx->samplers)); in cso_unbind_context()
998 struct sampler_info *info = &ctx->samplers[PIPE_SHADER_COMPUTE]; in cso_save_compute_samplers()
1003 memcpy(saved->samplers, info->samplers, sizeof(info->samplers)); in cso_save_compute_samplers()
[all...]
/third_party/mesa3d/src/mesa/main/
H A Dsamplerobj.c171 create_samplers(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers() argument
176 if (!samplers) in create_samplers()
181 _mesa_HashFindFreeKeys(ctx->Shared->SamplerObjects, samplers, count); in create_samplers()
187 sampObj = _mesa_new_sampler_object(ctx, samplers[i]); in create_samplers()
194 _mesa_HashInsertLocked(ctx->Shared->SamplerObjects, samplers[i], in create_samplers()
202 create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *samplers, in create_samplers_err() argument
214 create_samplers(ctx, count, samplers, caller); in create_samplers_err()
218 _mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers) in _mesa_GenSamplers_no_error() argument
221 create_samplers(ctx, count, samplers, "glGenSamplers"); in _mesa_GenSamplers_no_error()
225 _mesa_GenSamplers(GLsizei count, GLuint *samplers) in _mesa_GenSamplers() argument
232 _mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers) _mesa_CreateSamplers_no_error() argument
239 _mesa_CreateSamplers(GLsizei count, GLuint *samplers) _mesa_CreateSamplers() argument
247 delete_samplers(struct gl_context *ctx, GLsizei count, const GLuint *samplers) delete_samplers() argument
281 _mesa_DeleteSamplers_no_error(GLsizei count, const GLuint *samplers) _mesa_DeleteSamplers_no_error() argument
289 _mesa_DeleteSamplers(GLsizei count, const GLuint *samplers) _mesa_DeleteSamplers() argument
369 bind_samplers(struct gl_context *ctx, GLuint first, GLsizei count, const GLuint *samplers, bool no_error) bind_samplers() argument
456 _mesa_BindSamplers_no_error(GLuint first, GLsizei count, const GLuint *samplers) _mesa_BindSamplers_no_error() argument
464 _mesa_BindSamplers(GLuint first, GLsizei count, const GLuint *samplers) _mesa_BindSamplers() argument
[all...]
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_llvm.h70 * However, there might be lots of null space if the amount of samplers and
168 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
207 lp_build_struct_get_ptr(_gallivm, _ptr, DRAW_JIT_CTX_SAMPLERS, "samplers")
272 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
321 lp_build_struct_get_ptr(_gallivm, _ptr, DRAW_GS_JIT_CTX_SAMPLERS, "samplers")
353 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
384 lp_build_struct_get_ptr(_gallivm, _ptr, DRAW_TCS_JIT_CTX_SAMPLERS, "samplers")
407 struct draw_jit_sampler samplers[PIPE_MAX_SAMPLERS]; member
438 lp_build_struct_get_ptr(_gallivm, _ptr, DRAW_TES_JIT_CTX_SAMPLERS, "samplers")
516 /* Followed by variable number of samplers
531 struct draw_sampler_static_state samplers[1]; global() member
540 struct draw_sampler_static_state samplers[1]; global() member
552 struct draw_sampler_static_state samplers[1]; global() member
635 struct draw_sampler_static_state *samplers = (struct draw_sampler_static_state *) draw_llvm_variant_key_images() local
[all...]
H A Ddraw_pipe_pstipple.c91 void *samplers[PIPE_MAX_SAMPLERS]; member
210 /* how many samplers? */ in pstip_first_tri()
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/src/gpu/d3d/
H A DGrD3DPipelineState.cpp100 std::vector<D3D12_CPU_DESCRIPTOR_HANDLE> samplers(fNumSamplers); in setAndBindTextures()
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/skia/third_party/externals/swiftshader/tests/VulkanWrapper/
H A 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/drivers/nouveau/nv30/
H A 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/gallium/auxiliary/postprocess/
H A 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()
H A Dpp_colors.c41 const struct pipe_sampler_state *samplers[] = {&p->sampler_point}; in pp_nocolor() local
49 cso_set_samplers(p->cso, PIPE_SHADER_FRAGMENT, 1, samplers); in pp_nocolor()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_state_sampler.c48 * Bind a range [start, start+num-1] of samplers for a shader stage.
55 void **samplers) in softpipe_bind_sampler_states()
61 assert(start + num <= ARRAY_SIZE(softpipe->samplers[shader])); in softpipe_bind_sampler_states()
65 /* set the new samplers */ in softpipe_bind_sampler_states()
67 softpipe->samplers[shader][start + i] = samplers[i]; in softpipe_bind_sampler_states()
70 /* find highest non-null samplers[] entry */ 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()
51 softpipe_bind_sampler_states(struct pipe_context *pipe, enum pipe_shader_type shader, unsigned start, unsigned num, void **samplers) softpipe_bind_sampler_states() argument
/third_party/mesa3d/src/gallium/frontends/xa/
H A 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/mesa/state_tracker/
H A Dst_atom_sampler.c178 struct pipe_sampler_state *samplers, in update_shader_samplers()
195 if (!samplers) in update_shader_samplers()
196 samplers = local_samplers; in update_shader_samplers()
202 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
218 /* For any external samplers with multiplaner YUV, stuff the additional in update_shader_samplers()
228 struct pipe_sampler_state *sampler = samplers + unit; in update_shader_samplers()
259 /* we need two additional samplers: */ in update_shader_samplers()
175 update_shader_samplers(struct st_context *st, enum pipe_shader_type shader_stage, const struct gl_program *prog, struct pipe_sampler_state *samplers, unsigned *out_num_samplers) update_shader_samplers() argument
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_state_sampler.c73 void **samplers) in llvmpipe_bind_sampler_states()
79 assert(start + num <= ARRAY_SIZE(llvmpipe->samplers[shader])); in llvmpipe_bind_sampler_states()
83 /* set the new samplers */ 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()
92 /* find highest non-null samplers[] entry */ in llvmpipe_bind_sampler_states()
95 while (j > 0 && llvmpipe->samplers[shader][j - 1] == NULL) in llvmpipe_bind_sampler_states()
106 llvmpipe->samplers[shade in llvmpipe_bind_sampler_states()
69 llvmpipe_bind_sampler_states(struct pipe_context *pipe, enum pipe_shader_type shader, unsigned start, unsigned num, void **samplers) llvmpipe_bind_sampler_states() argument
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dr600_hw_context.c410 struct r600_textures_info *samplers = &ctx->samplers[shader]; in r600_begin_new_cs() local
413 samplers->views.dirty_mask = samplers->views.enabled_mask; in r600_begin_new_cs()
414 samplers->states.dirty_mask = samplers->states.enabled_mask; in r600_begin_new_cs()
417 r600_sampler_views_dirty(ctx, &samplers->views); in r600_begin_new_cs()
418 r600_sampler_states_dirty(ctx, &samplers->states); in r600_begin_new_cs()
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_texture.c59 tex->samplers[p] = hwcso ? hwcso[i] : NULL; in bind_sampler_states()
60 if (tex->samplers[p]) in bind_sampler_states()
144 struct pipe_sampler_state *sampler = tex->samplers[i]; in fd_setup_border_colors()
157 * format-dependent order. Even though samplers don't know about in fd_setup_border_colors()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/
H A DvktDescriptorSetsIndexingTestsUtils.cpp700 deUint32 samplers = 0; in computeMaxPerStageDescriptorCount() local
719 samplers = deMinu32( descriptorProps.maxPerStageDescriptorUpdateAfterBindSamplers, descriptorProps.maxDescriptorSetUpdateAfterBindSamplers); // 1048576 in computeMaxPerStageDescriptorCount()
730 samplers = deMinu32( deviceProps.limits.maxPerStageDescriptorSamplers, deviceProps.limits.maxDescriptorSetSamplers); // 1048576 in computeMaxPerStageDescriptorCount()
741 samplers = deMinu32( samplers, 4096); in computeMaxPerStageDescriptorCount()
752 case VK_DESCRIPTOR_TYPE_SAMPLER: result = samplers; break; in computeMaxPerStageDescriptorCount()
753 case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER: result = deMinu32(resources, deMinu32(samplers, sampledImages)); break; in computeMaxPerStageDescriptorCount()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/descriptor_indexing/
H A DvktDescriptorSetsIndexingTestsUtils.cpp700 deUint32 samplers = 0; in computeMaxPerStageDescriptorCount() local
719 samplers = deMinu32( descriptorProps.maxPerStageDescriptorUpdateAfterBindSamplers, descriptorProps.maxDescriptorSetUpdateAfterBindSamplers); // 1048576 in computeMaxPerStageDescriptorCount()
730 samplers = deMinu32( deviceProps.limits.maxPerStageDescriptorSamplers, deviceProps.limits.maxDescriptorSetSamplers); // 1048576 in computeMaxPerStageDescriptorCount()
741 samplers = deMinu32( samplers, 4096); in computeMaxPerStageDescriptorCount()
752 case VK_DESCRIPTOR_TYPE_SAMPLER: result = samplers; break; in computeMaxPerStageDescriptorCount()
753 case VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER: result = deMinu32(resources, deMinu32(samplers, sampledImages)); break; in computeMaxPerStageDescriptorCount()
/third_party/mesa3d/src/freedreno/decode/
H A Dpgmdump.c106 else if ((type_info >> 8) == 0x8d) // GLES3 samplers
239 struct sampler *samplers[32]; member
303 case 0x8d: /* GLES3 samplers */ in valid_type()
403 dump_sampler(state->samplers[i]); in dump_short_summary()
772 state->samplers[i] = next_sect(state, &sect_size); in dump_program()
777 while (!valid_type(state->samplers[i]->type_info)) { in dump_program()
778 dump_hex_ascii(state->samplers[i], sect_size, 0); in dump_program()
779 state->samplers[i] = next_sect(state, &sect_size); in dump_program()
782 clean_ascii(state->samplers[i]->name, sect_size - 33); in dump_program()
785 dump_sampler(state->samplers[ in dump_program()
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_texture.h95 if (!tex->samplers[i])
99 fd6_sampler_stateobj(tex->samplers[i]);

Completed in 21 milliseconds

1234567891011