glsl: introduce data section to ir_variable
Data section helps serialization and cloning of a ir_variable. This patch includes the helper bits used for read only ir_variables. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
@@ -157,7 +157,7 @@ verify_parameter_modes(_mesa_glsl_parse_state *state,
|
||||
if (var)
|
||||
var->assigned = true;
|
||||
|
||||
if (var && var->read_only) {
|
||||
if (var && var->data.read_only) {
|
||||
_mesa_glsl_error(&loc, state,
|
||||
"function parameter '%s %s' references the "
|
||||
"read-only variable '%s'",
|
||||
|
||||
Reference in New Issue
Block a user