/external/mesa3d/src/mesa/program/ |
sampler.h | 27 _mesa_get_sampler_uniform_value(class ir_dereference *sampler,
|
sampler.cpp | 77 /* GLSL 1.10 and 1.20 allowed variable sampler array indices, 85 "warning: Variable sampler array index unsupported.\n" 107 _mesa_get_sampler_uniform_value(class ir_dereference *sampler, 111 get_sampler_name getname(sampler, shader_program); 113 sampler->accept(&getname); 118 "failed to find sampler named %s.\n", getname.name); 122 return shader_program->UniformStorage[location].sampler + getname.offset;
|
/external/mesa3d/src/glsl/builtins/profiles/ |
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...] |
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...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen7_sampler_state.c | 33 * Sets the sampler state for a single unit. 37 struct gen7_sampler_state *sampler) 52 sampler->ss0.min_filter = BRW_MAPFILTER_NEAREST; 53 sampler->ss0.mip_filter = BRW_MIPFILTER_NONE; 57 sampler->ss0.min_filter = BRW_MAPFILTER_LINEAR; 58 sampler->ss0.mip_filter = BRW_MIPFILTER_NONE; 61 sampler->ss0.min_filter = BRW_MAPFILTER_NEAREST; 62 sampler->ss0.mip_filter = BRW_MIPFILTER_NEAREST; 65 sampler->ss0.min_filter = BRW_MAPFILTER_LINEAR; 66 sampler->ss0.mip_filter = BRW_MIPFILTER_NEAREST [all...] |
brw_wm_sampler_state.c | 82 upload_default_color(struct brw_context *brw, struct gl_sampler_object *sampler, 97 color[0] = sampler->BorderColor.f[0]; 98 color[1] = sampler->BorderColor.f[0]; 99 color[2] = sampler->BorderColor.f[0]; 100 color[3] = sampler->BorderColor.f[0]; 102 color[0] = sampler->BorderColor.f[0]; 103 color[1] = sampler->BorderColor.f[1]; 104 color[2] = sampler->BorderColor.f[2]; 105 color[3] = sampler->BorderColor.f[3]; 156 * Sets the sampler state for a single unit based off of the sampler ke [all...] |
gen6_sampler_state.c | 44 OUT_BATCH(brw->sampler.offset); /* VS */ 46 OUT_BATCH(brw->sampler.offset);
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
draw_llvm_sample.c | 51 * 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 68 * This is the bridge between our sampler and the TGSI translator. 127 * fetch the members of lp_jit_texture to fulfill the sampler code 131 * sampler code generator a reusable module without dependencies to 159 draw_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler) 161 FREE(sampler); 181 struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base; local 186 &sampler->dynamic_state.static_state[unit] 208 struct draw_llvm_sampler_soa *sampler = (struct draw_llvm_sampler_soa *)base; local 225 struct draw_llvm_sampler_soa *sampler; local [all...] |
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_tex_sample.c | 56 * This provides the bridge between the sampler state store in 57 * lp_jit_context and lp_jit_texture and the sampler code 59 * the texture sampler code generator in terms of the state stored in 73 * This is the bridge between our sampler and the TGSI translator. 132 * fetch the members of lp_jit_texture to fulfill the sampler code 136 * sampler code generator a reusable module without dependencies to 164 lp_llvm_sampler_soa_destroy(struct lp_build_sampler_soa *sampler) 166 FREE(sampler); 186 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; local 196 &sampler->dynamic_state.static_state[unit] 217 struct lp_llvm_sampler_soa *sampler = (struct lp_llvm_sampler_soa *)base; local 235 struct lp_llvm_sampler_soa *sampler; local [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_texfilter.h | 39 const struct gl_sampler_object *sampler);
|
/external/skia/src/gpu/vk/ |
GrVkSampler.h | 23 VkSampler sampler() const { return fSampler; } function in class:GrVkSampler 28 static const uint16_t& GetKey(const GrVkSampler& sampler) { return sampler.fKey; } 38 GrVkSampler(VkSampler sampler, uint16_t key) : INHERITED(), fSampler(sampler), fKey(key) {}
|
/external/mesa3d/src/mesa/state_tracker/ |
st_atom_sampler.c | 128 struct pipe_sampler_state *sampler, 142 memset(sampler, 0, sizeof(*sampler)); 143 sampler->wrap_s = gl_wrap_xlate(msamp->WrapS); 144 sampler->wrap_t = gl_wrap_xlate(msamp->WrapT); 145 sampler->wrap_r = gl_wrap_xlate(msamp->WrapR); 147 sampler->min_img_filter = gl_filter_to_img_filter(msamp->MinFilter); 148 sampler->min_mip_filter = gl_filter_to_mip_filter(msamp->MinFilter); 149 sampler->mag_img_filter = gl_filter_to_img_filter(msamp->MagFilter); 152 sampler->normalized_coords = 1 229 struct pipe_sampler_state *sampler = samplers + unit; local [all...] |
/external/deqp/modules/glshared/ |
glsTextureTestUtil.cpp | 180 const char* sampler = DE_NULL; local 187 case PROGRAM_2D_FLOAT: sampler = "sampler2D"; lookup = "texture(u_sampler, v_texCoord)"; break; 188 case PROGRAM_2D_INT: sampler = "isampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord))"; break; 189 case PROGRAM_2D_UINT: sampler = "usampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord))"; break; 190 case PROGRAM_2D_SHADOW: sampler = "sampler2DShadow"; lookup = "vec4(texture(u_sampler, vec3(v_texCoord, u_ref)), 0.0, 0.0, 1.0)"; break; 191 case PROGRAM_2D_FLOAT_BIAS: sampler = "sampler2D"; lookup = "texture(u_sampler, v_texCoord, u_bias)"; break; 192 case PROGRAM_2D_INT_BIAS: sampler = "isampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord, u_bias))"; break; 193 case PROGRAM_2D_UINT_BIAS: sampler = "usampler2D"; lookup = "vec4(texture(u_sampler, v_texCoord, u_bias))"; break; 194 case PROGRAM_2D_SHADOW_BIAS: sampler = "sampler2DShadow"; lookup = "vec4(texture(u_sampler, vec3(v_texCoord, u_ref), u_bias), 0.0, 0.0, 1.0)"; break; 195 case PROGRAM_1D_FLOAT: sampler = "sampler1D"; lookup = "texture(u_sampler, v_texCoord)"; break [all...] |
/external/deqp/framework/common/ |
tcuTexLookupVerifier.hpp | 108 bool isLookupResultValid (const Texture1DView& texture, const Sampler& sampler, const LookupPrecision& prec, const float coord, const Vec2& lodBounds, const Vec4& result); 109 bool isLookupResultValid (const Texture2DView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 110 bool isLookupResultValid (const TextureCubeView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result); 111 bool isLookupResultValid (const Texture1DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec2& coord, const Vec2& lodBounds, const Vec4& result); 112 bool isLookupResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const LookupPrecision& prec, const Vec3& coord, const Vec2& lodBounds, const Vec4& result) [all...] |
tcuTexCompareVerifier.hpp | 55 bool isTexCompareResultValid (const Texture2DView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const Vec2& lodBounds, const float cmpReference, const float result); 56 bool isTexCompareResultValid (const TextureCubeView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const float cmpReference, const float result); 57 bool isTexCompareResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const Vec2& lodBounds, const float cmpReference, const float result); 59 bool isGatherOffsetsCompareResultValid (const Texture2DView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec2& coord, const IVec2 (&offsets)[4], float cmpReference, const Vec4& result); 60 bool isGatherOffsetsCompareResultValid (const Texture2DArrayView& texture, const Sampler& sampler, const TexComparePrecision& prec, const Vec3& coord, const IVec2 (&offsets)[4], float cmpReference (…) [all...] |
tcuTexture.hpp | 176 class Sampler 258 Sampler (WrapMode wrapS_, 285 Sampler (void) 350 Vec4 sample1D (const Sampler& sampler, Sampler::FilterMode filter, float s, int level) const; 351 Vec4 sample2D (const Sampler& sampler, Sampler::FilterMode filter, float s, float t, int depth) const; 352 Vec4 sample3D (const Sampler& sampler, Sampler::FilterMode filter, float s, float t, float r) const [all...] |
tcuTexLookupVerifier.cpp | 39 static bool isSamplerSupported (const Sampler& sampler) 41 return sampler.compare == Sampler::COMPAREMODE_NONE && 42 isWrapModeSupported(sampler.wrapS) && 43 isWrapModeSupported(sampler.wrapT) && 44 isWrapModeSupported(sampler.wrapR); 56 inline Vector<ScalarType, 4> lookup (const ConstPixelBufferAccess& access, const Sampler& sampler, int i, int j, int k) 61 return sampleTextureBorder<ScalarType>(access.getFormat(), sampler); 1444 const Sampler& sampler, member in namespace:tcu 1508 const Sampler& sampler, member in namespace:tcu 1622 const Sampler& sampler, member in namespace:tcu 1641 const Sampler& sampler, member in namespace:tcu [all...] |
tcuTexCompareVerifier.cpp | 38 static bool isSamplerSupported (const Sampler& sampler) 40 return sampler.compare != Sampler::COMPAREMODE_NONE && 41 isWrapModeSupported(sampler.wrapS) && 42 isWrapModeSupported(sampler.wrapT) && 43 isWrapModeSupported(sampler.wrapR); 59 static CmpResultSet execCompare (const Sampler::CompareMode compareMode, 73 case Sampler::COMPAREMODE_LESS: 78 case Sampler::COMPAREMODE_LESS_OR_EQUAL [all...] |
/external/mesa3d/src/gallium/drivers/svga/ |
svga_pipe_sampler.c | 96 const struct pipe_sampler_state *sampler) 104 cso->mipfilter = translate_mip_filter(sampler->min_mip_filter); 105 cso->magfilter = translate_img_filter( sampler->mag_img_filter ); 106 cso->minfilter = translate_img_filter( sampler->min_img_filter ); 107 cso->aniso_level = MAX2( sampler->max_anisotropy, 1 ); 108 if(sampler->max_anisotropy) 110 cso->lod_bias = sampler->lod_bias; 111 cso->addressu = translate_wrap_mode(sampler->wrap_s); 112 cso->addressv = translate_wrap_mode(sampler->wrap_t); 113 cso->addressw = translate_wrap_mode(sampler->wrap_r) [all...] |
/external/swiftshader/src/D3D9/ |
Direct3DStateBlock9.cpp | 41 for(int sampler = 0; sampler < 16 + 4; sampler++) 43 texture[sampler] = 0; 176 for(int sampler = 0; sampler < 16 + 4; sampler++) 180 if(samplerStateCaptured[sampler][state]) 182 int index = sampler < 16 ? sampler : D3DVERTEXTEXTURESAMPLER0 + (sampler - 16) 711 unsigned int sampler = index < 16 ? index : (index - D3DVERTEXTEXTURESAMPLER0) + 16; local 747 unsigned int sampler = index < 16 ? index : (index - D3DVERTEXTEXTURESAMPLER0) + 16; local 977 unsigned int sampler = 16 + (index - D3DVERTEXTEXTURESAMPLER0); local [all...] |
/external/mesa3d/src/gallium/drivers/i915/ |
i915_state_sampler.c | 41 * 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]; 111 const unsigned ws = sampler->templ->wrap_s; 112 const unsigned wt = sampler->templ->wrap_t [all...] |
/prebuilts/ndk/r13/sources/third_party/shaderc/third_party/glslang/glslang/MachineIndependent/ |
reflection.cpp | 398 // Translate a glslang sampler type into the GL API #define number. 400 int mapSamplerToGlType(TSampler sampler) 402 if (! sampler.image) { 403 // a sampler... 404 switch (sampler.type) { 406 switch ((int)sampler.dim) { 408 switch ((int)sampler.shadow) { 409 case false: return sampler.arrayed ? GL_SAMPLER_1D_ARRAY : GL_SAMPLER_1D; 410 case true: return sampler.arrayed ? GL_SAMPLER_1D_ARRAY_SHADOW : GL_SAMPLER_1D_SHADOW; 413 switch ((int)sampler.ms) [all...] |
/external/deqp/framework/randomshaders/ |
rsgSamplers.hpp | 43 Sampler2D (const tcu::Texture2D* texture, const tcu::Sampler& sampler) 45 , m_sampler (sampler) 56 tcu::Sampler m_sampler; 68 SamplerCube (const tcu::TextureCube* texture, const tcu::Sampler& sampler) 70 , m_sampler (sampler) 81 tcu::Sampler m_sampler;
|
/external/v8/ |
Android.sampler.mk | 9 src/libsampler/sampler.cc
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
pp_program.c | 97 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;
|