From 69d3d19b54c46cb7b0e05c04a5304830a1ee2691 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 22 Jul 2009 10:51:18 -0700 Subject: parser: Anonymous constants come from the PROGRAM_CONSTANT file --- src/mesa/shader/program_parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/shader/program_parse.y') diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 39e3ee1f1e..0260196210 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -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; } ; -- cgit v1.2.3