summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-30 14:55:45 -0700
committerEric Anholt <eric@anholt.net>2010-06-30 14:55:45 -0700
commit88c20c46b8f708e89adef28f341c51ea7883b6a0 (patch)
tree3b25f04a0ed9a43115e16c864ec93121b771e3ae /src/mesa
parent97eba76b8c5fe60738716c4dce9404de417a7d34 (diff)
ir_to_mesa: Support gl_FragDepth.
Fixes glsl-bug-22603.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index c39621bf79..ef9a96e2f5 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -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},