commit | 88f5588f777d76fe48fded8add745b4da2024ebc | [log] [tgz] |
---|---|---|
author | Ian Romanick <ian.d.romanick@intel.com> | Tue Oct 31 22:18:10 2017 -0700 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Wed Nov 08 18:37:29 2017 -0800 |
tree | d8355a5d35434972b905e2ad133cf8bf24707f47 | |
parent | ef1ca06ce89cba03fcb30f34c47808569517957d [diff] |
glsl/linker: Optimize swizzles again after linking Without this, the SPIR-V generator has to deal with a bunch of junk like: (swiz z (swiz xxx (swiz x (var_ref packed:binormal.z,light_dir)))) It seems better to cull that stuff out than to add code to deal with it. The problem is the way swizzles to and from scalars have to be handled in SPIR-V. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Thomas Helland <thomashelland90@gmail.com>