Skip to content
Snippets Groups Projects
Commit 871aea89 authored by Danylo Piliaiev's avatar Danylo Piliaiev :flag_ua: 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: Kenneth Graunke's 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
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment