radeonsi: Add debug option to disable tiling for video

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36515>
This commit is contained in:
David Rosca 2025-07-30 12:20:40 +02:00 committed by Marge Bot
parent 86b5a3087b
commit fe94eb5bea
4 changed files with 11 additions and 2 deletions

View file

@ -1753,6 +1753,8 @@ RadeonSI driver environment variables
Enable CP register shadowing in kernel queue.
``userqnoshadowregs``
Disable register shadowing in userqueue. This will also disable userqueue mcbp.
``novideotiling``
Disable tiling for video.
r600 driver environment variables
---------------------------------

View file

@ -128,6 +128,7 @@ static const struct debug_named_value radeonsi_multimedia_debug_options[] = {
/* Multimedia options: */
{"noefc", DBG(NO_EFC), "Disable hardware based encoder colour format conversion."},
{"lowlatencyenc", DBG(LOW_LATENCY_ENCODE), "Enable low latency encoding."},
{"novideotiling", DBG(NO_VIDEO_TILING), "Disable tiling for video."},
DEBUG_NAMED_VALUE_END /* must be last */
};

View file

@ -256,6 +256,7 @@ enum
{
DBG_NO_EFC,
DBG_LOW_LATENCY_ENCODE,
DBG_NO_VIDEO_TILING,
};
enum

View file

@ -40,8 +40,13 @@ struct pipe_video_buffer *si_video_buffer_create_with_modifiers(struct pipe_cont
if (!ac_modifier_supports_video(&sscreen->info, mod))
continue;
if (mod != DRM_FORMAT_MOD_LINEAR && !sscreen->info.has_image_opcodes)
continue;
if (mod != DRM_FORMAT_MOD_LINEAR) {
if (sscreen->multimedia_debug_flags & DBG(NO_VIDEO_TILING))
continue;
if (!sscreen->info.has_image_opcodes)
continue;
}
allowed_modifiers[allowed_modifiers_count++] = mod;
}