i965: Make a helper for finding an existing shader variant.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Nov 2016 21:31:06 +0000 (13:31 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 Jan 2017 05:47:10 +0000 (21:47 -0800)
commitf9edc550b2bb76f77e33b6cb122a91f266bc5958
treed837ff13224d56aa2b9be0a510c82d5a61cecb92
parente7d4008ebfe561ee0aa3df6cdcfd39a8842ed659
i965: Make a helper for finding an existing shader variant.

We had five copies of the same "walk the cache and look for an
existing shader variant for this program" code.  Now we have one
helper function that returns the key.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/mesa/drivers/dri/i965/brw_gs.c
src/mesa/drivers/dri/i965/brw_program_cache.c
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_tcs.c
src/mesa/drivers/dri/i965/brw_tes.c
src/mesa/drivers/dri/i965/brw_vs.c
src/mesa/drivers/dri/i965/brw_wm.c