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:
@@ -156,8 +156,8 @@ flatten_named_interface_blocks_declarations::run(exec_list *instructions)
|
||||
new_var->explicit_location = (new_var->location >= 0);
|
||||
new_var->interpolation =
|
||||
iface_t->fields.structure[i].interpolation;
|
||||
new_var->centroid = iface_t->fields.structure[i].centroid;
|
||||
new_var->sample = iface_t->fields.structure[i].sample;
|
||||
new_var->data.centroid = iface_t->fields.structure[i].centroid;
|
||||
new_var->data.sample = iface_t->fields.structure[i].sample;
|
||||
|
||||
new_var->init_interface_type(iface_t);
|
||||
hash_table_insert(interface_namespace, new_var,
|
||||
|
||||
Reference in New Issue
Block a user