mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
ARB prog parser: Finish implementing fp state.depth.range
This commit is contained in:
parent
e511633985
commit
333bb4f291
2 changed files with 677 additions and 649 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -205,7 +205,7 @@ static struct asm_instruction *asm_instruction_ctor(gl_inst_opcode op,
|
|||
%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 @@ stateSingleItem: STATE stateMaterialItem { memcpy($$, $2, sizeof($$)); }
|
|||
| 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 @@ stateProgramMatNum: INTEGER
|
|||
}
|
||||
;
|
||||
|
||||
stateDepthItem: DEPTH RANGE
|
||||
{
|
||||
memset($$, 0, sizeof($$));
|
||||
$$[0] = STATE_DEPTH_RANGE;
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
programSingleItem: progEnvParam | progLocalParam;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue