Searched refs:sampler (Results 1 - 25 of 669) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/
H A Dlp_linear_priv.h67 /* Check for a sampler variant which matches our fetch_row
72 is_nearest_sampler(const struct lp_sampler_static_state *sampler) argument
75 sampler->texture_state.target == PIPE_TEXTURE_2D &&
76 sampler->sampler_state.min_img_filter == PIPE_TEX_FILTER_NEAREST &&
77 sampler->sampler_state.mag_img_filter == PIPE_TEX_FILTER_NEAREST &&
78 (sampler->texture_state.level_zero_only ||
79 sampler->sampler_state.min_mip_filter == PIPE_TEX_MIPFILTER_NONE) &&
80 sampler->sampler_state.compare_mode == 0 &&
81 sampler->sampler_state.normalized_coords == 1;
85 /* Check for a sampler varian
90 is_linear_sampler(const struct lp_sampler_static_state * sampler) argument
107 is_nearest_clamp_sampler(const struct lp_sampler_static_state * sampler) argument
120 is_linear_clamp_sampler(const struct lp_sampler_static_state * sampler) argument
[all...]
H A Dlp_tex_sample.c57 * This provides the bridge between the sampler state store in
58 * lp_jit_context and lp_jit_texture and the sampler code
60 * the texture sampler code generator in terms of the state stored in
72 * This is the bridge between our sampler and the TGSI translator.
90 * This is the bridge between our sampler and the TGSI translator.
155 * fetch the members of lp_jit_texture to fulfill the sampler code
159 * sampler code generator a reusable module without dependencies to
229 lp_build_name(res, "context.sampler%u.%s", sampler_unit, member_name);
308 * fetch the members of lp_jit_image to fulfill the sampler code
312 * sampler cod
353 lp_llvm_sampler_soa_destroy(struct lp_build_sampler_soa * sampler) argument
368 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; local in function:lp_llvm_sampler_soa_emit_fetch_texel
411 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; local in function:lp_llvm_sampler_soa_emit_size_query
426 struct lp_llvm_sampler_soa *sampler; local in function:lp_llvm_sampler_soa_create
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/clover/core/core/
H A Dsampler.hpp30 class sampler : public ref_counter, public _cl_sampler { class in namespace:clover
32 sampler(clover::context &ctx, bool norm_mode,
36 sampler(const sampler &s) = delete;
37 sampler &
38 operator=(const sampler &s) = delete;
H A Dsampler.cpp23 #include "core/sampler.hpp"
28 sampler::sampler(clover::context &ctx, bool norm_mode, function in class:sampler
36 sampler::norm_mode() {
41 sampler::addr_mode() {
46 sampler::filter_mode() {
51 sampler::bind(command_queue &q) {
71 sampler::unbind(command_queue &q, void *st) {
/xsrc/external/mit/MesaLib/dist/src/gallium/frontends/clover/core/
H A Dsampler.hpp30 class sampler : public ref_counter, public _cl_sampler { class in namespace:clover
32 sampler(clover::context &ctx, bool norm_mode,
36 sampler(const sampler &s) = delete;
37 sampler &
38 operator=(const sampler &s) = delete;
H A Dsampler.cpp23 #include "core/sampler.hpp"
28 sampler::sampler(clover::context &ctx, bool norm_mode, function in class:sampler
36 sampler::norm_mode() {
41 sampler::addr_mode() {
46 sampler::filter_mode() {
51 sampler::bind(command_queue &q) {
71 sampler::unbind(command_queue &q, void *st) {
/xsrc/external/mit/MesaLib.old/dist/src/mesa/swrast/
H A Ds_texfilter.h39 const struct gl_sampler_object *sampler);
/xsrc/external/mit/MesaLib/dist/src/mesa/swrast/
H A Ds_texfilter.h39 const struct gl_sampler_object *sampler);
/xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
H A Dst_atom_sampler.c110 struct pipe_sampler_state *sampler)
112 memset(sampler, 0, sizeof(*sampler));
113 sampler->wrap_s = gl_wrap_xlate(msamp->WrapS);
114 sampler->wrap_t = gl_wrap_xlate(msamp->WrapT);
115 sampler->wrap_r = gl_wrap_xlate(msamp->WrapR);
117 sampler->min_img_filter = gl_filter_to_img_filter(msamp->MinFilter);
118 sampler->min_mip_filter = gl_filter_to_mip_filter(msamp->MinFilter);
119 sampler->mag_img_filter = gl_filter_to_img_filter(msamp->MagFilter);
122 sampler
106 st_convert_sampler(const struct st_context * st,const struct gl_texture_object * texobj,const struct gl_sampler_object * msamp,float tex_unit_lod_bias,struct pipe_sampler_state * sampler) argument
227 st_convert_sampler_from_unit(const struct st_context * st,struct pipe_sampler_state * sampler,GLuint texUnit) argument
280 struct pipe_sampler_state *sampler = samplers + unit; local in function:update_shader_samplers
305 struct pipe_sampler_state *sampler = samplers + unit; local in function:update_shader_samplers
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/swr/
H A Dswr_tex_sample.cpp67 * This provides the bridge between the sampler state store in
68 * lp_jit_context and lp_jit_texture and the sampler code
70 * the texture sampler code generator in terms of the state stored in
83 * This is the bridge between our sampler and the TGSI translator.
160 * fetch the members of lp_jit_texture to fulfill the sampler code
164 * sampler code generator a reusable module without dependencies to
258 lp_build_name(res, "context.sampler%u.%s", sampler_unit, member_name);
288 swr_sampler_soa_destroy(struct lp_build_sampler_soa *sampler)
290 FREE(sampler);
303 struct swr_sampler_soa *sampler local in function:swr_sampler_soa_emit_fetch_texel
330 struct swr_sampler_soa *sampler = (struct swr_sampler_soa *)base; local in function:swr_sampler_soa_emit_size_query
346 struct swr_sampler_soa *sampler; local in function:swr_sampler_soa_create
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/swr/
H A Dswr_tex_sample.cpp66 * This provides the bridge between the sampler state store in
67 * lp_jit_context and lp_jit_texture and the sampler code
69 * the texture sampler code generator in terms of the state stored in
82 * This is the bridge between our sampler and the TGSI translator.
153 * fetch the members of lp_jit_texture to fulfill the sampler code
157 * sampler code generator a reusable module without dependencies to
242 lp_build_name(res, "context.sampler%u.%s", sampler_unit, member_name);
272 swr_sampler_soa_destroy(struct lp_build_sampler_soa *sampler)
274 FREE(sampler);
287 struct swr_sampler_soa *sampler local in function:swr_sampler_soa_emit_fetch_texel
314 struct swr_sampler_soa *sampler = (struct swr_sampler_soa *)base; local in function:swr_sampler_soa_emit_size_query
330 struct swr_sampler_soa *sampler; local in function:swr_sampler_soa_create
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/
H A Dlp_tex_sample.c57 * This provides the bridge between the sampler state store in
58 * lp_jit_context and lp_jit_texture and the sampler code
60 * the texture sampler code generator in terms of the state stored in
72 * This is the bridge between our sampler and the TGSI translator.
130 * fetch the members of lp_jit_texture to fulfill the sampler code
134 * sampler code generator a reusable module without dependencies to
200 lp_build_name(res, "context.sampler%u.%s", sampler_unit, member_name);
240 lp_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler) argument
242 FREE(sampler);
255 struct lp_llvm_sampler_soa *sampler local in function:lp_llvm_sampler_soa_emit_fetch_texel
281 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; local in function:lp_llvm_sampler_soa_emit_size_query
295 struct lp_llvm_sampler_soa *sampler; local in function:lp_llvm_sampler_soa_create
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/draw/
H A Ddraw_llvm_sample.c51 * This provides the bridge between the sampler state store in
52 * lp_jit_context and lp_jit_texture and the sampler code
54 * the texture sampler code generator in terms of the state stored in
66 * This is the bridge between our sampler and the TGSI translator.
162 lp_build_name(res, "context.sampler%u.%s", sampler_unit, member_name);
170 * fetch the members of lp_jit_texture to fulfill the sampler code
174 * sampler code generator a reusable module without dependencies to
219 draw_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler)
221 FREE(sampler);
234 struct draw_llvm_sampler_soa *sampler local in function:draw_llvm_sampler_soa_emit_fetch_texel
256 struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base; local in function:draw_llvm_sampler_soa_emit_size_query
269 struct draw_llvm_sampler_soa *sampler; local in function:draw_llvm_sampler_soa_create
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_atom_sampler.c64 struct pipe_sampler_state *sampler,
67 memcpy(sampler, &msamp->Attrib.state, sizeof(*sampler));
69 sampler->seamless_cube_map |= seamless_cube_map;
72 sampler->min_img_filter = PIPE_TEX_FILTER_NEAREST;
73 sampler->mag_img_filter = PIPE_TEX_FILTER_NEAREST;
77 sampler->normalized_coords = 1;
79 sampler->lod_bias += tex_unit_lod_bias;
96 (sampler->wrap_s | sampler
60 st_convert_sampler(const struct st_context * st,const struct gl_texture_object * texobj,const struct gl_sampler_object * msamp,float tex_unit_lod_bias,struct pipe_sampler_state * sampler,bool seamless_cube_map) argument
148 st_convert_sampler_from_unit(const struct st_context * st,struct pipe_sampler_state * sampler,GLuint texUnit) argument
198 struct pipe_sampler_state *sampler = samplers + unit; local in function:update_shader_samplers
224 struct pipe_sampler_state *sampler = samplers + unit; local in function:update_shader_samplers
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/draw/
H A Ddraw_llvm_sample.c51 * This provides the bridge between the sampler state store in
52 * lp_jit_context and lp_jit_texture and the sampler code
54 * the texture sampler code generator in terms of the state stored in
66 * This is the bridge between our sampler and the TGSI translator.
185 lp_build_name(res, "context.sampler%u.%s", sampler_unit, member_name);
243 * fetch the members of lp_jit_texture to fulfill the sampler code
247 * sampler code generator a reusable module without dependencies to
317 draw_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler)
319 FREE(sampler);
332 struct draw_llvm_sampler_soa *sampler local in function:draw_llvm_sampler_soa_emit_fetch_texel
371 struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base; local in function:draw_llvm_sampler_soa_emit_size_query
385 struct draw_llvm_sampler_soa *sampler; local in function:draw_llvm_sampler_soa_create
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dsamplerobj.h117 _mesa_IsSampler(GLuint sampler);
120 _mesa_BindSampler_no_error(GLuint unit, GLuint sampler);
123 _mesa_BindSampler(GLuint unit, GLuint sampler);
132 _mesa_SamplerParameteri(GLuint sampler, GLenum pname, GLint param);
134 _mesa_SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param);
136 _mesa_SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *params);
138 _mesa_SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *params);
140 _mesa_SamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *params);
142 _mesa_SamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *params);
144 _mesa_GetSamplerParameteriv(GLuint sampler, GLenu
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/
H A Dd3d12_nir_lower_texcmp.c91 nir_variable *sampler = NULL; local in function:lower_sample_tex_compare_impl
97 sampler = nir_deref_instr_get_variable(sampler_deref);
111 sampler->data.binding < state->n_states ?
112 state->compare_func[sampler->data.binding] : COMPARE_FUNC_ALWAYS,
120 nir_ssa_def *r[4] = {lookup[state->tex_swizzles[sampler->data.binding].swizzle_r],
121 lookup[state->tex_swizzles[sampler->data.binding].swizzle_g],
122 lookup[state->tex_swizzles[sampler->data.binding].swizzle_b],
123 lookup[state->tex_swizzles[sampler->data.binding].swizzle_a]
128 sampler->type = strip_shadow_with_array(sampler
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/vl/
H A Dvl_matrix_filter.c83 struct ureg_src sampler; local in function:create_frag_shader
95 sampler = ureg_DECL_sampler(shader, 0);
116 ureg_TEX(shader, tmp, TGSI_TEXTURE_2D, ureg_src(tmp), sampler);
118 ureg_TEX(shader, tmp, TGSI_TEXTURE_2D, i_vtex, sampler);
139 struct pipe_sampler_state sampler; local in function:vl_matrix_filter_init
174 memset(&sampler, 0, sizeof(sampler));
175 sampler.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE;
176 sampler.wrap_t = PIPE_TEX_WRAP_CLAMP_TO_EDGE;
177 sampler
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/vl/
H A Dvl_matrix_filter.c83 struct ureg_src sampler; local in function:create_frag_shader
95 sampler = ureg_DECL_sampler(shader, 0);
116 ureg_TEX(shader, tmp, TGSI_TEXTURE_2D, ureg_src(tmp), sampler);
118 ureg_TEX(shader, tmp, TGSI_TEXTURE_2D, i_vtex, sampler);
139 struct pipe_sampler_state sampler; local in function:vl_matrix_filter_init
174 memset(&sampler, 0, sizeof(sampler));
175 sampler.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE;
176 sampler.wrap_t = PIPE_TEX_WRAP_CLAMP_TO_EDGE;
177 sampler
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/
H A DgenX_state.c177 * headerless sampler messages are not allowed for pre-emptable
321 struct anv_sampler *sampler; local in function:genX
325 sampler = vk_zalloc2(&device->alloc, pAllocator, sizeof(*sampler), 8,
327 if (!sampler)
330 sampler->n_planes = 1;
356 sampler->n_planes = conversion->format->n_planes;
357 sampler->conversion = conversion;
378 * for each sampler instead of 16 bytes because we want all bindless
380 * sampler message
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/i915/
H A Di915_state_sampler.c41 * There is a circular dependancy between the sampler state
50 * is set on the map state instead of the sampler state. That is
55 * we need to change the sampler state when map state is changed.
64 const struct i915_sampler_state *sampler,
84 const struct i915_sampler_state *sampler,
91 state[0] = sampler->state[0];
92 state[1] = sampler->state[1];
93 state[2] = sampler->state[2];
115 const unsigned ws = sampler->templ->wrap_s;
116 const unsigned wt = sampler
82 update_sampler(struct i915_context * i915,uint unit,const struct i915_sampler_state * sampler,const struct i915_texture * tex,unsigned state[3]) argument
298 update_map(struct i915_context * i915,uint unit,const struct i915_texture * tex,const struct i915_sampler_state * sampler,const struct pipe_sampler_view * view,uint state[3]) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/postprocess/
H A Dpp_program.c97 p->sampler.wrap_s = p->sampler.wrap_t = p->sampler.wrap_r =
100 p->sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NONE;
101 p->sampler.min_img_filter = p->sampler.mag_img_filter =
103 p->sampler.normalized_coords = 1;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/svga/
H A Dsvga_pipe_sampler.c157 * Define a vgpu10 sampler state.
197 /* If shadow comparisons are enabled, create two sampler states: one
238 const struct pipe_sampler_state *sampler)
246 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter);
247 cso->magfilter = translate_img_filter( sampler->mag_img_filter );
248 cso->minfilter = translate_img_filter( sampler->min_img_filter );
249 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 );
250 if (sampler->max_anisotropy)
252 cso->lod_bias = sampler->lod_bias;
253 cso->addressu = translate_wrap_mode(sampler
237 svga_create_sampler_state(struct pipe_context * pipe,const struct pipe_sampler_state * sampler) argument
344 svga_delete_sampler_state(struct pipe_context * pipe,void * sampler) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/svga/
H A Dsvga_pipe_sampler.c157 * Define a vgpu10 sampler state.
196 /* If shadow comparisons are enabled, create two sampler states: one
231 const struct pipe_sampler_state *sampler)
239 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter);
240 cso->magfilter = translate_img_filter( sampler->mag_img_filter );
241 cso->minfilter = translate_img_filter( sampler->min_img_filter );
242 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 );
243 if (sampler->max_anisotropy)
245 cso->lod_bias = sampler->lod_bias;
246 cso->addressu = translate_wrap_mode(sampler
230 svga_create_sampler_state(struct pipe_context * pipe,const struct pipe_sampler_state * sampler) argument
337 svga_delete_sampler_state(struct pipe_context * pipe,void * sampler) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i915/
H A Di915_texstate.c148 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local in function:i915_update_tex_unit
192 maxlod = MIN2(sampler->MaxLod, tObj->_MaxLevel - tObj->BaseLevel);
203 switch (sampler->MinFilter) {
232 if (sampler->MaxAnisotropy > 1.0) {
235 if (sampler->MaxAnisotropy > 2.0)
241 switch (sampler->MagFilter) {
253 lodbias = (int) ((tUnit->LodBias + sampler->LodBias) * 16.0);
269 if (sampler->CompareMode == GL_COMPARE_R_TO_TEXTURE_ARB &&
276 intel_translate_shadow_compare_func(sampler->CompareFunc));
289 GLenum ws = sampler
[all...]

Completed in 14 milliseconds

1234567891011>>