mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
parser: Track a few more frag prog related values
This commit is contained in:
parent
28b13038d8
commit
0db5ef0741
2 changed files with 261 additions and 227 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -302,7 +302,15 @@ statement: instruction ';'
|
|||
;
|
||||
|
||||
instruction: ALU_instruction
|
||||
{
|
||||
$$ = $1;
|
||||
state->prog->NumAluInstructions++;
|
||||
}
|
||||
| TexInstruction
|
||||
{
|
||||
$$ = $1;
|
||||
state->prog->NumTexInstructions++;
|
||||
}
|
||||
;
|
||||
|
||||
ALU_instruction: ARL_instruction
|
||||
|
|
@ -368,6 +376,8 @@ SAMPLE_instruction: SAMPLE_OP maskedDstReg ',' swizzleSrcReg ',' texImageUnit ',
|
|||
$$->Base.SaturateMode = $1.SaturateMode;
|
||||
$$->Base.TexSrcUnit = $6;
|
||||
$$->Base.TexSrcTarget = $8;
|
||||
|
||||
state->prog->TexturesUsed[$6] |= (1U << $8);
|
||||
}
|
||||
}
|
||||
;
|
||||
|
|
@ -375,6 +385,7 @@ SAMPLE_instruction: SAMPLE_OP maskedDstReg ',' swizzleSrcReg ',' texImageUnit ',
|
|||
KIL_instruction: KIL swizzleSrcReg
|
||||
{
|
||||
$$ = asm_instruction_ctor(OPCODE_KIL, NULL, & $2, NULL, NULL);
|
||||
state->fragment.UsesKill = 1;
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue