/external/mesa3d/src/mesa/main/ |
D | fog.c | 93 ctx->Fog._PackedMode = FOG_LINEAR; in _mesa_Fogfv() 96 ctx->Fog._PackedMode = FOG_EXP; in _mesa_Fogfv() 99 ctx->Fog._PackedMode = FOG_EXP2; in _mesa_Fogfv() 105 if (ctx->Fog.Mode == m) in _mesa_Fogfv() 108 ctx->Fog.Mode = m; in _mesa_Fogfv() 109 ctx->Fog._PackedEnabledMode = ctx->Fog.Enabled ? in _mesa_Fogfv() 110 ctx->Fog._PackedMode : FOG_NONE; in _mesa_Fogfv() 117 if (ctx->Fog.Density == *params) in _mesa_Fogfv() 120 ctx->Fog.Density = *params; in _mesa_Fogfv() 123 if (ctx->Fog.Start == *params) in _mesa_Fogfv() [all …]
|
D | hint.c | 55 if (ctx->Hint.Fog == mode) in _mesa_Hint() 58 ctx->Hint.Fog = mode; in _mesa_Hint() 156 ctx->Hint.Fog = GL_DONT_CARE; in _mesa_init_hint()
|
D | state.h | 80 if (ctx->Fog.ColorSumEnabled) in _mesa_need_secondary_color()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fog.c | 43 switch (ctx->Fog.Mode) { in _swrast_z_to_fogfactor() 45 if (ctx->Fog.Start == ctx->Fog.End) in _swrast_z_to_fogfactor() 48 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in _swrast_z_to_fogfactor() 49 f = (ctx->Fog.End - z) * d; in _swrast_z_to_fogfactor() 52 d = ctx->Fog.Density; in _swrast_z_to_fogfactor() 57 d = ctx->Fog.Density; in _swrast_z_to_fogfactor() 143 rFog = ctx->Fog.Color[RCOMP] * 255.0F; in _swrast_fog_rgba_span() 144 gFog = ctx->Fog.Color[GCOMP] * 255.0F; in _swrast_fog_rgba_span() 145 bFog = ctx->Fog.Color[BCOMP] * 255.0F; in _swrast_fog_rgba_span() 148 rFog = ctx->Fog.Color[RCOMP] * 65535.0F; in _swrast_fog_rgba_span() [all …]
|
D | s_context.c | 170 (ctx->Hint.Fog == GL_NICEST && in _swrast_update_fog_hint() 254 ctx->Fog.Enabled); in _swrast_update_fog_state() 281 GLboolean separateSpecular = ctx->Fog.ColorSumEnabled || in _swrast_update_specular_vertex_add() 515 if (ctx->Fog.ColorSumEnabled || in _swrast_update_active_attribs()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_fog.c | 98 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor() 102 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor() 104 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor() 107 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor() 112 d = ctx->Fog.Density; in radeonComputeFogBlendFactor() 117 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
|
D | r200_state.c | 391 if (!ctx->Fog.Enabled) in r200Fogfv() 395 switch (ctx->Fog.Mode) { in r200Fogfv() 398 if (ctx->Fog.Start == ctx->Fog.End) { in r200Fogfv() 403 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in r200Fogfv() 404 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in r200Fogfv() 410 d.f = -ctx->Fog.Density; in r200Fogfv() 415 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in r200Fogfv() 422 switch (ctx->Fog.Mode) { in r200Fogfv() 425 d.f = -ctx->Fog.Density; in r200Fogfv() 429 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in r200Fogfv() [all …]
|
D | r200_tcl.c | 408 if ( (ctx->Fog.FogCoordinateSource == GL_FOG_COORD) && ctx->Fog.Enabled ) { in r200_run_tcl_render() 562 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD )) { in transition_to_hwtnl()
|
/external/mesa3d/src/mesa/drivers/dri/radeon/ |
D | radeon_fog.c | 98 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor() 102 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor() 104 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor() 107 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor() 112 d = ctx->Fog.Density; in radeonComputeFogBlendFactor() 117 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
|
D | radeon_state.c | 324 if (!ctx->Fog.Enabled) in radeonFogfv() 328 switch (ctx->Fog.Mode) { in radeonFogfv() 345 if (!ctx->Fog.Enabled) in radeonFogfv() 349 switch (ctx->Fog.Mode) { in radeonFogfv() 355 d.f = -ctx->Fog.Density; in radeonFogfv() 359 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in radeonFogfv() 362 if (ctx->Fog.Start == ctx->Fog.End) { in radeonFogfv() 366 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv() 370 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv() 384 _mesa_unclamped_float_rgba_to_ubyte(col, ctx->Fog.Color ); in radeonFogfv() [all …]
|
D | radeon_maos_verts.c | 67 #define DO_FOG ((IND & RADEON_CP_VC_FRMT_PKSPEC) && ctx->Fog.Enabled && \ 68 (ctx->Fog.FogCoordinateSource == GL_FOG_COORD))
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_fog.c | 100 GLfloat end = ctx->Fog.End; in compute_fog_blend_factors() 110 switch (ctx->Fog.Mode) { in compute_fog_blend_factors() 112 if (ctx->Fog.Start == ctx->Fog.End) in compute_fog_blend_factors() 115 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in compute_fog_blend_factors() 123 d = ctx->Fog.Density; in compute_fog_blend_factors() 130 d = ctx->Fog.Density*ctx->Fog.Density; in compute_fog_blend_factors() 152 if (!ctx->Fog.Enabled) in run_fog_stage() 155 if (ctx->Fog.FogCoordinateSource == GL_FRAGMENT_DEPTH_EXT && !ctx->VertexProgram._Current) { in run_fog_stage()
|
D | t_context.c | 141 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_InvalidateState() 167 if (ctx->Fog.Enabled in _tnl_InvalidateState() 239 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_vertex_fog() 249 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_pixel_fog()
|
/external/mesa3d/src/mesa/program/ |
D | program_parse_extra.c | 100 if (state->option.Fog == OPTION_NONE) { in _mesa_ARBfp_parse_option() 101 state->option.Fog = fog_option; in _mesa_ARBfp_parse_option() 124 return state->option.Fog == fog_option ? 1 : 0; in _mesa_ARBfp_parse_option()
|
D | prog_statevars.c | 258 COPY_4V(value, ctx->Fog.Color); in fetch_state() 260 COPY_4V(value, ctx->Fog.ColorUnclamped); in fetch_state() 263 value[0] = ctx->Fog.Density; in fetch_state() 264 value[1] = ctx->Fog.Start; in fetch_state() 265 value[2] = ctx->Fog.End; in fetch_state() 266 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start); in fetch_state() 470 value[0] = (ctx->Fog.End == ctx->Fog.Start) in fetch_state() 471 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start)); in fetch_state() 472 value[1] = ctx->Fog.End * -value[0]; in fetch_state() 473 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */ in fetch_state() [all …]
|
D | arbprogparse.c | 137 if (state.option.Fog != OPTION_NONE) { in _mesa_parse_arb_fragment_program() 145 _mesa_append_fog_code(ctx, program, fog_modes[state.option.Fog], GL_TRUE); in _mesa_parse_arb_fragment_program()
|
D | program_parser.h | 209 unsigned Fog:2; member
|
/external/mesa3d/src/mesa/drivers/common/ |
D | driverfuncs.c | 250 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); in _mesa_init_driver_state() 254 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); in _mesa_init_driver_state() 266 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); in _mesa_init_driver_state() 268 GLfloat mode = (GLfloat) ctx->Fog.Mode; in _mesa_init_driver_state() 271 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); in _mesa_init_driver_state() 272 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); in _mesa_init_driver_state() 273 ctx->Driver.Fogfv(ctx, GL_FOG_END, &ctx->Fog.End); in _mesa_init_driver_state()
|
/external/swiftshader/src/Renderer/ |
D | Vertex.hpp | 38 Fog = 11, // x component enumerator 39 Pts = Fog, // y component
|
D | PixelProcessor.hpp | 165 struct Fog struct in sw::PixelProcessor 324 Fog fog;
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv04_state_raster.c | 224 if (ctx->Fog.Enabled) { in nv04_emit_blend() 226 nv04->fog = pack_rgba_f(MESA_FORMAT_B8G8R8A8_UNORM, ctx->Fog.Color); in nv04_emit_blend()
|
D | nv10_state_tnl.c | 107 struct gl_fog_attrib *f = &ctx->Fog; in nv10_get_fog_coeff() 137 struct gl_fog_attrib *f = &ctx->Fog; in nv10_emit_fog() 210 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ? in nv10_emit_light_model() 453 if (ctx->Light._NeedEyeCoords || ctx->Fog.Enabled || in nv10_emit_modelview()
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_pixel.c | 101 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_pixel.c | 98 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|
/external/angle/src/tests/gles1_conformance_tests/ |
D | PrimtestTests.cpp | 127 TEST_P(GLES1PrimtestTest, Fog) in TEST_P() argument
|