/external/mesa3d/src/gallium/drivers/r300/ |
r300_shader_semantics.h | 43 int fog; member in struct:r300_shader_semantics 55 info->fog = ATTR_UNUSED;
|
r300_vs.c | 79 vs_outputs->fog = i; 163 /* Fog coordinates. */ 164 if (outputs->fog != ATTR_UNUSED) { 165 c->code->outputs[outputs->fog] = reg++;
|
r300_state_derived.c | 117 /* Fog coordinates. */ 118 if (gen_count < 8 && vs_outputs->fog != ATTR_UNUSED) { 120 vs_outputs->fog); 496 /* Rasterize fog coordinates. */ 497 if (vs_outputs->fog != ATTR_UNUSED && tex_count < 8) { 498 /* Set up the fog coordinates in VAP. */ 507 if (fs_inputs->fog != ATTR_UNUSED) { 511 DBG(r300, DBG_RS, "r300: Rasterized fog written to FS.\n"); 513 DBG(r300, DBG_RS, "r300: Rasterized fog unused.\n"); 520 if (fs_inputs->fog != ATTR_UNUSED) [all...] |
r300_fs.c | 68 fs_inputs->fog = i; 137 if (inputs->fog != ATTR_UNUSED) { 138 allocate(mydata, inputs->fog, reg++);
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_context.h | 48 uint32_t fog; member in struct:nv04_context
|
nv04_state_raster.c | 221 /* Fog. */ 222 if (ctx->Fog.Enabled) { 224 nv04->fog = pack_rgba_f(MESA_FORMAT_ARGB8888, ctx->Fog.Color);
|
nv04_render.c | 109 PUSH_DATA (push, nv04->fog); 138 PUSH_DATA (push, nv04->fog);
|
/external/mesa3d/src/gallium/drivers/i915/ |
i915_state_derived.c | 62 boolean texCoords[I915_TEX_UNITS], colors[2], fog, needW, face; local 67 colors[0] = colors[1] = fog = needW = face = FALSE; 95 fog = TRUE; 137 /* fog coord, not fog blend factor */ 138 if (fog) {
|
/frameworks/native/opengl/libagl/ |
light.cpp | 96 c->fog.mode = GL_EXP; 97 c->fog.fog = fog_exp; 98 c->fog.density = 0x10000; 99 c->fog.end = 0x10000; 100 c->fog.invEndMinusStart = 0x10000; 121 return clampF(gglMulx((c->fog.end - ((z<0)?-z:z)), c->fog.invEndMinusStart)); 125 const float e = fixedToFloat(gglMulx(c->fog.density, ((z<0)?-z:z))); 130 const float e = fixedToFloat(gglMulx(c->fog.density, z)) [all...] |
primitives.cpp | 129 // The fog versions... 136 v->fog = c->fog.fog(c, v->eye.z); 147 v->fog = c->fog.fog(c, v->eye.z); 154 v->fog = c->fog.fog(c, v->eye.z) [all...] |
context.h | 142 GLfixed fog; member in struct:android::gl::vertex_t 253 // fog 262 GLfixed (*fog)(ogles_context_t* c, GLfixed z); member in struct:android::gl::fog_t 626 fog_t fog; member in struct:android::gl::ogles_context_t
|
array.cpp | 1041 nv->fog = gglMulAddx(t, s->fog - p->fog, p->fog, 28); [all...] |
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
radeon_maos_vbtmp.h | 45 GLfloat (*fog)[4]; 146 fog = VB->AttribPtr[_TNL_ATTRIB_FOG]->data; 149 fog = (GLfloat (*)[4])ctx->Current.Attrib[VERT_ATTRIB_FOG]; 170 STRIDE_4F(fog, start * fog_stride); 211 UNCLAMPED_FLOAT_TO_UBYTE(v[0].rgba.alpha, radeonComputeFogBlendFactor(ctx, fog[0][0])); 212 STRIDE_4F(fog, fog_stride);
|
radeon_context.h | 255 /* Fog 325 struct radeon_state_atom fog; member in struct:r100_hw_state
|
radeon_maos_arrays.c | 236 if (!rmesa->tcl.fog.buf)
|
radeon_state.c | 311 * Fog 323 if (!ctx->Fog.Enabled) 327 switch (ctx->Fog.Mode) { 344 if (!ctx->Fog.Enabled) 346 c.i = rmesa->hw.fog.cmd[FOG_C]; 347 d.i = rmesa->hw.fog.cmd[FOG_D]; 348 switch (ctx->Fog.Mode) { 351 /* While this is the opposite sign from the DDK, it makes the fog test 354 d.f = -ctx->Fog.Density; 358 d.f = -(ctx->Fog.Density * ctx->Fog.Density) [all...] |
radeon_state_init.c | 212 CHECK( fog_add4, ctx->Fog.Enabled, 4 ) 234 TCL_CHECK( tcl_eyespace_or_fog_add4, ctx->_NeedEyeCoords || ctx->Fog.Enabled, 4 ) 544 ALLOC_STATE( fog, fog_add4, FOG_STATE_SIZE, "FOG/fog", 1 ); 620 rmesa->hw.fog.cmd[FOG_CMD_0] = 649 rmesa->hw.fog.emit = vec_emit; 673 /* this bit unused for vertex fog */ [all...] |
radeon_ioctl.c | 95 insert_at_tail(&rmesa->radeon.hw.atomlist, &rmesa->hw.fog);
|
/external/mesa3d/src/mesa/main/ |
ffvertex_prog.c | 224 if (ctx->Fog.FogCoordinateSource == GL_FRAGMENT_DEPTH_EXT) { 226 key->fog_distance_mode = translate_fog_distance_mode(ctx->Fog.FogDistanceMode); 1312 struct ureg fog = register_output(p, VERT_RESULT_FOGC); local [all...] |
attrib.c | 40 #include "fog.h" 80 GLboolean Fog; 273 attr->Fog = ctx->Fog.Enabled; 343 memcpy( attr, &ctx->Fog, sizeof(struct gl_fog_attrib) ); 526 TEST_AND_UPDATE(ctx->Fog.Enabled, enable->Fog, GL_FOG); 1025 const struct gl_fog_attrib *fog; local [all...] |
/external/mesa3d/src/mesa/drivers/dri/r200/ |
r200_state.c | 372 * Fog 383 c.i = rmesa->hw.fog.cmd[FOG_C]; 384 d.i = rmesa->hw.fog.cmd[FOG_D]; 388 if (!ctx->Fog.Enabled) 392 switch (ctx->Fog.Mode) { 395 if (ctx->Fog.Start == ctx->Fog.End) { 400 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start) 453 GLuint fog = rmesa->hw.ctx.cmd[CTX_PP_FOG_COLOR]; local [all...] |
r200_context.h | 66 additional instr due to instr/attr, 3 for fog */ 401 /* Fog 509 struct radeon_state_atom fog; member in struct:r200_hw_state
|
r200_cmdbuf.c | 79 insert_at_tail_if( &rmesa->radeon.hw.atomlist, &rmesa->hw.fog );
|
/system/core/libpixelflinger/ |
pixelflinger.cpp | 284 c->state.fog.color[GGLFormat::ALPHA]= 0xFF; // unused 285 c->state.fog.color[GGLFormat::RED] = (r - (r>>8))>>8; 286 c->state.fog.color[GGLFormat::GREEN]= (g - (g>>8))>>8; 287 c->state.fog.color[GGLFormat::BLUE] = (b - (b>>8))>>8;
|
/system/core/libpixelflinger/codeflinger/ |
blending.cpp | 36 if (mInfo[component].fog) { 38 comment("fog"); 48 immed12_pre(GGL_OFFSETOF(state.fog.color[component]))); 53 // clamp fog factor (TODO: see if there is a way to guarantee
|