i965: Disable shader cache with INTEL_DEBUG=shader_time
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 25 Jul 2018 00:13:52 +0000 (17:13 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 2 Aug 2018 06:30:49 +0000 (23:30 -0700)
commit3887700dfd7597fba654a4a713c274213a4a8755
tree13a345ed354272f47ce5ad2162f1f058993cc642
parentbea4722c2e387162d677eb8fff726be44d720cdb
i965: Disable shader cache with INTEL_DEBUG=shader_time

Shader time hard codes an index of the shader time buffer within the
gen program.

In order to support shader time in the disk shader cache, we'd need to
add the shader time index into the program key. This should work, but
probably is not worth it for this particular debug feature.

Therefore, let's just disable the disk shader cache if the shader time
debug feature is used.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106382
Fixes: 96fe36f7acc "i965: Enable disk shader cache by default"
Cc: Eero Tamminen <eero.t.tamminen@intel.com>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/common/gen_debug.h
src/mesa/drivers/dri/i965/brw_disk_cache.c