glsl: Use hash tables in opt_constant_variable().
Cuts compile/link time of the fragment shader in bug #91857 by 31% (31.79 -> 21.64). It has over 8,000 variables so linked lists are terrible. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91857 Signed-off-by:Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Thomas Helland <thomashelland90@gmail.com> Reviewed-by:
Timothy Arceri <t_arceri@yahoo.com.au> Tested-by:
Tapani Pälli <tapani.palli@intel.com>
Loading
Please register or sign in to comment