mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glsl: fix reuse of deref
We can't reuse the deref or validation will get mad at us.
Fixes: 3da4b5eaa5 ("glsl: always copy bindless sampler packing constructors to a temp")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13464
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36038>
This commit is contained in:
parent
e761c45390
commit
bda89200ce
1 changed files with 1 additions and 1 deletions
|
|
@ -2439,7 +2439,7 @@ ast_function_expression::hir(exec_list *instructions,
|
|||
ir_dereference *lhs = new(ctx) ir_dereference_variable(var);
|
||||
ir_instruction *assignment = new(ctx) ir_assignment(lhs, result);
|
||||
instructions->push_tail(assignment);
|
||||
result = lhs;
|
||||
result = new(ctx) ir_dereference_variable(var);
|
||||
}
|
||||
|
||||
/* Attempt to convert the parameter to a constant valued expression.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue