mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
parser: Anonymous constants come from the PROGRAM_CONSTANT file
This commit is contained in:
parent
770cebbc29
commit
69d3d19b54
2 changed files with 202 additions and 198 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -590,7 +590,9 @@ srcReg: IDENTIFIER /* temporaryReg | progParamSingle */
|
|||
| paramSingleItemUse
|
||||
{
|
||||
init_src_reg(& $$);
|
||||
$$.Base.File = $1.param_binding_type;
|
||||
$$.Base.File = ($1.name != NULL)
|
||||
? $1.param_binding_type
|
||||
: PROGRAM_CONSTANT;
|
||||
$$.Base.Index = $1.param_binding_begin;
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue