/external/mesa3d/src/mesa/main/ |
D | fog.c | 87 if (ctx->Fog.End == ctx->Fog.Start) in update_fog_scale() 88 ctx->Fog._Scale = 1.0f; in update_fog_scale() 90 ctx->Fog._Scale = 1.0f / (ctx->Fog.End - ctx->Fog.Start); in update_fog_scale() 105 ctx->Fog._PackedMode = FOG_LINEAR; in _mesa_Fogfv() 108 ctx->Fog._PackedMode = FOG_EXP; in _mesa_Fogfv() 111 ctx->Fog._PackedMode = FOG_EXP2; in _mesa_Fogfv() 117 if (ctx->Fog.Mode == m) in _mesa_Fogfv() 120 ctx->Fog.Mode = m; in _mesa_Fogfv() 121 ctx->Fog._PackedEnabledMode = ctx->Fog.Enabled ? in _mesa_Fogfv() 122 ctx->Fog._PackedMode : FOG_NONE; in _mesa_Fogfv() [all …]
|
D | hint.c | 55 if (ctx->Hint.Fog == mode) in _mesa_Hint() 58 ctx->Hint.Fog = mode; in _mesa_Hint() 145 ctx->Hint.Fog = GL_DONT_CARE; in _mesa_init_hint()
|
D | enable.c | 418 if (ctx->Fog.Enabled == state) in _mesa_set_enable() 421 ctx->Fog.Enabled = state; in _mesa_set_enable() 422 ctx->Fog._PackedEnabledMode = state ? ctx->Fog._PackedMode : FOG_NONE; in _mesa_set_enable() 837 if (ctx->Fog.ColorSumEnabled == state) in _mesa_set_enable() 840 ctx->Fog.ColorSumEnabled = state; in _mesa_set_enable() 1359 return ctx->Fog.Enabled; in _mesa_IsEnabled() 1587 return ctx->Fog.ColorSumEnabled; in _mesa_IsEnabled()
|
D | state.h | 66 if (ctx->Fog.ColorSumEnabled) in _mesa_need_secondary_color()
|
/external/mesa3d/src/mesa/swrast/ |
D | s_fog.c | 42 switch (ctx->Fog.Mode) { in _swrast_z_to_fogfactor() 44 if (ctx->Fog.Start == ctx->Fog.End) in _swrast_z_to_fogfactor() 47 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in _swrast_z_to_fogfactor() 48 f = (ctx->Fog.End - z) * d; in _swrast_z_to_fogfactor() 51 d = ctx->Fog.Density; in _swrast_z_to_fogfactor() 56 d = ctx->Fog.Density; in _swrast_z_to_fogfactor() 142 rFog = ctx->Fog.Color[RCOMP] * 255.0F; in _swrast_fog_rgba_span() 143 gFog = ctx->Fog.Color[GCOMP] * 255.0F; in _swrast_fog_rgba_span() 144 bFog = ctx->Fog.Color[BCOMP] * 255.0F; in _swrast_fog_rgba_span() 147 rFog = ctx->Fog.Color[RCOMP] * 65535.0F; in _swrast_fog_rgba_span() [all …]
|
D | s_context.c | 175 (ctx->Hint.Fog == GL_NICEST && in _swrast_update_fog_hint() 259 ctx->Fog.Enabled); in _swrast_update_fog_state() 286 GLboolean separateSpecular = ctx->Fog.ColorSumEnabled || in _swrast_update_specular_vertex_add() 520 if (ctx->Fog.ColorSumEnabled || in _swrast_update_active_attribs()
|
/external/mesa3d/src/mesa/drivers/dri/r200/ |
D | radeon_fog.c | 99 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor() 103 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor() 105 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor() 108 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor() 113 d = ctx->Fog.Density; in radeonComputeFogBlendFactor() 118 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 | 99 GLfloat end = ctx->Fog.End; in radeonComputeFogBlendFactor() 103 switch (ctx->Fog.Mode) { in radeonComputeFogBlendFactor() 105 if (ctx->Fog.Start == ctx->Fog.End) in radeonComputeFogBlendFactor() 108 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in radeonComputeFogBlendFactor() 113 d = ctx->Fog.Density; in radeonComputeFogBlendFactor() 118 d = ctx->Fog.Density*ctx->Fog.Density; in radeonComputeFogBlendFactor()
|
D | radeon_state.c | 326 if (!ctx->Fog.Enabled) in radeonFogfv() 330 switch (ctx->Fog.Mode) { in radeonFogfv() 347 if (!ctx->Fog.Enabled) in radeonFogfv() 351 switch (ctx->Fog.Mode) { in radeonFogfv() 357 d.f = -ctx->Fog.Density; in radeonFogfv() 361 d.f = -(ctx->Fog.Density * ctx->Fog.Density); in radeonFogfv() 364 if (ctx->Fog.Start == ctx->Fog.End) { in radeonFogfv() 368 c.f = ctx->Fog.End/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv() 372 d.f = -1.0/(ctx->Fog.End-ctx->Fog.Start); in radeonFogfv() 386 _mesa_unclamped_float_rgba_to_ubyte(col, ctx->Fog.Color ); in radeonFogfv() [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_vb_fog.c | 99 GLfloat end = ctx->Fog.End; in compute_fog_blend_factors() 109 switch (ctx->Fog.Mode) { in compute_fog_blend_factors() 111 if (ctx->Fog.Start == ctx->Fog.End) in compute_fog_blend_factors() 114 d = 1.0F / (ctx->Fog.End - ctx->Fog.Start); in compute_fog_blend_factors() 122 d = ctx->Fog.Density; in compute_fog_blend_factors() 129 d = ctx->Fog.Density*ctx->Fog.Density; in compute_fog_blend_factors() 151 if (!ctx->Fog.Enabled) in run_fog_stage() 154 if (ctx->Fog.FogCoordinateSource == GL_FRAGMENT_DEPTH_EXT && !ctx->VertexProgram._Current) { in run_fog_stage()
|
D | t_context.c | 140 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_InvalidateState() 166 if (ctx->Fog.Enabled in _tnl_InvalidateState() 238 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_vertex_fog() 248 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST)) in _tnl_allow_pixel_fog()
|
/external/mesa3d/src/mesa/program/ |
D | prog_statevars.c | 258 COPY_4V(value, ctx->Fog.Color); in _mesa_fetch_state() 260 COPY_4V(value, ctx->Fog.ColorUnclamped); in _mesa_fetch_state() 263 value[0] = ctx->Fog.Density; in _mesa_fetch_state() 264 value[1] = ctx->Fog.Start; in _mesa_fetch_state() 265 value[2] = ctx->Fog.End; in _mesa_fetch_state() 266 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start); in _mesa_fetch_state() 470 value[0] = (ctx->Fog.End == ctx->Fog.Start) in _mesa_fetch_state() 471 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog.End - ctx->Fog.Start)); in _mesa_fetch_state() 472 value[1] = ctx->Fog.End * -value[0]; in _mesa_fetch_state() 473 value[2] = (GLfloat)(ctx->Fog.Density * M_LOG2E); /* M_LOG2E == 1/ln(2) */ in _mesa_fetch_state() [all …]
|
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 | 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 | 247 ctx->Driver.Enable(ctx, GL_COLOR_SUM, ctx->Fog.ColorSumEnabled); in _mesa_init_driver_state() 251 ctx->Driver.Enable(ctx, GL_FOG, ctx->Fog.Enabled); in _mesa_init_driver_state() 263 ctx->Driver.Fogfv(ctx, GL_FOG_COLOR, ctx->Fog.Color); in _mesa_init_driver_state() 265 GLfloat mode = (GLfloat) ctx->Fog.Mode; in _mesa_init_driver_state() 268 ctx->Driver.Fogfv(ctx, GL_FOG_DENSITY, &ctx->Fog.Density); in _mesa_init_driver_state() 269 ctx->Driver.Fogfv(ctx, GL_FOG_START, &ctx->Fog.Start); in _mesa_init_driver_state() 270 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
|
/external/swiftshader/src/Device/ |
D | Vertex.hpp | 38 Fog = 11, // x component enumerator 39 Pts = Fog, // y component
|
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
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()
|
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()
|
/external/mesa3d/prebuilt-intermediates/main/ |
D | get_hash.h | 126 { GL_FOG, CONTEXT_BOOL(Fog.Enabled), NO_EXTRA }, 128 { GL_FOG_DENSITY, CONTEXT_FLOAT(Fog.Density), NO_EXTRA }, 129 { GL_FOG_END, CONTEXT_FLOAT(Fog.End), NO_EXTRA }, 130 { GL_FOG_HINT, CONTEXT_ENUM(Hint.Fog), NO_EXTRA }, 131 { GL_FOG_MODE, CONTEXT_ENUM(Fog.Mode), NO_EXTRA }, 132 { GL_FOG_START, CONTEXT_FLOAT(Fog.Start), NO_EXTRA }, 435 { GL_FOG_INDEX, CONTEXT_FLOAT(Fog.Index), NO_EXTRA }, 549 { GL_COLOR_SUM, CONTEXT_BOOL(Fog.ColorSumEnabled), NO_EXTRA }, 559 { GL_FOG_COORDINATE_SOURCE, CONTEXT_ENUM(Fog.FogCoordinateSource), NO_EXTRA }, 560 { GL_FOG_DISTANCE_MODE_NV, CONTEXT_ENUM(Fog.FogDistanceMode), extra_NV_fog_distance },
|
/external/mesa3d/src/mesa/drivers/dri/i915/ |
D | intel_pixel.c | 104 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | intel_pixel.c | 101 if (ctx->Fog.Enabled) { in intel_check_blit_fragment_ops()
|