diff options
author | Tapani Pälli <tapani.palli@intel.com> | 2013-12-12 12:57:57 +0200 |
---|---|---|
committer | Tapani Pälli <tapani.palli@intel.com> | 2013-12-12 17:28:06 +0200 |
commit | c1d3080ee86cd3d914712ffe0bb533c5d6a6b271 (patch) | |
tree | a890afb0ab7df128e3dc9ed5936e927141d8c60a /src/glsl/lower_packed_varyings.cpp | |
parent | cbe7431cdb57edb87e53e61ff97db54831cc00b7 (diff) | |
download | external_mesa3d-c1d3080ee86cd3d914712ffe0bb533c5d6a6b271.zip external_mesa3d-c1d3080ee86cd3d914712ffe0bb533c5d6a6b271.tar.gz external_mesa3d-c1d3080ee86cd3d914712ffe0bb533c5d6a6b271.tar.bz2 |
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>
Diffstat (limited to 'src/glsl/lower_packed_varyings.cpp')
-rw-r--r-- | src/glsl/lower_packed_varyings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp index e097e81..498914e 100644 --- a/src/glsl/lower_packed_varyings.cpp +++ b/src/glsl/lower_packed_varyings.cpp @@ -564,8 +564,8 @@ lower_packed_varyings_visitor::get_packed_varying_deref( */ packed_var->max_array_access = this->gs_input_vertices - 1; } - packed_var->centroid = unpacked_var->centroid; - packed_var->sample = unpacked_var->sample; + packed_var->data.centroid = unpacked_var->data.centroid; + packed_var->data.sample = unpacked_var->data.sample; packed_var->interpolation = unpacked_var->interpolation; packed_var->location = location; unpacked_var->insert_before(packed_var); |