ARB prog parser: Finish implementing fp state.depth.range
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y
index 251cf7d..91a4036 100644
--- a/src/mesa/shader/program_parse.y
+++ b/src/mesa/shader/program_parse.y
@@ -205,7 +205,7 @@
%type <state> stateLightItem stateLightModelItem stateLightProdItem
%type <state> stateTexGenItem stateFogItem stateClipPlaneItem statePointItem
%type <state> stateMatrixItem stateMatrixRow stateMatrixRows
-%type <state> stateTexEnvItem
+%type <state> stateTexEnvItem stateDepthItem
%type <state> stateLModProperty
%type <state> stateMatrixName optMatrixRows
@@ -1083,6 +1083,7 @@
| STATE stateClipPlaneItem { memcpy($$, $2, sizeof($$)); }
| STATE statePointItem { memcpy($$, $2, sizeof($$)); }
| STATE stateMatrixRow { memcpy($$, $2, sizeof($$)); }
+ | STATE stateDepthItem { memcpy($$, $2, sizeof($$)); }
;
stateMaterialItem: MATERIAL optFaceType stateMatProperty
@@ -1469,6 +1470,12 @@
}
;
+stateDepthItem: DEPTH RANGE
+ {
+ memset($$, 0, sizeof($$));
+ $$[0] = STATE_DEPTH_RANGE;
+ }
+ ;
programSingleItem: progEnvParam | progLocalParam;