OSDN Git Service

intel/compiler: Add brw_get_compiler_config_value for disk cache
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 25 Jul 2018 21:31:05 +0000 (14:31 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 2 Aug 2018 06:49:16 +0000 (23:49 -0700)
commit8fcdb71d8c9e6a0d9d9b70550bb764b654377714
tree91ce70041ce4f5cf91697c7535f8b586e6fb6f84
parent3887700dfd7597fba654a4a713c274213a4a8755
intel/compiler: Add brw_get_compiler_config_value for disk cache

During code review, Jason pointed out that:

2b3064c0731 "i965, anv: Use INTEL_DEBUG for disk_cache driver flags"

Didn't account for INTEL_SCALER_* environment variables.

To fix this, let the compiler return the disk_cache driver flags.

Another possible fix would be to pull the INTEL_SCALER_* into
INTEL_DEBUG bits, but as we are currently using 41 of 64 bits, I
didn't think it was a good use of 4 more of these bits. (5 since
INTEL_PRECISE_TRIG needs to be accounted for as well.)

Cc: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_compiler.c
src/intel/compiler/brw_compiler.h
src/intel/vulkan/anv_device.c
src/mesa/drivers/dri/i965/brw_disk_cache.c