From: Eric Anholt Date: Wed, 30 Jun 2010 21:55:45 +0000 (-0700) Subject: ir_to_mesa: Support gl_FragDepth. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88c20c46b8f708e89adef28f341c51ea7883b6a0;p=mesa.git ir_to_mesa: Support gl_FragDepth. Fixes glsl-bug-22603. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index c39621bf796..ef9a96e2f52 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},