Home
last modified time | relevance | path

Searched refs:samp (Results 1 - 25 of 67) sorted by relevance

123

/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_linear_sampler.c86 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; in fetch_bgra_memcpy() local
87 const struct lp_jit_texture *texture = samp->texture; in fetch_bgra_memcpy()
90 (samp->t >> FIXED16_SHIFT) * texture->row_stride[0]); in fetch_bgra_memcpy()
91 const int s = samp->s; in fetch_bgra_memcpy()
92 const int width = samp->width; in fetch_bgra_memcpy()
101 memcpy(samp->row, src_row, width * sizeof *row); in fetch_bgra_memcpy()
102 row = samp->row; in fetch_bgra_memcpy()
105 samp->t += samp->dtdy; in fetch_bgra_memcpy()
116 struct lp_linear_sampler *samp in fetch_bgrx_memcpy() local
149 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgra_axis_aligned() local
172 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgrx_axis_aligned() local
197 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgra() local
228 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgrx() local
260 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgra_clamp() local
293 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgrx_clamp() local
327 fetch_and_stretch_bgra_row(struct lp_linear_sampler *samp, int y) fetch_and_stretch_bgra_row() argument
394 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgra_axis_aligned_linear() local
431 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgra_linear() local
485 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgra_clamp_linear() local
598 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgrx_axis_aligned_linear() local
617 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgrx_clamp_linear() local
637 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_bgrx_linear() local
655 sampler_is_nearest(const struct lp_linear_sampler *samp, const struct lp_sampler_static_state *sampler_state, boolean minify) sampler_is_nearest() argument
717 lp_linear_init_sampler(struct lp_linear_sampler *samp, const struct lp_tgsi_texture_info *info, const struct lp_sampler_static_state *sampler_state, const struct lp_jit_texture *texture, int x0, int y0, int width, int height, const float (*a0)[4], const float (*dadx)[4], const float (*dady)[4]) lp_linear_init_sampler() argument
932 struct lp_linear_sampler *samp = (struct lp_linear_sampler *)elem; fetch_noop() local
938 lp_linear_init_noop_sampler(struct lp_linear_sampler *samp) lp_linear_init_noop_sampler() argument
[all...]
H A Dlp_state_fs_linear.c62 const uint32_t *(*fetch)(struct nearest_sampler *samp);
176 fetch_row(struct nearest_sampler *samp) in fetch_row() argument
178 const int y = samp->y++; in fetch_row()
179 uint32_t *row = samp->out; in fetch_row()
180 const struct lp_jit_texture *texture = samp->texture; in fetch_row()
181 const int yy = util_iround(samp->fsrc_y + samp->fdtdy * y); in fetch_row()
185 const int iscale_x = samp->fdsdx * 256; in fetch_row()
186 const int width = samp->width; in fetch_row()
187 int acc = samp in fetch_row()
202 fetch_row_clamped(struct nearest_sampler *samp) fetch_row_clamped() argument
230 fetch_row_xy_clamped(struct nearest_sampler *samp) fetch_row_xy_clamped() argument
256 init_nearest_sampler(struct nearest_sampler *samp, const struct lp_jit_texture *texture, int x0, int y0, int width, int height, float s0, float dsdx, float dsdy, float t0, float dtdx, float dtdy, float w0, float dwdx, float dwdy) init_nearest_sampler() argument
476 struct nearest_sampler samp; blit_rgba() local
515 struct nearest_sampler samp; blit_rgb1() local
559 struct nearest_sampler samp; blit_rgba_blend_premul() local
[all...]
H A Dlp_linear.c164 struct lp_linear_sampler samp[LP_MAX_LINEAR_TEXTURES]; in lp_fs_linear_run() local
182 if (!lp_linear_init_sampler(&samp[i], tex_info, in lp_fs_linear_run()
191 jit.tex[i] = &samp[i].base; in lp_fs_linear_run()
222 struct lp_linear_sampler samp[LP_MAX_LINEAR_TEXTURES]; in check_linear_interp_mask_a() local
235 lp_linear_init_noop_sampler(&samp[i]); in check_linear_interp_mask_a()
236 jit.tex[i] = &samp[i].base; in check_linear_interp_mask_a()
319 debug_printf(" -- samp[%d]: texcoord not perspective\n", i); in lp_linear_check_variant()
323 struct lp_sampler_static_state *samp = in lp_linear_check_variant() local
325 if (!lp_linear_check_sampler(samp, tex_info)) { in lp_linear_check_variant()
327 debug_printf(" -- samp[ in lp_linear_check_variant()
[all...]
H A Dlp_linear_priv.h140 lp_linear_init_sampler(struct lp_linear_sampler *samp,
162 lp_linear_init_noop_sampler(struct lp_linear_sampler *samp);
/third_party/mesa3d/src/mesa/main/
H A Dsamplerobj.h52 _mesa_is_mipmap_filter(const struct gl_sampler_object *samp) in _mesa_is_mipmap_filter() argument
54 return samp->Attrib.MinFilter != GL_NEAREST && samp->Attrib.MinFilter != GL_LINEAR; in _mesa_is_mipmap_filter()
61 struct gl_sampler_object *samp);
66 struct gl_sampler_object *samp) in _mesa_reference_sampler_object()
68 if (*ptr != samp) in _mesa_reference_sampler_object()
69 _mesa_reference_sampler_object_(ctx, ptr, samp); in _mesa_reference_sampler_object()
149 _mesa_update_is_border_color_nonzero(struct gl_sampler_object *samp) in _mesa_update_is_border_color_nonzero() argument
151 samp->Attrib.IsBorderColorNonZero = samp in _mesa_update_is_border_color_nonzero()
64 _mesa_reference_sampler_object(struct gl_context *ctx, struct gl_sampler_object **ptr, struct gl_sampler_object *samp) _mesa_reference_sampler_object() argument
170 _mesa_lower_gl_clamp(struct gl_context *ctx, struct gl_sampler_object *samp) _mesa_lower_gl_clamp() argument
193 update_sampler_gl_clamp(struct gl_context *ctx, struct gl_sampler_object *samp, bool cur_state, bool new_state, gl_sampler_wrap wrap) update_sampler_gl_clamp() argument
[all...]
H A Dsamplerobj.c88 struct gl_sampler_object *samp) in _mesa_reference_sampler_object_()
90 assert(*ptr != samp); /* The inline wrapper should prevent no-op calls */ in _mesa_reference_sampler_object_()
102 if (samp) { in _mesa_reference_sampler_object_()
104 assert(samp->RefCount > 0); in _mesa_reference_sampler_object_()
106 p_atomic_inc(&samp->RefCount); in _mesa_reference_sampler_object_()
109 *ptr = samp; in _mesa_reference_sampler_object_()
536 set_sampler_wrap_s(struct gl_context *ctx, struct gl_sampler_object *samp, in set_sampler_wrap_s() argument
539 if (samp->Attrib.WrapS == param) in set_sampler_wrap_s()
543 update_sampler_gl_clamp(ctx, samp, is_wrap_gl_clamp(samp in set_sampler_wrap_s()
86 _mesa_reference_sampler_object_(struct gl_context *ctx, struct gl_sampler_object **ptr, struct gl_sampler_object *samp) _mesa_reference_sampler_object_() argument
554 set_sampler_wrap_t(struct gl_context *ctx, struct gl_sampler_object *samp, GLint param) set_sampler_wrap_t() argument
572 set_sampler_wrap_r(struct gl_context *ctx, struct gl_sampler_object *samp, GLint param) set_sampler_wrap_r() argument
589 set_sampler_min_filter(struct gl_context *ctx, struct gl_sampler_object *samp, GLint param) set_sampler_min_filter() argument
615 set_sampler_mag_filter(struct gl_context *ctx, struct gl_sampler_object *samp, GLint param) set_sampler_mag_filter() argument
636 set_sampler_lod_bias(struct gl_context *ctx, struct gl_sampler_object *samp, GLfloat param) set_sampler_lod_bias() argument
650 set_sampler_border_colorf(struct gl_context *ctx, struct gl_sampler_object *samp, const GLfloat params[4]) set_sampler_border_colorf() argument
662 set_sampler_border_colori(struct gl_context *ctx, struct gl_sampler_object *samp, const GLint params[4]) set_sampler_border_colori() argument
674 set_sampler_border_colorui(struct gl_context *ctx, struct gl_sampler_object *samp, const GLuint params[4]) set_sampler_border_colorui() argument
686 set_sampler_min_lod(struct gl_context *ctx, struct gl_sampler_object *samp, GLfloat param) set_sampler_min_lod() argument
701 set_sampler_max_lod(struct gl_context *ctx, struct gl_sampler_object *samp, GLfloat param) set_sampler_max_lod() argument
715 set_sampler_compare_mode(struct gl_context *ctx, struct gl_sampler_object *samp, GLint param) set_sampler_compare_mode() argument
740 set_sampler_compare_func(struct gl_context *ctx, struct gl_sampler_object *samp, GLint param) set_sampler_compare_func() argument
773 set_sampler_max_anisotropy(struct gl_context *ctx, struct gl_sampler_object *samp, GLfloat param) set_sampler_max_anisotropy() argument
796 set_sampler_cube_map_seamless(struct gl_context *ctx, struct gl_sampler_object *samp, GLboolean param) set_sampler_cube_map_seamless() argument
816 set_sampler_srgb_decode(struct gl_context *ctx, struct gl_sampler_object *samp, GLenum param) set_sampler_srgb_decode() argument
845 set_sampler_reduction_mode(struct gl_context *ctx, struct gl_sampler_object *samp, GLenum param) set_sampler_reduction_mode() argument
[all...]
H A Dtexturebindless.c533 is_sampler_border_color_valid(struct gl_sampler_object *samp) in is_sampler_border_color_valid() argument
547 size_t size = sizeof(samp->Attrib.state.border_color.ui); in is_sampler_border_color_valid()
560 if (!memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[0], size) || in is_sampler_border_color_valid()
561 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[1], size) || in is_sampler_border_color_valid()
562 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[2], size) || in is_sampler_border_color_valid()
563 !memcmp(samp->Attrib.state.border_color.f, valid_float_border_colors[3], size)) in is_sampler_border_color_valid()
566 if (!memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[0], size) || in is_sampler_border_color_valid()
567 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[1], size) || in is_sampler_border_color_valid()
568 !memcmp(samp->Attrib.state.border_color.ui, valid_integer_border_colors[2], size) || in is_sampler_border_color_valid()
569 !memcmp(samp in is_sampler_border_color_valid()
[all...]
/third_party/skia/third_party/externals/spirv-cross/tests-other/
H A Dmsl_constexpr_test.cpp91 spvc_msl_constexpr_sampler samp; in main() local
92 spvc_msl_constexpr_sampler_init(&samp); in main()
93 samp.s_address = SPVC_MSL_SAMPLER_ADDRESS_REPEAT; in main()
94 samp.t_address = SPVC_MSL_SAMPLER_ADDRESS_REPEAT; in main()
95 samp.r_address = SPVC_MSL_SAMPLER_ADDRESS_REPEAT; in main()
96 SPVC_CHECKED_CALL(spvc_compiler_msl_remap_constexpr_sampler_by_binding(compiler, 1, 3, &samp)); in main()
98 samp.s_address = SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE; in main()
99 samp.t_address = SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE; in main()
100 samp.r_address = SPVC_MSL_SAMPLER_ADDRESS_CLAMP_TO_EDGE; in main()
101 SPVC_CHECKED_CALL(spvc_compiler_msl_remap_constexpr_sampler_by_binding(compiler, 2, 4, &samp)); in main()
[all...]
H A Dmsl_ycbcr_conversion_test.cpp81 spvc_msl_constexpr_sampler samp; in main() local
83 spvc_msl_constexpr_sampler_init(&samp); in main()
92 SPVC_CHECKED_CALL(spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr(compiler, 1, 2, &samp, &conv)); in main()
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_pipe.c213 struct pipe_sampler_state samp; in nine_convert_sampler_state() local
220 samp.lod_bias = asfloat(ss[D3DSAMP_MIPMAPLODBIAS]); in nine_convert_sampler_state()
221 samp.min_lod = ss[NINED3DSAMP_MINLOD]; in nine_convert_sampler_state()
222 samp.min_mip_filter = (ss[D3DSAMP_MIPFILTER] == D3DTEXF_POINT) ? PIPE_TEX_FILTER_NEAREST : PIPE_TEX_FILTER_LINEAR; in nine_convert_sampler_state()
224 samp.min_lod = 0.0; in nine_convert_sampler_state()
225 samp.lod_bias = 0.0; in nine_convert_sampler_state()
226 samp.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; in nine_convert_sampler_state()
228 samp.max_lod = 15.0f; in nine_convert_sampler_state()
232 samp.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE; in nine_convert_sampler_state()
233 samp in nine_convert_sampler_state()
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_query_hw.c46 struct fd_hw_sample *samp = NULL; variable
59 fd_hw_sample_reference(ctx, &samp, batch->sample_cache[idx]);
61 return samp;
179 sampptr(struct fd_hw_sample *samp, uint32_t n, void *ptr) in sampptr() argument
181 return ((char *)ptr) + (samp->tile_stride * n) + samp->offset; in sampptr()
294 struct fd_hw_sample *samp = slab_alloc_st(&batch->ctx->sample_pool); in fd_hw_sample_init() local
295 pipe_reference_init(&samp->reference, 1); in fd_hw_sample_init()
296 samp->size = size; in fd_hw_sample_init()
299 samp in fd_hw_sample_init()
328 __fd_hw_sample_destroy(struct fd_context *ctx, struct fd_hw_sample *samp) __fd_hw_sample_destroy() argument
348 struct fd_hw_sample *samp = fd_hw_query_prepare() local
[all...]
H A Dfreedreno_query_hw.h140 void __fd_hw_sample_destroy(struct fd_context *ctx, struct fd_hw_sample *samp);
155 struct fd_hw_sample *samp) in fd_hw_sample_reference()
159 if (pipe_reference(&(*ptr)->reference, &samp->reference)) in fd_hw_sample_reference()
161 *ptr = samp; in fd_hw_sample_reference()
154 fd_hw_sample_reference(struct fd_context *ctx, struct fd_hw_sample **ptr, struct fd_hw_sample *samp) fd_hw_sample_reference() argument
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/
H A Dfd4_query.c50 struct fd_hw_sample *samp = in occlusion_get_sample() local
56 assert((samp->offset & 0x3) == 0); in occlusion_get_sample()
58 /* Set RB_SAMPLE_COUNT_ADDR to samp->offset plus value of in occlusion_get_sample()
64 OUT_RING(ring, A4XX_RB_SAMPLE_COUNT_CONTROL_COPY | samp->offset); in occlusion_get_sample()
74 return samp; in occlusion_get_sample()
129 struct fd_hw_sample *samp = fd_hw_sample_init(batch, sizeof(uint64_t)); variable
187 OUT_RING(ring, samp->offset);
215 return samp;
H A Dfd4_texture.h45 fd4_sampler_stateobj(struct pipe_sampler_state *samp) in fd4_sampler_stateobj() argument
47 return (struct fd4_sampler_stateobj *)samp; in fd4_sampler_stateobj()
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_nir_lower_tex_src_plane.c50 find_sampler(lower_tex_src_state *state, unsigned samp) in find_sampler() argument
54 if (var->data.binding == samp) in find_sampler()
144 nir_variable* samp = find_sampler(state, u_v_samp); in lower_tex_src_plane_block() local
145 assert(samp); in lower_tex_src_plane_block()
147 nir_deref_instr *tex_deref_instr = nir_build_deref_var(b, samp); in lower_tex_src_plane_block()
/third_party/skia/third_party/externals/spirv-cross/
H A Dspirv_cross_c.cpp1362 static void spvc_convert_msl_sampler(MSLConstexprSampler &samp, const spvc_msl_constexpr_sampler *sampler) in spvc_convert_msl_sampler() argument
1364 samp.s_address = static_cast<MSLSamplerAddress>(sampler->s_address); in spvc_convert_msl_sampler()
1365 samp.t_address = static_cast<MSLSamplerAddress>(sampler->t_address); in spvc_convert_msl_sampler()
1366 samp.r_address = static_cast<MSLSamplerAddress>(sampler->r_address); in spvc_convert_msl_sampler()
1367 samp.lod_clamp_min = sampler->lod_clamp_min; in spvc_convert_msl_sampler()
1368 samp.lod_clamp_max = sampler->lod_clamp_max; in spvc_convert_msl_sampler()
1369 samp.lod_clamp_enable = sampler->lod_clamp_enable != 0; in spvc_convert_msl_sampler()
1370 samp.min_filter = static_cast<MSLSamplerFilter>(sampler->min_filter); in spvc_convert_msl_sampler()
1371 samp.mag_filter = static_cast<MSLSamplerFilter>(sampler->mag_filter); in spvc_convert_msl_sampler()
1372 samp in spvc_convert_msl_sampler()
1381 spvc_convert_msl_sampler_ycbcr_conversion(MSLConstexprSampler &samp, const spvc_msl_sampler_ycbcr_conversion *conv) spvc_convert_msl_sampler_ycbcr_conversion() argument
1409 MSLConstexprSampler samp; spvc_compiler_msl_remap_constexpr_sampler() local
1433 MSLConstexprSampler samp; spvc_compiler_msl_remap_constexpr_sampler_by_binding() local
1458 MSLConstexprSampler samp; spvc_compiler_msl_remap_constexpr_sampler_ycbcr() local
1485 MSLConstexprSampler samp; spvc_compiler_msl_remap_constexpr_sampler_by_binding_ycbcr() local
[all...]
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_texture.h47 fd6_sampler_stateobj(struct pipe_sampler_state *samp) in fd6_sampler_stateobj() argument
49 return (struct fd6_sampler_stateobj *)samp; in fd6_sampler_stateobj()
131 } samp[16]; member
H A Dfd6_texture.c138 struct fd6_sampler_stateobj *samp = hwcso; in fd6_sampler_state_delete() local
145 for (unsigned i = 0; i < ARRAY_SIZE(state->key.samp); i++) { in fd6_sampler_state_delete()
146 if (samp->seqno == state->key.samp[i].seqno) { in fd6_sampler_state_delete()
363 key.samp[i].seqno = sampler->seqno; in fd6_texture_state()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
H A Dfd2_texture.h44 fd2_sampler_stateobj(struct pipe_sampler_state *samp) in fd2_sampler_stateobj() argument
46 return (struct fd2_sampler_stateobj *)samp; in fd2_sampler_stateobj()
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/
H A Dfd3_texture.h45 fd3_sampler_stateobj(struct pipe_sampler_state *samp) in fd3_sampler_stateobj() argument
47 return (struct fd3_sampler_stateobj *)samp; in fd3_sampler_stateobj()
H A Dfd3_query.c49 struct fd_hw_sample *samp = in occlusion_get_sample() local
52 /* Set RB_SAMPLE_COUNT_ADDR to samp->offset plus value of in occlusion_get_sample()
58 OUT_RING(ring, samp->offset); in occlusion_get_sample()
80 return samp; in occlusion_get_sample()
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_texture.h45 fd5_sampler_stateobj(struct pipe_sampler_state *samp) in fd5_sampler_stateobj() argument
47 return (struct fd5_sampler_stateobj *)samp; in fd5_sampler_stateobj()
/third_party/skia/third_party/externals/spirv-cross/include/spirv_cross/
H A Dsampler.hpp100 inline T texture(const sampler2DBase<T> &samp, const glm::vec2 &uv, float bias = 0.0f) in texture() argument
102 return samp.sample(uv, bias); in texture()
/third_party/mesa3d/src/freedreno/ir3/
H A Dir3_cp.c637 /* Handle converting a sam.s2en (taking samp/tex idx params via register) in instr_cp()
638 * into a normal sam (encoding immediate samp/tex idx) if they are in instr_cp()
640 * where we know samp/tex at compile time. This needs to be done in the in instr_cp()
653 struct ir3_register *samp = samp_tex->srcs[0]; in instr_cp() local
656 if ((samp->flags & IR3_REG_IMMED) && (tex->flags & IR3_REG_IMMED) && in instr_cp()
657 (samp->iim_val < 16) && (tex->iim_val < 16)) { in instr_cp()
659 instr->cat5.samp = samp->iim_val; in instr_cp()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_tex_sample.c2454 /* it is assumed that samp->min_img_filter is set to in img_filter_2d_ewa()
2484 /* it is assumed that samp->min_img_filter is set to in img_filter_2d_ewa()
3474 struct sp_sampler *samp = CALLOC_STRUCT(sp_sampler); in softpipe_create_sampler_state() local
3476 samp->base = *sampler; in softpipe_create_sampler_state()
3483 samp->linear_texcoord_s = get_linear_wrap( sampler->wrap_s ); in softpipe_create_sampler_state()
3484 samp->linear_texcoord_t = get_linear_wrap( sampler->wrap_t ); in softpipe_create_sampler_state()
3485 samp->linear_texcoord_p = get_linear_wrap( sampler->wrap_r ); in softpipe_create_sampler_state()
3487 samp->nearest_texcoord_s = get_nearest_wrap( sampler->wrap_s ); in softpipe_create_sampler_state()
3488 samp->nearest_texcoord_t = get_nearest_wrap( sampler->wrap_t ); in softpipe_create_sampler_state()
3489 samp in softpipe_create_sampler_state()
3854 struct sp_tgsi_sampler *samp = CALLOC_STRUCT(sp_tgsi_sampler); sp_create_tgsi_sampler() local
[all...]

Completed in 21 milliseconds

123