diff options
author | Topi Pohjolainen <[email protected]> | 2016-05-31 16:47:50 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2016-06-01 09:16:36 +0300 |
commit | 6ca118d2f402495e88e5d534773007ac680885a2 (patch) | |
tree | 9df3c0196f2197ae54d3ec9fa1b429468a83c840 /src/mesa/drivers | |
parent | 30e9e6bd071097fd602a15f488b7eead45460885 (diff) |
i965: Add norbc debug option
This INTEL_DEBUG option disables lossless compression (also known
as render buffer compression).
v2: (Matt) Use likely(!lossless_compression_disabled) instead of
!likely(lossless_compression_disabled)
(Grazvydas) Update docs/envvars.html
Cc: "12.0" <[email protected]>
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_debug.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_debug.h | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_debug.c b/src/mesa/drivers/dri/i965/intel_debug.c index 2589c43ab5e..33e840293a2 100644 --- a/src/mesa/drivers/dri/i965/intel_debug.c +++ b/src/mesa/drivers/dri/i965/intel_debug.c @@ -80,6 +80,7 @@ static const struct debug_control debug_control[] = { { "tes", DEBUG_TES }, { "l3", DEBUG_L3 }, { "do32", DEBUG_DO32 }, + { "norbc", DEBUG_NO_RBC }, { NULL, 0 } }; diff --git a/src/mesa/drivers/dri/i965/intel_debug.h b/src/mesa/drivers/dri/i965/intel_debug.h index 22ad83480da..f407b6a3cb7 100644 --- a/src/mesa/drivers/dri/i965/intel_debug.h +++ b/src/mesa/drivers/dri/i965/intel_debug.h @@ -73,6 +73,7 @@ extern uint64_t INTEL_DEBUG; #define DEBUG_TES (1ull << 37) #define DEBUG_L3 (1ull << 38) #define DEBUG_DO32 (1ull << 39) +#define DEBUG_NO_RBC (1ull << 40) #ifdef HAVE_ANDROID_PLATFORM #define LOG_TAG "INTEL-MESA" diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 3b032c7b0fa..b6265dc3a65 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -1620,7 +1620,9 @@ intel_miptree_alloc_non_msrt_mcs(struct brw_context *brw, * single-sampled buffers. Disabling compression allows us to skip * resolves. */ + const bool lossless_compression_disabled = INTEL_DEBUG & DEBUG_NO_RBC; const bool is_lossless_compressed = + unlikely(!lossless_compression_disabled) && brw->gen >= 9 && !mt->is_scanout && intel_miptree_supports_lossless_compressed(brw, mt); |