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:
parent
cbe7431cdb
commit
c1d3080ee8
18 changed files with 83 additions and 75 deletions
|
|
@ -139,7 +139,7 @@ ir_call::generate_inline(ir_instruction *next_ir)
|
|||
* read-only and the inlined function is inside a loop, the loop
|
||||
* analysis code will get confused.
|
||||
*/
|
||||
parameters[i]->read_only = false;
|
||||
parameters[i]->data.read_only = false;
|
||||
next_ir->insert_before(parameters[i]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue