mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
ast_function: Set constant_value on return value temporaries in 1.20+.
This commit is contained in:
parent
bafd89fa0f
commit
46d91615a2
1 changed files with 2 additions and 0 deletions
|
|
@ -122,6 +122,8 @@ process_call(exec_list *instructions, ir_function *f,
|
|||
deref = new(ctx) ir_dereference_variable(var);
|
||||
ir_assignment *assign = new(ctx) ir_assignment(deref, call, NULL);
|
||||
instructions->push_tail(assign);
|
||||
if (state->language_version >= 120)
|
||||
var->constant_value = call->constant_expression_value();
|
||||
|
||||
deref = new(ctx) ir_dereference_variable(var);
|
||||
return deref;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue