glsl: fix reuse of deref
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

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:
Timothy Arceri 2025-07-10 15:27:27 +10:00 committed by Marge Bot
parent e761c45390
commit bda89200ce

View file

@ -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.