i965: Only write program to cache when it doesn't exist yet
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 25 Jun 2015 11:35:26 +0000 (14:35 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Thu, 13 Aug 2015 10:37:49 +0000 (13:37 +0300)
commit12a66d91f6b0beff123fb6fd8a4f3c3796379532
tree86f057174969ea3b3faf7c42fcfea7233e2a1ec6
parentb4897eb70a994c4630b0fde4a66dd6ace833c33a
i965: Only write program to cache when it doesn't exist yet

Current logic re-writes the same data when existing data is found.
Not that this actually matters at the moment in practice, the
contraint for finding matching data is too severe to ever allow
data to be shared between two items in the cache.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_state_cache.c