/external/mesa3d/src/glsl/builtins/profiles/ |
D | 140.frag | 3 vec4 texture( sampler1D sampler, float P, float bias); 4 ivec4 texture(isampler1D sampler, float P, float bias); 5 uvec4 texture(usampler1D sampler, float P, float bias); 7 vec4 texture( sampler2D sampler, vec2 P, float bias); 8 ivec4 texture(isampler2D sampler, vec2 P, float bias); 9 uvec4 texture(usampler2D sampler, vec2 P, float bias); 11 vec4 texture( sampler3D sampler, vec3 P, float bias); 12 ivec4 texture(isampler3D sampler, vec3 P, float bias); 13 uvec4 texture(usampler3D sampler, vec3 P, float bias); 15 vec4 texture( samplerCube sampler, vec3 P, float bias); [all …]
|
D | 130.frag | 4 vec4 texture( sampler1D sampler, float P, float bias); 5 ivec4 texture(isampler1D sampler, float P, float bias); 6 uvec4 texture(usampler1D sampler, float P, float bias); 8 vec4 texture( sampler2D sampler, vec2 P, float bias); 9 ivec4 texture(isampler2D sampler, vec2 P, float bias); 10 uvec4 texture(usampler2D sampler, vec2 P, float bias); 12 vec4 texture( sampler3D sampler, vec3 P, float bias); 13 ivec4 texture(isampler3D sampler, vec3 P, float bias); 14 uvec4 texture(usampler3D sampler, vec3 P, float bias); 16 vec4 texture( samplerCube sampler, vec3 P, float bias); [all …]
|
D | 140.glsl | 476 int textureSize( sampler1D sampler, int lod); 477 int textureSize(isampler1D sampler, int lod); 478 int textureSize(usampler1D sampler, int lod); 480 ivec2 textureSize( sampler2D sampler, int lod); 481 ivec2 textureSize(isampler2D sampler, int lod); 482 ivec2 textureSize(usampler2D sampler, int lod); 484 ivec3 textureSize( sampler3D sampler, int lod); 485 ivec3 textureSize(isampler3D sampler, int lod); 486 ivec3 textureSize(usampler3D sampler, int lod); 488 ivec2 textureSize( samplerCube sampler, int lod); [all …]
|
D | 130.glsl | 472 int textureSize( sampler1D sampler, int lod); 473 int textureSize(isampler1D sampler, int lod); 474 int textureSize(usampler1D sampler, int lod); 476 ivec2 textureSize( sampler2D sampler, int lod); 477 ivec2 textureSize(isampler2D sampler, int lod); 478 ivec2 textureSize(usampler2D sampler, int lod); 480 ivec3 textureSize( sampler3D sampler, int lod); 481 ivec3 textureSize(isampler3D sampler, int lod); 482 ivec3 textureSize(usampler3D sampler, int lod); 484 ivec2 textureSize( samplerCube sampler, int lod); [all …]
|
D | ARB_shader_texture_lod.glsl | 2 vec4 texture1DGradARB (sampler1D sampler, 4 vec4 texture1DProjGradARB (sampler1D sampler, 6 vec4 texture1DProjGradARB (sampler1D sampler, 9 vec4 texture2DGradARB (sampler2D sampler, 11 vec4 texture2DProjGradARB (sampler2D sampler, 13 vec4 texture2DProjGradARB (sampler2D sampler, 16 vec4 texture3DGradARB (sampler3D sampler, 18 vec4 texture3DProjGradARB (sampler3D sampler, 21 vec4 textureCubeGradARB (samplerCube sampler, 24 vec4 shadow1DGradARB (sampler1DShadow sampler, [all …]
|
D | 120.vert | 5 vec4 texture1DLod (sampler1D sampler, float coord, float lod); 6 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod); 7 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod); 9 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod); 10 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod); 11 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod); 13 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod); 14 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod); 16 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod); 18 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod); [all …]
|
D | 110.vert | 9 vec4 texture1DLod (sampler1D sampler, float coord, float lod); 10 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod); 11 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod); 13 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod); 14 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod); 15 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod); 17 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod); 18 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod); 20 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod); 22 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod); [all …]
|
D | ARB_shader_texture_lod.frag | 5 vec4 texture1DLod (sampler1D sampler, float coord, float lod); 6 vec4 texture1DProjLod(sampler1D sampler, vec2 coord, float lod); 7 vec4 texture1DProjLod(sampler1D sampler, vec4 coord, float lod); 8 vec4 texture2DLod (sampler2D sampler, vec2 coord, float lod); 9 vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod); 10 vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod); 11 vec4 texture3DLod (sampler3D sampler, vec3 coord, float lod); 12 vec4 texture3DProjLod(sampler3D sampler, vec4 coord, float lod); 13 vec4 textureCubeLod (samplerCube sampler, vec3 coord, float lod); 14 vec4 shadow1DLod (sampler1DShadow sampler, vec3 coord, float lod); [all …]
|
D | 120.frag | 5 vec4 texture1D (sampler1D sampler, float coord, float bias); 6 vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias); 7 vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias); 9 vec4 texture2D (sampler2D sampler, vec2 coord, float bias); 10 vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias); 11 vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias); 13 vec4 texture3D (sampler3D sampler, vec3 coord, float bias); 14 vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias); 16 vec4 textureCube (samplerCube sampler, vec3 coord, float bias); 18 vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias); [all …]
|
D | 110.frag | 6 vec4 texture1D (sampler1D sampler, float coord, float bias); 7 vec4 texture1DProj (sampler1D sampler, vec2 coord, float bias); 8 vec4 texture1DProj (sampler1D sampler, vec4 coord, float bias); 10 vec4 texture2D (sampler2D sampler, vec2 coord, float bias); 11 vec4 texture2DProj (sampler2D sampler, vec3 coord, float bias); 12 vec4 texture2DProj (sampler2D sampler, vec4 coord, float bias); 14 vec4 texture3D (sampler3D sampler, vec3 coord, float bias); 15 vec4 texture3DProj (sampler3D sampler, vec4 coord, float bias); 17 vec4 textureCube (samplerCube sampler, vec3 coord, float bias); 19 vec4 shadow1D (sampler1DShadow sampler, vec3 coord, float bias); [all …]
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | gen7_sampler_state.c | 37 struct gen7_sampler_state *sampler) in gen7_update_sampler_state() argument 52 sampler->ss0.min_filter = BRW_MAPFILTER_NEAREST; in gen7_update_sampler_state() 53 sampler->ss0.mip_filter = BRW_MIPFILTER_NONE; in gen7_update_sampler_state() 57 sampler->ss0.min_filter = BRW_MAPFILTER_LINEAR; in gen7_update_sampler_state() 58 sampler->ss0.mip_filter = BRW_MIPFILTER_NONE; in gen7_update_sampler_state() 61 sampler->ss0.min_filter = BRW_MAPFILTER_NEAREST; in gen7_update_sampler_state() 62 sampler->ss0.mip_filter = BRW_MIPFILTER_NEAREST; in gen7_update_sampler_state() 65 sampler->ss0.min_filter = BRW_MAPFILTER_LINEAR; in gen7_update_sampler_state() 66 sampler->ss0.mip_filter = BRW_MIPFILTER_NEAREST; in gen7_update_sampler_state() 69 sampler->ss0.min_filter = BRW_MAPFILTER_NEAREST; in gen7_update_sampler_state() [all …]
|
D | brw_wm_sampler_state.c | 82 upload_default_color(struct brw_context *brw, struct gl_sampler_object *sampler, in upload_default_color() argument 97 color[0] = sampler->BorderColor.f[0]; in upload_default_color() 98 color[1] = sampler->BorderColor.f[0]; in upload_default_color() 99 color[2] = sampler->BorderColor.f[0]; in upload_default_color() 100 color[3] = sampler->BorderColor.f[0]; in upload_default_color() 102 color[0] = sampler->BorderColor.f[0]; in upload_default_color() 103 color[1] = sampler->BorderColor.f[1]; in upload_default_color() 104 color[2] = sampler->BorderColor.f[2]; in upload_default_color() 105 color[3] = sampler->BorderColor.f[3]; in upload_default_color() 162 struct brw_sampler_state *sampler) in brw_update_sampler_state() argument [all …]
|
/external/deqp/framework/common/ |
D | tcuTexture.hpp | 330 …Vec4 sample1D (const Sampler& sampler, Sampler::FilterMode filter, float s, int level) con… 331 …Vec4 sample2D (const Sampler& sampler, Sampler::FilterMode filter, float s, float t, int d… 332 …Vec4 sample3D (const Sampler& sampler, Sampler::FilterMode filter, float s, float t, float… 334 …Vec4 sample1DOffset (const Sampler& sampler, Sampler::FilterMode filter, float s, const IVe… 335 …Vec4 sample2DOffset (const Sampler& sampler, Sampler::FilterMode filter, float s, float t, … 336 …Vec4 sample3DOffset (const Sampler& sampler, Sampler::FilterMode filter, float s, float t, … 338 …float sample1DCompare (const Sampler& sampler, Sampler::FilterMode filter, float ref, float… 339 …float sample2DCompare (const Sampler& sampler, Sampler::FilterMode filter, float ref, float… 417 … (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, int lev… 418 … (const ConstPixelBufferAccess* levels, int numLevels, const Sampler& sampler, float s, float t… [all …]
|
D | tcuTexLookupVerifier.cpp | 39 static bool isSamplerSupported (const Sampler& sampler) in isSamplerSupported() argument 41 return sampler.compare == Sampler::COMPAREMODE_NONE && in isSamplerSupported() 42 isWrapModeSupported(sampler.wrapS) && in isSamplerSupported() 43 isWrapModeSupported(sampler.wrapT) && in isSamplerSupported() 44 isWrapModeSupported(sampler.wrapR); in isSamplerSupported() 56 inline Vector<ScalarType, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, … in lookup() argument 61 return sampleTextureBorder<ScalarType>(access.getFormat(), sampler); in lookup() 65 inline Vector<float, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, int i… in lookup() argument 74 return sampleTextureBorder<float>(access.getFormat(), sampler); in lookup() 101 static void lookupQuad (ColorQuad& dst, const ConstPixelBufferAccess& level, const Sampler& sampler… in lookupQuad() argument [all …]
|
D | tcuTexLookupVerifier.hpp | 108 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const Lookup… 109 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const Lookup… 110 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const Look… 111 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const Lo… 112 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const Lo… 113 bool isLookupResultValid (const Texture3DView& texture, const Sampler& sampler, const Lookup… 114 bool isLookupResultValid (const TextureCubeArrayView& texture, const Sampler& sampler, const L… 116 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, T… 117 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, T… 118 bool isLevel1DLookupResultValid (const ConstPixelBufferAccess& access, const Sampler& sampler, T… [all …]
|
D | tcuTexCompareVerifier.cpp | 38 static bool isSamplerSupported (const Sampler& sampler) in isSamplerSupported() argument 40 return sampler.compare != Sampler::COMPAREMODE_NONE && in isSamplerSupported() 41 isWrapModeSupported(sampler.wrapS) && in isSamplerSupported() 42 isWrapModeSupported(sampler.wrapT) && in isSamplerSupported() 43 isWrapModeSupported(sampler.wrapR); in isSamplerSupported() 134 static float lookupDepth (const tcu::ConstPixelBufferAccess& access, const Sampler& sampler, int i,… in lookupDepth() argument 139 return sampleTextureBorder<float>(access.getFormat(), sampler).x(); in lookupDepth() 143 static float lookupDepthNoBorder (const tcu::ConstPixelBufferAccess& access, const Sampler& sampler… in lookupDepthNoBorder() argument 145 DE_UNREF(sampler); in lookupDepthNoBorder() 539 const Sampler& sampler, in isNearestCompareResultValid() argument [all …]
|
D | tcuTexture.cpp | 1239 static inline Vec4 lookupBorder (const tcu::TextureFormat& format, const tcu::Sampler& sampler) in lookupBorder() argument 1252 return sampleTextureBorder<float>(format, sampler); in lookupBorder() 1254 return sampleTextureBorder<deInt32>(format, sampler).cast<float>(); in lookupBorder() 1256 return sampleTextureBorder<deUint32>(format, sampler).cast<float>(); in lookupBorder() 1288 static Vec4 sampleNearest1D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u,… in sampleNearest1D() argument 1295 if (sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) in sampleNearest1D() 1296 return lookupBorder(access.getFormat(), sampler); in sampleNearest1D() 1298 int i = wrap(sampler.wrapS, x, width); in sampleNearest1D() 1303 static Vec4 sampleNearest2D (const ConstPixelBufferAccess& access, const Sampler& sampler, float u,… in sampleNearest2D() argument 1312 if ((sampler.wrapS == Sampler::CLAMP_TO_BORDER && !deInBounds32(x, 0, width)) || in sampleNearest2D() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_tex_sample.c | 164 lp_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler) in LP_LLVM_TEXTURE_MEMBER() 166 FREE(sampler); in LP_LLVM_TEXTURE_MEMBER() 186 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; in lp_llvm_sampler_soa_emit_fetch_texel() local 196 &sampler->dynamic_state.static_state[unit], in lp_llvm_sampler_soa_emit_fetch_texel() 197 &sampler->dynamic_state.base, in lp_llvm_sampler_soa_emit_fetch_texel() 217 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; in lp_llvm_sampler_soa_emit_size_query() local 222 &sampler->dynamic_state.static_state[unit], in lp_llvm_sampler_soa_emit_size_query() 223 &sampler->dynamic_state.base, in lp_llvm_sampler_soa_emit_size_query() 235 struct lp_llvm_sampler_soa *sampler; in lp_llvm_sampler_soa_create() local 237 sampler = CALLOC_STRUCT(lp_llvm_sampler_soa); in lp_llvm_sampler_soa_create() [all …]
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_llvm_sample.c | 159 draw_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler) in DRAW_LLVM_TEXTURE_MEMBER() 161 FREE(sampler); in DRAW_LLVM_TEXTURE_MEMBER() 181 struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base; in draw_llvm_sampler_soa_emit_fetch_texel() local 186 &sampler->dynamic_state.static_state[unit], in draw_llvm_sampler_soa_emit_fetch_texel() 187 &sampler->dynamic_state.base, in draw_llvm_sampler_soa_emit_fetch_texel() 208 struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base; in draw_llvm_sampler_soa_emit_size_query() local 213 &sampler->dynamic_state.static_state[unit], in draw_llvm_sampler_soa_emit_size_query() 214 &sampler->dynamic_state.base, in draw_llvm_sampler_soa_emit_size_query() 225 struct draw_llvm_sampler_soa *sampler; in draw_llvm_sampler_soa_create() local 227 sampler = CALLOC_STRUCT(draw_llvm_sampler_soa); in draw_llvm_sampler_soa_create() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_sampler.c | 128 struct pipe_sampler_state *sampler, in convert_sampler() argument 142 memset(sampler, 0, sizeof(*sampler)); in convert_sampler() 143 sampler->wrap_s = gl_wrap_xlate(msamp->WrapS); in convert_sampler() 144 sampler->wrap_t = gl_wrap_xlate(msamp->WrapT); in convert_sampler() 145 sampler->wrap_r = gl_wrap_xlate(msamp->WrapR); in convert_sampler() 147 sampler->min_img_filter = gl_filter_to_img_filter(msamp->MinFilter); in convert_sampler() 148 sampler->min_mip_filter = gl_filter_to_mip_filter(msamp->MinFilter); in convert_sampler() 149 sampler->mag_img_filter = gl_filter_to_img_filter(msamp->MagFilter); in convert_sampler() 152 sampler->normalized_coords = 1; in convert_sampler() 154 sampler->lod_bias = ctx->Texture.Unit[texUnit].LodBias + msamp->LodBias; in convert_sampler() [all …]
|
/external/skia/src/images/ |
D | SkImageDecoder_ktx.cpp | 70 SkScaledBitmapSampler sampler(width, height, this->getSampleSize()); in onDecode() local 107 const int w = sampler.scaledWidth(); in onDecode() 108 const int h = sampler.scaledHeight(); in onDecode() 111 const int w = sampler.scaledWidth(); in onDecode() 112 const int h = sampler.scaledHeight(); in onDecode() 129 if (!sampler.begin(bm, SkScaledBitmapSampler::kGray, *this)) { in onDecode() 147 const int dstHeight = sampler.scaledHeight(); in onDecode() 149 srcRow += sampler.srcY0() * srcRowBytes; in onDecode() 151 sampler.next(srcRow); in onDecode() 152 srcRow += sampler.srcDY() * srcRowBytes; in onDecode() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_sampler.c | 96 const struct pipe_sampler_state *sampler) in svga_create_sampler_state() argument 104 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter); in svga_create_sampler_state() 105 cso->magfilter = translate_img_filter( sampler->mag_img_filter ); in svga_create_sampler_state() 106 cso->minfilter = translate_img_filter( sampler->min_img_filter ); in svga_create_sampler_state() 107 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 ); in svga_create_sampler_state() 108 if(sampler->max_anisotropy) in svga_create_sampler_state() 110 cso->lod_bias = sampler->lod_bias; in svga_create_sampler_state() 111 cso->addressu = translate_wrap_mode(sampler->wrap_s); in svga_create_sampler_state() 112 cso->addressv = translate_wrap_mode(sampler->wrap_t); in svga_create_sampler_state() 113 cso->addressw = translate_wrap_mode(sampler->wrap_r); in svga_create_sampler_state() [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_state_sampler.c | 64 const struct i915_sampler_state *sampler, 84 const struct i915_sampler_state *sampler, in update_sampler() argument 91 state[0] = sampler->state[0]; in update_sampler() 92 state[1] = sampler->state[1]; in update_sampler() 93 state[2] = sampler->state[2]; in update_sampler() 111 const unsigned ws = sampler->templ->wrap_s; in update_sampler() 112 const unsigned wt = sampler->templ->wrap_t; in update_sampler() 113 const unsigned wr = sampler->templ->wrap_r; in update_sampler() 115 (sampler->templ->min_img_filter != PIPE_TEX_FILTER_NEAREST || in update_sampler() 116 sampler->templ->mag_img_filter != PIPE_TEX_FILTER_NEAREST) && in update_sampler() [all …]
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
D | asm_fill.h | 35 struct ureg_src *sampler, 43 struct ureg_src *sampler, in solid_fill() argument 76 struct ureg_src *sampler, in linear_grad() argument 93 ureg_TEX(ureg, *out, TGSI_TEXTURE_1D, ureg_src(temp[2]), sampler[0]); in linear_grad() 100 struct ureg_src *sampler, in radial_grad() argument 129 ureg_TEX(ureg, *out, TGSI_TEXTURE_1D, ureg_src(temp[0]), sampler[0]); in radial_grad() 137 struct ureg_src *sampler, in pattern() argument 160 ureg_TEX(ureg, *out, TGSI_TEXTURE_2D, ureg_src(temp[1]), sampler[0]); in pattern() 167 struct ureg_src *sampler, in paint_degenerate() argument 173 ureg_TEX(ureg, *out, TGSI_TEXTURE_1D, ureg_src(temp[1]), sampler[0]); in paint_degenerate() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_matrix_filter.c | 83 struct ureg_src sampler; in create_frag_shader() local 97 sampler = ureg_DECL_sampler(shader, 0); in create_frag_shader() 123 ureg_TEX(shader, t_array[i], TGSI_TEXTURE_2D, src, sampler); in create_frag_shader() 158 struct pipe_sampler_state sampler; in vl_matrix_filter_init() local 190 memset(&sampler, 0, sizeof(sampler)); in vl_matrix_filter_init() 191 sampler.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE; in vl_matrix_filter_init() 192 sampler.wrap_t = PIPE_TEX_WRAP_CLAMP_TO_EDGE; in vl_matrix_filter_init() 193 sampler.wrap_r = PIPE_TEX_WRAP_CLAMP_TO_EDGE; in vl_matrix_filter_init() 194 sampler.min_img_filter = PIPE_TEX_FILTER_NEAREST; in vl_matrix_filter_init() 195 sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; in vl_matrix_filter_init() [all …]
|