ir_to_mesa: Support gl_FragDepth.
authorEric Anholt <eric@anholt.net>
Wed, 30 Jun 2010 21:55:45 +0000 (14:55 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 30 Jun 2010 21:55:45 +0000 (14:55 -0700)
Fixes glsl-bug-22603.

src/mesa/shader/ir_to_mesa.cpp

index c39621bf7969e61b16c9eeb4a3c7e987bbfafa91..ef9a96e2f529642869d49e4113a9a7b851ba2b0a 100644 (file)
@@ -222,7 +222,7 @@ static const struct {
    {"gl_FragCoord", PROGRAM_INPUT, FRAG_ATTRIB_WPOS},
    {"gl_FrontFacing", PROGRAM_INPUT, FRAG_ATTRIB_FACE},
    {"gl_FragColor", PROGRAM_OUTPUT, FRAG_ATTRIB_COL0},
-   {"gl_FragDepth", PROGRAM_UNDEFINED, FRAG_ATTRIB_WPOS}, /* FINISHME: WPOS.z */
+   {"gl_FragDepth", PROGRAM_OUTPUT, FRAG_RESULT_DEPTH},
 
    /* 110_deprecated_fs */
    {"gl_Color", PROGRAM_INPUT, FRAG_ATTRIB_COL0},