Module: Mesa Branch: main Commit: c27e3a6248c60ad094233c3ec783d9274fb9055d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c27e3a6248c60ad094233c3ec783d9274fb9055d
Author: Bas Nieuwenhuizen <[email protected]> Date: Sat May 29 01:06:59 2021 +0200 radv: Add rt perftest flag. Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11078> --- docs/envvars.rst | 2 ++ src/amd/vulkan/radv_debug.h | 1 + src/amd/vulkan/radv_device.c | 17 ++++++++++------- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/docs/envvars.rst b/docs/envvars.rst index bdaa9b341b6..a3b2e7eb5b6 100644 --- a/docs/envvars.rst +++ b/docs/envvars.rst @@ -643,6 +643,8 @@ RADV driver environment variables disable optimizations that get enabled when all VRAM is CPU visible. ``pswave32`` enable wave32 for pixel shaders (GFX10+) + ``rt`` + enable rt extensions whose implementation is still experimental. ``sam`` enable optimizations to move more driver internal objects to VRAM. diff --git a/src/amd/vulkan/radv_debug.h b/src/amd/vulkan/radv_debug.h index 9b5755a4785..88e8c53822d 100644 --- a/src/amd/vulkan/radv_debug.h +++ b/src/amd/vulkan/radv_debug.h @@ -73,6 +73,7 @@ enum { RADV_PERFTEST_GE_WAVE_32 = 1u << 5, RADV_PERFTEST_NO_SAM = 1u << 6, RADV_PERFTEST_SAM = 1u << 7, + RADV_PERFTEST_RT = 1u << 8, }; bool radv_init_trace(struct radv_device *device); diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 33631024630..b0fce3f75cf 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -784,13 +784,16 @@ radv_get_debug_option_name(int id) return radv_debug_options[id].string; } -static const struct debug_control radv_perftest_options[] = { - {"localbos", RADV_PERFTEST_LOCAL_BOS}, {"dccmsaa", RADV_PERFTEST_DCC_MSAA}, - {"bolist", RADV_PERFTEST_BO_LIST}, - {"cswave32", RADV_PERFTEST_CS_WAVE_32}, {"pswave32", RADV_PERFTEST_PS_WAVE_32}, - {"gewave32", RADV_PERFTEST_GE_WAVE_32}, - {"nosam", RADV_PERFTEST_NO_SAM}, {"sam", RADV_PERFTEST_SAM}, - {NULL, 0}}; +static const struct debug_control radv_perftest_options[] = {{"localbos", RADV_PERFTEST_LOCAL_BOS}, + {"dccmsaa", RADV_PERFTEST_DCC_MSAA}, + {"bolist", RADV_PERFTEST_BO_LIST}, + {"cswave32", RADV_PERFTEST_CS_WAVE_32}, + {"pswave32", RADV_PERFTEST_PS_WAVE_32}, + {"gewave32", RADV_PERFTEST_GE_WAVE_32}, + {"nosam", RADV_PERFTEST_NO_SAM}, + {"sam", RADV_PERFTEST_SAM}, + {"rt", RADV_PERFTEST_RT}, + {NULL, 0}}; const char * radv_get_perftest_option_name(int id) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
