/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_eu_emit.c | 661 GLuint sampler, 677 insn->bits3.sampler_gen7.sampler = sampler; 682 insn->bits3.sampler_gen5.sampler = sampler; 687 insn->bits3.sampler_g4x.sampler = sampler; 690 insn->bits3.sampler.binding_table_index = binding_table_index; 691 insn->bits3.sampler.sampler 658 brw_set_sampler_message(struct brw_compile *p, struct brw_instruction *insn, GLuint binding_table_index, GLuint sampler, GLuint msg_type, GLuint response_length, GLuint msg_length, GLuint header_present, GLuint simd_mode, GLuint return_format) argument 2297 brw_SAMPLE(struct brw_compile *p, struct brw_reg dest, GLuint msg_reg_nr, struct brw_reg src0, GLuint binding_table_index, GLuint sampler, GLuint writemask, GLuint msg_type, GLuint response_length, GLuint msg_length, GLuint header_present, GLuint simd_mode, GLuint return_format) argument [all...] |
H A D | brw_fs_visitor.cpp | 41 #include "program/sampler.h" 766 /* gen4's SIMD8 sampler always has the slots for u,v,r present. */ 789 /* gen4's SIMD8 sampler always has the slots for u,v,r present. */ 910 /* gen5's sampler has slots for u, v, r, array index, then optional 1170 fs_visitor::emit_texcoord(ir_texture *ir, int sampler, int texunit) argument 1188 if (ir->sampler->type->sampler_dimensionality == GLSL_SAMPLER_DIM_RECT && 1190 (intel->gen >= 6 && (c->key.tex.gl_clamp_mask[0] & (1 << sampler) || 1191 c->key.tex.gl_clamp_mask[1] & (1 << sampler))))) { 1225 ir->sampler->type->sampler_dimensionality == GLSL_SAMPLER_DIM_RECT) { 1234 } else if (ir->sampler 1286 int sampler = _mesa_get_sampler_uniform_value(ir->sampler, prog, &fp->Base); local 1362 swizzle_result(ir_texture *ir, fs_reg orig_val, int sampler) argument [all...] |
H A D | brw_wm_emit.c | 1042 GLuint sampler, 1092 /* Pre-Ironlake, the 8-wide sampler always took u,v,r. */ 1109 if (c->key.tex.gl_clamp_mask[i] & (1 << sampler)) 1155 SURF_INDEX_TEXTURE(sampler), 1156 sampler, 1173 GLuint sampler) 1235 SURF_INDEX_TEXTURE(sampler), 1236 sampler, 1036 emit_tex(struct brw_wm_compile *c, struct brw_reg *dst, GLuint dst_flags, struct brw_reg *arg, struct brw_reg depth_payload, GLuint tex_idx, GLuint sampler, bool shadow) argument 1167 emit_txb(struct brw_wm_compile *c, struct brw_reg *dst, GLuint dst_flags, struct brw_reg *arg, struct brw_reg depth_payload, GLuint tex_idx, GLuint sampler) argument
|
H A D | brw_wm_surface_state.c | 777 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local 797 sampler->sRGBDecode) << 861 * a separate cache and is just the sampler cache.
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_cb_drawpixels.c | 278 p->SamplersUsed = 0x1; /* sampler 0 (bit 0) is used */ 746 struct pipe_sampler_state sampler; local 747 memset(&sampler, 0, sizeof(sampler)); 748 sampler.wrap_s = PIPE_TEX_WRAP_CLAMP; 749 sampler.wrap_t = PIPE_TEX_WRAP_CLAMP; 750 sampler.wrap_r = PIPE_TEX_WRAP_CLAMP; 751 sampler.min_img_filter = PIPE_TEX_FILTER_NEAREST; 752 sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; 753 sampler [all...] |
/external/skia/src/effects/ |
H A D | SkMatrixConvolutionImageFilter.cpp | 445 const GrGLShaderBuilder::TextureSampler& sampler, 463 builder->fsAppendTextureLookup(sampler, coord); 444 appendTextureLookup(GrGLShaderBuilder* builder, const GrGLShaderBuilder::TextureSampler& sampler, const char* coord, const char* bounds, SkMatrixConvolutionImageFilter::TileMode tileMode) argument
|
/external/chromium_org/third_party/angle/src/libGLESv2/ |
H A D | Texture.cpp | 263 void Texture::getSamplerState(SamplerState *sampler) argument 265 *sampler = mSamplerState; 270 sampler->baseLevel = topLevel + mSamplerState.baseLevel;
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/draw/ |
H A D | draw_llvm.c | 440 struct lp_build_sampler_soa *sampler = 0; local 447 sampler = draw_sampler; 458 sampler, 1085 struct lp_build_sampler_soa *sampler = 0; local 1179 sampler = draw_llvm_sampler_soa_create( 1256 sampler, 1301 sampler->destroy(sampler); 1317 struct lp_sampler_static_state *sampler; local 1340 * sampler arra [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_sample.c | 90 * Initialize lp_sampler_static_state object with the gallium sampler 97 const struct pipe_sampler_state *sampler) 103 if (!sampler || !view || !view->texture) 109 * We don't copy sampler state over unless it is actually enabled, to avoid 110 * spurious recompiles, as the sampler static state is part of the shader 131 state->wrap_s = sampler->wrap_s; 132 state->wrap_t = sampler->wrap_t; 133 state->wrap_r = sampler->wrap_r; 134 state->min_img_filter = sampler->min_img_filter; 135 state->mag_img_filter = sampler 95 lp_sampler_static_state(struct lp_sampler_static_state *state, const struct pipe_sampler_view *view, const struct pipe_sampler_state *sampler) argument [all...] |
H A D | lp_bld_tgsi_soa.c | 1155 if (!bld->sampler) { 1156 _debug_printf("warning: found texture instruction but no sampler generator supplied\n"); 1288 bld->sampler->emit_fetch_texel(bld->sampler, 1352 if (!bld->sampler) { 1353 _debug_printf("warning: found texture query instruction but no sampler generator supplied\n"); 1364 bld->sampler->emit_size_query(bld->sampler, 2061 struct lp_build_sampler_soa *sampler, 2085 bld.sampler 2052 lp_build_tgsi_soa(struct gallivm_state *gallivm, const struct tgsi_token *tokens, struct lp_type type, struct lp_build_mask_context *mask, LLVMValueRef consts_ptr, const struct lp_bld_tgsi_system_values *system_values, const LLVMValueRef *pos, const LLVMValueRef (*inputs)[TGSI_NUM_CHANNELS], LLVMValueRef (*outputs)[TGSI_NUM_CHANNELS], struct lp_build_sampler_soa *sampler, const struct tgsi_shader_info *info) argument [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_exec.c | 1717 fetch_texel( struct tgsi_sampler *sampler, argument 1731 sampler->get_samples(sampler, s->f, t->f, p->f, c0->f, control, rgba); 1998 struct tgsi_sampler *sampler; local 2047 sampler = mach->Samplers[unit]; 2048 sampler->get_texel(sampler, r[0].i, r[1].i, r[2].i, r[3].i, 2069 struct tgsi_sampler *sampler; local 2077 sampler = mach->Samplers[unit]; 2079 sampler [all...] |
H A D | tgsi_ureg.c | 141 struct ureg_src sampler[PIPE_MAX_SAMPLERS]; member in struct:ureg_program 603 /* Allocate a new sampler. 611 if (ureg->sampler[i].Index == nr) 612 return ureg->sampler[i]; 615 ureg->sampler[i] = ureg_src_register( TGSI_FILE_SAMPLER, nr ); 617 return ureg->sampler[i]; 621 return ureg->sampler[0]; 625 * Allocate a new shader sampler view. 1499 ureg->sampler[i].Index, 1 );
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_gen_mipmap.c | 65 struct pipe_sampler_state sampler; member in struct:gen_mipmap_state 1295 /* sampler state */ 1296 memset(&ctx->sampler, 0, sizeof(ctx->sampler)); 1297 ctx->sampler.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE; 1298 ctx->sampler.wrap_t = PIPE_TEX_WRAP_CLAMP_TO_EDGE; 1299 ctx->sampler.wrap_r = PIPE_TEX_WRAP_CLAMP_TO_EDGE; 1300 ctx->sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NEAREST; 1301 ctx->sampler.normalized_coords = 1; 1507 * \param psv the sampler vie [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/i915/ |
H A D | i915_context.h | 154 /* texture sampler state */ 155 unsigned sampler[I915_TEX_UNITS][3]; member in struct:i915_state 232 const struct i915_sampler_state *sampler[PIPE_MAX_SAMPLERS]; member in struct:i915_context 300 unsigned num, void **sampler);
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/ |
H A D | r300_state.c | 1330 struct r300_sampler_state* sampler = CALLOC_STRUCT(r300_sampler_state); local 1334 sampler->state = *state; 1339 if (sampler->state.min_img_filter == PIPE_TEX_FILTER_NEAREST || 1340 sampler->state.mag_img_filter == PIPE_TEX_FILTER_NEAREST) { 1342 if (sampler->state.wrap_s == PIPE_TEX_WRAP_CLAMP) 1343 sampler->state.wrap_s = PIPE_TEX_WRAP_CLAMP_TO_EDGE; 1344 else if (sampler->state.wrap_s == PIPE_TEX_WRAP_MIRROR_CLAMP) 1345 sampler->state.wrap_s = PIPE_TEX_WRAP_MIRROR_CLAMP_TO_EDGE; 1348 if (sampler->state.wrap_t == PIPE_TEX_WRAP_CLAMP) 1349 sampler [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/ |
H A D | svga_context.h | 201 const struct svga_sampler_state *sampler[PIPE_MAX_SAMPLERS]; member in struct:svga_state
|
H A D | svga_tgsi_insn.c | 1452 struct src_register sampler; local 1478 sampler = translate_src_register( emit, &insn->Src[1] ); 1480 if (emit->key.fkey.tex[sampler.base.num].unnormalized || 1512 if (emit->key.fkey.tex[sampler.base.num].unnormalized) { 1513 struct src_register wh = get_tex_dimensions( emit, sampler.base.num ); 1523 return submit_op2( emit, inst, dst, texcoord, sampler ); 1539 struct src_register sampler; local 1544 sampler = translate_src_register( emit, &insn->Src[3] ); 1557 return submit_op4( emit, inst, dst, texcoord, sampler, ddx, ddy );
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/d3d1x/dxgi/src/ |
H A D | dxgi_native.cpp | 737 void* sampler[2]; member in struct:dxgi_blitter 789 sampler[stretch] = pipe->create_sampler_state(pipe, &sampler_state); 838 pipe->bind_fragment_sampler_states(pipe, 1, &sampler[stretch]); 862 pipe->delete_sampler_state(pipe, sampler[0]); 863 pipe->delete_sampler_state(pipe, sampler[1]);
|
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vega/ |
H A D | renderer.c | 411 * Set renderer sampler and view states. 419 struct pipe_sampler_state sampler; local 424 memset(&sampler, 0, sizeof(sampler)); 426 sampler.min_img_filter = tex_filter; 427 sampler.mag_img_filter = tex_filter; 428 sampler.min_mip_filter = PIPE_TEX_MIPFILTER_NONE; 430 sampler.wrap_s = tex_wrap; 431 sampler.wrap_t = tex_wrap; 432 sampler [all...] |
/external/chromium_org/third_party/mesa/src/src/glsl/ |
H A D | ir.h | 1353 * (tex <type> <sampler> <coordinate> 0 1 ( )) 1354 * (txb <type> <sampler> <coordinate> 0 1 ( ) <bias>) 1355 * (txl <type> <sampler> <coordinate> 0 1 ( ) <lod>) 1356 * (txd <type> <sampler> <coordinate> 0 1 ( ) (dPdx dPdy)) 1357 * (txf <type> <sampler> <coordinate> 0 <lod>) 1358 * (txs <type> <sampler> <lod>) 1385 /** Set the sampler and type. */ 1386 void set_sampler(ir_dereference *sampler, const glsl_type *type); 1396 ir_dereference *sampler; member in class:ir_texture
|
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
H A D | brw_vec4_visitor.cpp | 28 #include "program/sampler.h" 514 /* The sampler takes up a slot, but we don't use any values from it. */ 1835 int sampler = _mesa_get_sampler_uniform_value(ir->sampler, prog, &vp->Base); local 1841 * done before loading any values into MRFs for the sampler message since 1906 inst->sampler = sampler; 2008 swizzle_result(ir, src_reg(inst->dst), sampler); 2012 vec4_visitor::swizzle_result(ir_texture *ir, src_reg orig_val, int sampler) argument 2014 int s = c->key.tex.swizzles[sampler]; [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | ff_fragment_shader.cpp | 1009 ir_variable *sampler = new(p->mem_ctx) ir_variable(sampler_type, local 1012 p->top_instructions->push_head(sampler); 1014 /* Set the texture unit for this sampler. The linker will pick this value 1020 sampler->constant_value = new(p->mem_ctx) ir_constant(int(unit)); 1022 deref = new(p->mem_ctx) ir_dereference_variable(sampler); 1353 /* Set the sampler uniforms, and relink to get them into the linked
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
H A D | ir_to_mesa.cpp | 58 #include "program/sampler.h" 172 int sampler; /**< sampler index */ member in class:ir_to_mesa_instruction 2013 /* Pretend to be TXL so the sampler, coordinate, lod are available */ 2028 const glsl_type *sampler_type = ir->sampler->type; 2116 inst->sampler = _mesa_get_sampler_uniform_value(ir->sampler, 2430 params->ParameterValues[index + j][0].f = storage->sampler + j; 2830 mesa_inst->TexSrcUnit = inst->sampler;
|
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkBlurMaskFilter.cpp | 628 const GrGLShaderBuilder::TextureSampler& sampler, 638 builder->fsAppendTextureLookup(sampler, "vec2(coord,0.5)"); 627 OutputRectBlurProfileLookup(GrGLShaderBuilder* builder, const GrGLShaderBuilder::TextureSampler& sampler, const char *output, const char *profileSize, const char *loc, const char *blurred_width, const char *sharp_width) argument
|
/external/chromium_org/third_party/skia/src/gpu/gl/ |
H A D | GrGLShaderBuilder.cpp | 363 const GrGLShaderBuilder::TextureSampler& sampler, 368 this->getUniformCStr(sampler.samplerUniform()), 370 sampler.configComponentMask(), 371 sampler.swizzle(), 375 void GrGLShaderBuilder::fsAppendTextureLookup(const GrGLShaderBuilder::TextureSampler& sampler, argument 378 this->appendTextureLookup(&fFSCode, sampler, coordName, varyingType); 383 const GrGLShaderBuilder::TextureSampler& sampler, 387 this->appendTextureLookup(&lookup, sampler, coordName, varyingType); 362 appendTextureLookup(SkString* out, const GrGLShaderBuilder::TextureSampler& sampler, const char* coordName, GrSLType varyingType) const argument 381 fsAppendTextureLookupAndModulate( const char* modulation, const GrGLShaderBuilder::TextureSampler& sampler, const char* coordName, GrSLType varyingType) argument
|