Searched defs:sampler (Results 176 - 200 of 308) sorted by last modified time

1234567891011>>

/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/
H A Di915_texstate.c143 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local
188 maxlod = MIN2(sampler->MaxLod, tObj->_MaxLevel - tObj->BaseLevel);
199 switch (sampler->MinFilter) {
228 if (sampler->MaxAnisotropy > 1.0) {
231 if (sampler->MaxAnisotropy > 2.0)
237 switch (sampler->MagFilter) {
249 lodbias = (int) ((tUnit->LodBias + sampler->LodBias) * 16.0);
265 if (sampler->CompareMode == GL_COMPARE_R_TO_TEXTURE_ARB &&
272 intel_translate_shadow_compare_func(sampler->CompareFunc));
285 GLenum ws = sampler
[all...]
H A Dintel_tex_validate.c21 struct gl_sampler_object *sampler)
25 if (sampler->MinFilter == GL_NEAREST ||
26 sampler->MinFilter == GL_LINEAR) {
41 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local
57 intel_update_max_level(intelObj, sampler);
20 intel_update_max_level(struct intel_texture_object *intelObj, struct gl_sampler_object *sampler) argument
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_context.h464 /** Number of texture sampler units */
891 } sampler; member in struct:brw_context
973 /** offsets in the batch to sampler default colors (texture border color)
H A Dbrw_eu_emit.c661 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 Dbrw_fs.h43 #include "program/sampler.h"
168 int sampler; member in class:fs_inst
215 void swizzle_result(ir_texture *ir, fs_reg orig_val, int sampler);
309 fs_reg emit_texcoord(ir_texture *ir, int sampler, int texunit);
H A Dbrw_fs_visitor.cpp41 #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 Dbrw_structs.h1305 GLuint sampler:4; member in struct:brw_instruction::__anon13435::__anon13446
1313 } sampler; member in union:brw_instruction::__anon13435
1318 GLuint sampler:4; member in struct:brw_instruction::__anon13435::__anon13447
1330 GLuint sampler:4; member in struct:brw_instruction::__anon13435::__anon13448
1343 GLuint sampler:4; member in struct:brw_instruction::__anon13435::__anon13449
H A Dbrw_vec4.h180 int sampler; member in class:brw::vec4_instruction
411 void swizzle_result(ir_texture *ir, src_reg orig_val, int sampler);
H A Dbrw_vec4_visitor.cpp28 #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...]
H A Dbrw_wm.c453 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit_id); local
471 if (sampler->MinFilter != GL_NEAREST &&
472 sampler->MagFilter != GL_NEAREST) {
473 if (sampler->WrapS == GL_CLAMP)
475 if (sampler->WrapT == GL_CLAMP)
477 if (sampler->WrapR == GL_CLAMP)
H A Dbrw_wm_emit.c1042 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 Dbrw_wm_sampler_state.c82 upload_default_color(struct brw_context *brw, struct gl_sampler_object *sampler, argument
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 stat
159 brw_update_sampler_state(struct brw_context *brw, int unit, int ss_index, struct brw_sampler_state *sampler) argument
[all...]
H A Dbrw_wm_surface_state.c777 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local
797 sampler->sRGBDecode) <<
861 * a separate cache and is just the sampler cache.
H A Dgen6_blorp.cpp141 * If this isn't programmed to a real bound, the sampler border color
510 struct brw_sampler_state *sampler = (struct brw_sampler_state *) local
514 memset(sampler, 0, sizeof(*sampler));
516 sampler->ss0.min_filter = BRW_MAPFILTER_LINEAR;
517 sampler->ss0.mip_filter = BRW_MIPFILTER_NONE;
518 sampler->ss0.mag_filter = BRW_MAPFILTER_LINEAR;
520 sampler->ss1.r_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
521 sampler->ss1.s_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
522 sampler
[all...]
H A Dgen7_blorp.cpp230 struct gen7_sampler_state *sampler = (struct gen7_sampler_state *) local
234 memset(sampler, 0, sizeof(*sampler));
236 sampler->ss0.min_filter = BRW_MAPFILTER_LINEAR;
237 sampler->ss0.mip_filter = BRW_MIPFILTER_NONE;
238 sampler->ss0.mag_filter = BRW_MAPFILTER_LINEAR;
240 sampler->ss3.r_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
241 sampler->ss3.s_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
242 sampler->ss3.t_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
244 // sampler
[all...]
H A Dgen7_sampler_state.c33 * 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
36 gen7_update_sampler_state(struct brw_context *brw, int unit, int ss_index, struct gen7_sampler_state *sampler) argument
[all...]
H A Dgen7_wm_surface_state.c265 * a separate cache and is just the sampler cache.
302 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local
330 sampler->sRGBDecode);
440 * a separate cache and is just the sampler cache.
H A Dintel_tex_validate.c21 struct gl_sampler_object *sampler)
25 if (sampler->MinFilter == GL_NEAREST ||
26 sampler->MinFilter == GL_LINEAR) {
41 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local
57 intel_update_max_level(intelObj, sampler);
20 intel_update_max_level(struct intel_texture_object *intelObj, struct gl_sampler_object *sampler) argument
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/
H A Dintel_tex_validate.c21 struct gl_sampler_object *sampler)
25 if (sampler->MinFilter == GL_NEAREST ||
26 sampler->MinFilter == GL_LINEAR) {
41 struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit); local
57 intel_update_max_level(intelObj, sampler);
20 intel_update_max_level(struct intel_texture_object *intelObj, struct gl_sampler_object *sampler) argument
/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Ddlist.c7352 save_BindSampler(GLuint unit, GLuint sampler) argument
7360 n[2].ui = sampler;
7363 CALL_BindSampler(ctx->Exec, (unit, sampler));
7368 save_SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *params) argument
7375 n[1].ui = sampler;
7388 CALL_SamplerParameteriv(ctx->Exec, (sampler, pname, params));
7393 save_SamplerParameteri(GLuint sampler, GLenum pname, GLint param) argument
7395 save_SamplerParameteriv(sampler, pname, &param);
7399 save_SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *params) argument
7406 n[1].ui = sampler;
7424 save_SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) argument
7430 save_SamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *params) argument
7455 save_SamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *params) argument
[all...]
H A Dff_fragment_shader.cpp1009 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
H A Dsamplerobj.c65 /* Unreference the old sampler */
89 /* reference new sampler */
92 /* this sampler's being deleted (look just above) */
94 _mesa_problem(NULL, "referencing deleted sampler object");
111 * Initialize the fields of the given sampler object.
184 /* Insert the ID and pointer to new sampler object into hash table */
228 _mesa_IsSampler(GLuint sampler) argument
235 if (sampler == 0)
238 sampObj = _mesa_lookup_samplerobj(ctx, sampler);
245 _mesa_BindSampler(GLuint unit, GLuint sampler) argument
603 _mesa_SamplerParameteri(GLuint sampler, GLenum pname, GLint param) argument
688 _mesa_SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) argument
774 _mesa_SamplerParameteriv(GLuint sampler, GLenum pname, const GLint *params) argument
866 _mesa_SamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *params) argument
953 _mesa_SamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *params) argument
1039 _mesa_SamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *params) argument
1125 _mesa_GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params) argument
1203 _mesa_GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params) argument
1281 _mesa_GetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params) argument
1360 _mesa_GetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params) argument
[all...]
H A Dtexobj.h92 /** Is the texture "complete" with respect to the given sampler state? */
95 const struct gl_sampler_object *sampler)
98 (sampler->MagFilter != GL_NEAREST ||
99 (sampler->MinFilter != GL_NEAREST &&
100 sampler->MinFilter != GL_NEAREST_MIPMAP_NEAREST))) {
105 if (_mesa_is_mipmap_filter(sampler))
94 _mesa_is_texture_complete(const struct gl_texture_object *texObj, const struct gl_sampler_object *sampler) argument
H A Dtexstate.c576 struct gl_sampler_object *sampler = texUnit->Sampler ? local
579 if (!_mesa_is_texture_complete(texObj, sampler)) {
582 if (_mesa_is_texture_complete(texObj, sampler)) {
/external/chromium_org/third_party/mesa/src/src/mesa/program/
H A Dir_to_mesa.cpp58 #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;

Completed in 1142 milliseconds

1234567891011>>