radv: add notccompatcmask debug option

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9415>
This commit is contained in:
Samuel Pitoiset 2021-03-03 17:24:34 +01:00 committed by Marge Bot
parent f810d8cd50
commit 9d42e71505
4 changed files with 7 additions and 0 deletions

View File

@ -595,6 +595,8 @@ RADV driver environment variables
disable NGG for GFX10+
``nooutoforder``
disable out-of-order rasterization
``notccompatcmask``
disable TC-compat CMASK for MSAA surfaces
``nothreadllvm``
disable LLVM threaded compilation
``noumr``

View File

@ -61,6 +61,7 @@ enum {
RADV_DEBUG_NO_UMR = 1ull << 30,
RADV_DEBUG_INVARIANT_GEOM = 1ull << 31,
RADV_DEBUG_NO_DISPLAY_DCC = 1ull << 32,
RADV_DEBUG_NO_TC_COMPAT_CMASK= 1ull << 33,
};
enum {

View File

@ -796,6 +796,7 @@ static const struct debug_control radv_debug_options[] = {
{"noumr", RADV_DEBUG_NO_UMR},
{"invariantgeom", RADV_DEBUG_INVARIANT_GEOM},
{"nodisplaydcc", RADV_DEBUG_NO_DISPLAY_DCC},
{"notccompatcmask", RADV_DEBUG_NO_TC_COMPAT_CMASK},
{NULL, 0}
};

View File

@ -267,6 +267,9 @@ radv_use_tc_compat_cmask_for_image(struct radv_device *device,
if (device->physical_device->rad_info.chip_class < GFX8)
return false;
if (device->instance->debug_flags & RADV_DEBUG_NO_TC_COMPAT_CMASK)
return false;
/* TODO: Enable TC-compat CMASK on GFX8-9. */
if (device->physical_device->rad_info.chip_class < GFX10 &&
!(device->instance->perftest_flags & RADV_PERFTEST_TC_COMPAT_CMASK))