diff options
author | Tapani Pälli <[email protected]> | 2013-12-12 12:57:57 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2013-12-12 17:28:06 +0200 |
commit | c1d3080ee86cd3d914712ffe0bb533c5d6a6b271 (patch) | |
tree | a890afb0ab7df128e3dc9ed5936e927141d8c60a /src/glsl/linker.cpp | |
parent | cbe7431cdb57edb87e53e61ff97db54831cc00b7 (diff) |
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 <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 9e8eca5cc9e..38bf579805f 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -753,19 +753,19 @@ cross_validate_globals(struct gl_shader_program *prog, existing->has_initializer = true; } - if (existing->invariant != var->invariant) { + if (existing->data.invariant != var->data.invariant) { linker_error(prog, "declarations for %s `%s' have " "mismatching invariant qualifiers\n", mode_string(var), var->name); return; } - if (existing->centroid != var->centroid) { + if (existing->data.centroid != var->data.centroid) { linker_error(prog, "declarations for %s `%s' have " "mismatching centroid qualifiers\n", mode_string(var), var->name); return; } - if (existing->sample != var->sample) { + if (existing->data.sample != var->data.sample) { linker_error(prog, "declarations for %s `%s` have " "mismatching sample qualifiers\n", mode_string(var), var->name); |