/third_party/mesa3d/src/mesa/main/ |
H A 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 if (ctx->Fog.Enabled) { in _mesa_Fogfv() 110 ctx->Fog._PackedEnabledMode = ctx->Fog._PackedMode; in _mesa_Fogfv() 119 if (ctx->Fog.Density == *params) in _mesa_Fogfv() 122 ctx->Fog in _mesa_Fogfv() [all...] |
H A D | hint.c | 56 if (ctx->Hint.Fog == mode) in _mesa_Hint() 59 ctx->Hint.Fog = mode; in _mesa_Hint() 158 ctx->Hint.Fog = GL_DONT_CARE; in _mesa_init_hint()
|
H A D | attrib.c | 148 attr->Fog = ctx->Fog.Enabled; in _mesa_PushAttrib() 215 memcpy(&head->Fog, &ctx->Fog, sizeof(head->Fog)); in _mesa_PushAttrib() 375 TEST_AND_UPDATE(ctx->Fog.Enabled, enable->Fog, GL_FOG); in pop_enable_group() 860 TEST_AND_UPDATE(ctx->Fog.Enabled, attr->Fog.Enabled, GL_FOG); in _mesa_PopAttrib() 861 _mesa_Fogfv(GL_FOG_COLOR, attr->Fog in _mesa_PopAttrib() [all...] |
H A D | state.h | 75 if (ctx->Fog.ColorSumEnabled) in _mesa_need_secondary_color()
|
H A D | enable.c | 528 if (ctx->Fog.Enabled == state) in _mesa_set_enable() 532 ctx->Fog.Enabled = state; in _mesa_set_enable() 533 ctx->Fog._PackedEnabledMode = state ? ctx->Fog._PackedMode : FOG_NONE; in _mesa_set_enable() 991 if (ctx->Fog.ColorSumEnabled == state) in _mesa_set_enable() 995 ctx->Fog.ColorSumEnabled = state; in _mesa_set_enable() 1582 return ctx->Fog.Enabled; in _mesa_IsEnabled() 1814 return ctx->Fog.ColorSumEnabled; in _mesa_IsEnabled()
|
H A D | rastpos.c | 475 if (ctx->Fog.FogCoordinateSource == GL_FOG_COORDINATE_EXT) in _mesa_RasterPos() 730 if (ctx->Fog.FogCoordinateSource == GL_FOG_COORDINATE_EXT) in window_pos3f()
|
H A D | mtypes.h | 436 * Fog attribute group (GL_FOG_BIT). 440 GLboolean Enabled; /**< Fog enabled flag */ 442 uint8_t _PackedMode; /**< Fog mode as 2 bits */ 444 GLfloat ColorUnclamped[4]; /**< Fog color */ 445 GLfloat Color[4]; /**< Fog color */ 449 GLfloat Index; /**< Fog index */ 450 GLenum16 Mode; /**< Fog mode */ 467 GLenum16 Fog; member 2820 #define _NEW_FOG (1u << 6) /**< gl_context::Fog */ 3121 GLboolean Fog; member 3222 struct gl_fog_attrib Fog; global() member 3395 struct gl_fog_attrib Fog; /**< Fog attributes */ global() member [all...] |
H A D | ff_fragment_shader.cpp | 79 if (ctx->Fog.ColorSumEnabled) in texenv_doing_secondary_color() 312 key->fog_mode = ctx->Fog._PackedEnabledMode; in make_state_key() 903 /* Temporary storage for the whole fog result. Fog calculations in emit_fog_instructions()
|
H A D | context.c | 1241 dst->Fog = src->Fog; in _mesa_copy_context()
|
/third_party/mesa3d/src/mesa/program/ |
H A 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()
|
H A D | prog_statevars.c | 307 COPY_4V(value, ctx->Fog.Color); in fetch_state() 309 COPY_4V(value, ctx->Fog.ColorUnclamped); in fetch_state() 312 value[0] = ctx->Fog.Density; in fetch_state() 313 value[1] = ctx->Fog.Start; in fetch_state() 314 value[2] = ctx->Fog.End; in fetch_state() 315 value[3] = 1.0f / (ctx->Fog.End - ctx->Fog.Start); in fetch_state() 597 float val = (ctx->Fog.End == ctx->Fog.Start) in fetch_state() 598 ? 1.0f : (GLfloat)(-1.0F / (ctx->Fog in fetch_state() [all...] |
H A D | arbprogparse.c | 134 if (state.option.Fog != OPTION_NONE) { in _mesa_parse_arb_fragment_program() 142 _mesa_append_fog_code(ctx, program, fog_modes[state.option.Fog], GL_TRUE); in _mesa_parse_arb_fragment_program()
|
H A D | program_parser.h | 210 unsigned Fog:2; member
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
H A D | Vertex.hpp | 38 Fog = 11, // x component enumerator 39 Pts = Fog, // y component 78 float f; // Fog
|
H A D | PixelProcessor.hpp | 166 struct Fog struct in sw::PixelProcessor 325 Fog fog;
|
H A D | SetupProcessor.cpp | 215 state.fog.attribute = Fog; in update()
|
H A D | Renderer.hpp | 168 PixelProcessor::Fog fog;
|
H A D | VertexProcessor.cpp | 1054 state.output[Fog].xWrite = true; in update() 1092 state.output[Fog].xClamp = true; in update()
|
/third_party/skia/third_party/externals/angle2/src/tests/gles1_conformance_tests/ |
H A D | PrimtestTests.cpp | 127 TEST_P(GLES1PrimtestTest, Fog) in TEST_P()
|
H A D | CovglTests.cpp | 368 TEST_P(GLES1CovglTest, Fog) in TEST_P()
|
/third_party/skia/third_party/externals/swiftshader/src/Shader/ |
H A D | VertexPipeline.cpp | 515 o[Fog].x = o[C1].w; in pipeline() 519 o[Fog].x = Float4(0.0f); in pipeline() 523 o[Fog].x = f * *Pointer<Float4>(data + OFFSET(DrawData,fog.scale)) + *Pointer<Float4>(data + OFFSET(DrawData,fog.offset)); in pipeline() 526 o[Fog].x = exponential2(f * *Pointer<Float4>(data + OFFSET(DrawData,fog.densityE)), true); in pipeline() 529 o[Fog].x = exponential2((f * f) * *Pointer<Float4>(data + OFFSET(DrawData,fog.density2E)), true); in pipeline()
|
H A D | VertexShader.cpp | 250 output[Fog][0] = Semantic(Shader::USAGE_FOG, 0); in analyzeOutput()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_shader.c | 165 key.fog = st->ctx->Fog._PackedEnabledMode; in st_update_fp()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | GLES1Renderer.h | 34 Fog = 1, member in gl::GLES1StateEnables 267 // Fog
|
H A D | GLES1Renderer.cpp | 175 mShaderState.mGLES1StateEnabled[GLES1StateEnables::Fog] = glState->getEnableFeature(GL_FOG); in prepareForDraw() 731 addShaderDefine(outStream, GLES1StateEnables::Fog, "enable_fog"); in addFragmentShaderDefs()
|