Searched refs:unit (Results 226 - 250 of 870) sorted by last modified time

1234567891011>>

/external/mesa3d/src/mesa/main/
H A Dattrib.c630 /* texture unit enables */
681 const struct gl_texture_unit *unit = &texstate->Texture.Unit[u]; local
685 _mesa_set_enable(ctx, GL_TEXTURE_1D, !!(unit->Enabled & TEXTURE_1D_BIT));
686 _mesa_set_enable(ctx, GL_TEXTURE_2D, !!(unit->Enabled & TEXTURE_2D_BIT));
687 _mesa_set_enable(ctx, GL_TEXTURE_3D, !!(unit->Enabled & TEXTURE_3D_BIT));
690 !!(unit->Enabled & TEXTURE_CUBE_BIT));
694 !!(unit->Enabled & TEXTURE_RECT_BIT));
698 !!(unit->Enabled & TEXTURE_1D_ARRAY_BIT));
700 !!(unit->Enabled & TEXTURE_2D_ARRAY_BIT));
703 _mesa_TexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, unit
[all...]
H A Ddlist.c7352 save_BindSampler(GLuint unit, GLuint sampler) argument
7359 n[1].ui = unit;
7363 CALL_BindSampler(ctx->Exec, (unit, sampler));
H A Dff_fragment_shader.cpp129 } unit[MAX_TEXTURE_UNITS]; member in struct:state_key
441 key->unit[i].enabled = 1;
446 key->unit[i].source_index =
449 key->unit[i].shadow =
454 key->unit[i].NumArgsRGB = comb->_NumArgsRGB;
455 key->unit[i].NumArgsA = comb->_NumArgsA;
457 key->unit[i].ModeRGB =
459 key->unit[i].ModeA =
462 key->unit[i].ScaleShiftRGB = comb->ScaleShiftRGB;
463 key->unit[
567 get_source(struct texenv_fragment_program *p, GLuint src, GLuint unit) argument
618 emit_combine_source(struct texenv_fragment_program *p, GLuint unit, GLuint source, GLuint operand) argument
702 emit_combine(struct texenv_fragment_program *p, GLuint unit, GLuint nr, GLuint mode, const struct mode_opt *opt) argument
783 emit_texenv(struct texenv_fragment_program *p, GLuint unit) argument
1042 load_texenv_source(struct texenv_fragment_program *p, GLuint src, GLuint unit) argument
1220 GLuint unit; local
1289 unsigned int unit; local
[all...]
H A Dffvertex_prog.c86 } unit[NUM_UNITS]; member in struct:state_key
191 key->unit[i].light_enabled = 1;
194 key->unit[i].light_eyepos3_is_zero = 1;
197 key->unit[i].light_spotcutoff_is_180 = 1;
202 key->unit[i].light_attenuated = 1;
246 key->unit[i].texunit_really_enabled = 1;
250 key->unit[i].coord_replace = 1;
253 key->unit[i].texmat_enabled = 1;
256 key->unit[i].texgen_enabled = 1;
258 key->unit[
[all...]
H A Dget.c51 * unit, or maybe it's a computed value. So we need to also track
1505 GLuint unit, *p; local
1533 unit = ctx->Texture.CurrentUnit;
1534 v->value_float_4[0] = ctx->Current.RasterTexCoords[unit][0];
1535 v->value_float_4[1] = ctx->Current.RasterTexCoords[unit][1];
1536 v->value_float_4[2] = ctx->Current.RasterTexCoords[unit][2];
1537 v->value_float_4[3] = ctx->Current.RasterTexCoords[unit][3];
1541 unit = ctx->Texture.CurrentUnit;
1542 v->value_float_4[0] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + unit][0];
1543 v->value_float_4[1] = ctx->Current.Attrib[VERT_ATTRIB_TEX0 + unit][
2000 struct gl_texture_unit *unit; local
[all...]
H A Dmtypes.h1361 /** Tex-gen enabled for texture unit? */
1362 #define ENABLE_TEXGEN(unit) (1 << (unit))
1364 /** Non-identity texture matrix for texture unit? */
1365 #define ENABLE_TEXMAT(unit) (1 << (unit))
1381 * Texture unit state. Contains enable flags, texture environment/function/
1953 /** Map from sampler unit to texture unit (set by glUniform1i()) */
2385 * Map from sampler unit t
[all...]
H A Dsamplerobj.c245 _mesa_BindSampler(GLuint unit, GLuint sampler) argument
250 if (unit >= ctx->Const.MaxCombinedTextureImageUnits) {
251 _mesa_error(ctx, GL_INVALID_VALUE, "glBindSampler(unit %u)", unit);
270 if (ctx->Texture.Unit[unit].Sampler != sampObj) {
275 _mesa_reference_sampler_object(ctx, &ctx->Texture.Unit[unit].Sampler,
H A Dsamplerobj.h32 _mesa_get_samplerobj(struct gl_context *ctx, GLuint unit) argument
34 if (ctx->Texture.Unit[unit].Sampler)
35 return ctx->Texture.Unit[unit].Sampler;
36 else if (ctx->Texture.Unit[unit]._Current)
37 return &ctx->Texture.Unit[unit]._Current->Sampler;
83 _mesa_BindSampler(GLuint unit, GLuint sampler);
H A Dtexobj.c1041 struct gl_texture_unit *unit = &ctx->Texture.Unit[u]; local
1043 if (texObj == unit->CurrentTex[tex]) {
1044 _mesa_reference_texobj(&unit->CurrentTex[tex],
1046 ASSERT(unit->CurrentTex[tex]);
1063 * texture unit, unbind the texture first. Decrement the reference
H A Dtexstate.c79 /* per-unit state */
122 _mesa_print_texunit_state( struct gl_context *ctx, GLuint unit )
124 const struct gl_texture_unit *texUnit = ctx->Texture.Unit + unit;
125 printf("Texture Unit %d\n", unit);
160 * texture unit.
386 * Examine texture unit's combine/env state to update derived state.
495 GLuint unit; local
531 * Update texture unit state.
533 for (unit = 0; unit < ct
[all...]
H A Dtexstate.h40 * Return pointer to current texture unit.
41 * This the texture unit set by glActiveTexture(), not glClientActiveTexture().
55 _mesa_print_texunit_state( struct gl_context *ctx, GLuint unit );
H A Duniform_query.cpp694 * "Setting a sampler's value to i selects texture image unit number
715 /* check that the sampler (tex unit index) is legal */
718 "glUniform1i(invalid sampler/tex unit index for "
1058 const unsigned unit = storage->storage[j].i; local
1061 * unit must be an exact match. Page 74 (page 89 of the PDF) of the
1065 * types pointing to the same texture image unit within a program
1068 if (unit_types[unit] == NULL) {
1069 unit_types[unit] = t;
1070 } else if (unit_types[unit] != t) {
1072 "Texture unit
[all...]
H A Duniforms.c53 * particular texture unit. We know the sampler's texture target
54 * (1D/2D/3D/etc) from compile time but the sampler's texture unit is
59 * Each value of TexturesUsed[unit] is one of zero, TEXTURE_1D_INDEX,
74 GLuint unit = shProg->SamplerUnits[s]; local
76 assert(unit < Elements(prog->TexturesUsed));
78 prog->TexturesUsed[unit] |= (1 << tgt);
H A Dvarray.c390 const GLuint unit = ctx->Array.ActiveTexture; local
393 update_array(ctx, "glTexCoordPointer", VERT_ATTRIB_TEX(unit),
/external/llvm/unittests/
H A DMakefile.unittest10 # This file is included by all of the unit test makefiles.
28 # Set up variables for building a unit test.
58 $(Echo) Linking $(BuildMode) unit test $(TESTNAME) $(StripWarnMsg)
/external/ltrace/sysdeps/linux-gnu/metag/
H A Dtrace.c38 /* unit codes */
109 /* 2-bit base unit (BU) mapping. */
118 get_regval_from_unit(enum metag_unitnum unit, unsigned int reg, argument
126 if ((unit == METAG_UNIT_A0) || (unit == METAG_UNIT_A1)) {
129 } else if ((unit == METAG_UNIT_D0) || (unit == METAG_UNIT_D1)) {
134 switch(unit) {
145 assert(unit != unit);
163 unsigned int unit = 0, reg; local
[all...]
/external/llvm/test/
H A DMakefile152 @$(ECHOPATH) s=@LLVM_SOURCE_DIR@=$(LLVM_SRC_ROOT)=g > unit.tmp
153 @$(ECHOPATH) s=@LLVM_BINARY_DIR@=$(LLVM_OBJ_ROOT)=g >> unit.tmp
154 @$(ECHOPATH) s=@LLVM_TOOLS_DIR@=$(ToolDir)=g >> unit.tmp
155 @$(ECHOPATH) s=@LLVM_BUILD_MODE@=$(BuildMode)=g >> unit.tmp
156 @$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> unit.tmp
157 @$(ECHOPATH) s=@SHLIBDIR@=$(SharedLibDir)=g >> unit.tmp
158 @$(ECHOPATH) s=@HOST_OS@=$(HOST_OS)=g >> unit.tmp
160 @sed -f unit.tmp $(PROJ_SRC_DIR)/Unit/lit.site.cfg.in > $@
161 @-rm -f unit.tmp
/external/llvm/test/Bindings/Ocaml/
H A Dipo_opts.ml21 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dirreader.ml18 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dlinker.ml19 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dpassmgr_builder.ml19 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dscalar_opts.ml20 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dtarget.ml23 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dvectorize_opts.ml20 (* Tiny unit test framework - really just to help find which line is busted *)
H A Dvmcore.ml21 (* Tiny unit test framework - really just to help find which line is busted *)

Completed in 274 milliseconds

1234567891011>>