Skip to content
Commit 871aea89 authored by Danylo Piliaiev's avatar Danylo Piliaiev Committed by Emil Velikov
Browse files

glsl: Fix copying function's out to temp if dereferenced by array



Function's out variable could be an array dereferenced by an array:
 func(v[w[i]]);
or something more complicated.

Copy index in any case.

Fixes: 76c27e47 ("glsl: Copy function out to temp if we don't directly ref a variable")

Signed-off-by: default avatarDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: default avatarTimothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
Reviewed-by: default avatarKenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 0862929b)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109488


Nominated-by: default avatarMatt Turner <mattst88@gmail.com>
parent f2c1d7ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment