i965: Use hash tables for brw_fs_vector_splitting().
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 5 Sep 2015 07:51:33 +0000 (00:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Sep 2015 07:01:24 +0000 (00:01 -0700)
commite20f30eb5181cddf8286d2247cfaf7e0fac7e417
treecaa1ca674230208e71e65ecf6037f1866d5a1be8
parent2fc0ce293ac58237f02cc5dd2eee4e35abea06b5
i965: Use hash tables for brw_fs_vector_splitting().

Cuts compile/link time of the fragment shader in #91857 by 25%
(21.64 -> 16.28).

v2: Drop unnecessary _mesa_hash_table_destroy call, and use
    refs.ht->entries == 0 rather than ad-hoc checking (suggested by
    Timothy Arceri).

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>
src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp