Lines Matching defs:sampler
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)
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->type->sampler_dimensionality == GLSL_SAMPLER_DIM_RECT) {
1235 /* On gen6+, the sampler handles the rectangle coordinates
1243 if (c->key.tex.gl_clamp_mask[i] & (1 << sampler)) {
1269 if (c->key.tex.gl_clamp_mask[i] & (1 << sampler)) {
1286 int sampler = _mesa_get_sampler_uniform_value(ir->sampler, prog, &fp->Base);
1287 int texunit = fp->Base.SamplerUnits[sampler];
1293 * done before loading any values into MRFs for the sampler message since
1296 fs_reg coordinate = emit_texcoord(ir, sampler, texunit);
1349 inst->sampler = sampler;
1354 swizzle_result(ir, dst, sampler);
1362 fs_visitor::swizzle_result(ir_texture *ir, fs_reg orig_val, int sampler)
1371 assert(ir->sampler->type->sampler_shadow);
1372 } else if (c->key.tex.swizzles[sampler] != SWIZZLE_NOOP) {
1376 int swiz = GET_SWZ(c->key.tex.swizzles[sampler], i);
1386 r.reg_offset += GET_SWZ(c->key.tex.swizzles[sampler], i);