diff options
author | Jordan Justen <[email protected]> | 2018-07-25 14:31:05 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2018-08-01 23:49:16 -0700 |
commit | 8fcdb71d8c9e6a0d9d9b70550bb764b654377714 (patch) | |
tree | 91ce70041ce4f5cf91697c7535f8b586e6fb6f84 /src/mesa | |
parent | 3887700dfd7597fba654a4a713c274213a4a8755 (diff) |
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 <[email protected]>
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_disk_cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disk_cache.c b/src/mesa/drivers/dri/i965/brw_disk_cache.c index 0797e6eac44..9a6f2ff570c 100644 --- a/src/mesa/drivers/dri/i965/brw_disk_cache.c +++ b/src/mesa/drivers/dri/i965/brw_disk_cache.c @@ -396,7 +396,8 @@ brw_disk_cache_init(struct intel_screen *screen) char timestamp[41]; _mesa_sha1_format(timestamp, id_sha1); - const uint64_t driver_flags = INTEL_DEBUG & DEBUG_DISK_CACHE_MASK; + const uint64_t driver_flags = + brw_get_compiler_config_value(screen->compiler); screen->disk_cache = disk_cache_create(renderer, timestamp, driver_flags); #endif } |