Skip to content
Snippets Groups Projects
Commit 2fc0ce29 authored by Kenneth Graunke's avatar Kenneth Graunke
Browse files

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's avatarKenneth Graunke <kenneth@whitecape.org>
Reviewed-by: default avatarThomas Helland <thomashelland90@gmail.com>
Reviewed-by: default avatarTimothy Arceri <t_arceri@yahoo.com.au>
Tested-by: default avatarTapani Pälli <tapani.palli@intel.com>
parent 46037237
No related branches found
No related tags found
No related merge requests found
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