glsl/serialize: optimize for equal offsets in uniform remap tables
authorMarek Olšák <marek.olsak@amd.com>
Fri, 25 Oct 2019 03:26:57 +0000 (23:26 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 25 Oct 2019 21:01:26 +0000 (17:01 -0400)
commit88e9042b6c0529baa3d4906800891c54226c1ead
treefe2cf89f867e8f270fd1c053dec03cde9966a506
parente90269d90a25243bcf46aca57c3b4545e0cd7756
glsl/serialize: optimize for equal offsets in uniform remap tables

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1416
This decreases the shader cache size in the ticket from 1.6 MB to 40 KB.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/serialize.cpp