glsl: Make the swizzle-swizzle optimization greedy

Graphics / Mesa 3D Graphics Library / Mesa - Ian Romanick [intel.com] - 9 November 2017 02:37 EST

If there is a long sequence of swizzled swizzles, compact all of them down to a single swizzle.

c858abb14f glsl: Make the swizzle-swizzle optimization greedy
src/compiler/glsl/opt_swizzle_swizzle.cpp | 59 +++++++++++++++----------------
1 file changed, 29 insertions(+), 30 deletions(-)

Upstream: cgit.freedesktop.org


  • Share