radv: add RADV_DEBUG=novideo to disable all video extensions
It's useful when video support has issues. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36186>
This commit is contained in:
committed by
Marge Bot
parent
af22d5c97d
commit
49e49d7dde
@@ -1428,6 +1428,8 @@ RADV driver environment variables
|
||||
``noumr``
|
||||
disable UMR dumps during GPU hang detection (only with
|
||||
:envvar:`RADV_DEBUG` = ``hang``)
|
||||
``novideo``
|
||||
disable all video extensions
|
||||
``novrsflatshading``
|
||||
disable VRS for flat shading (only on GFX10.3+)
|
||||
``preoptir``
|
||||
|
||||
@@ -72,6 +72,7 @@ enum {
|
||||
RADV_DEBUG_DUMP_BACKEND_IR = 1ull << 57,
|
||||
RADV_DEBUG_PSO_HISTORY = 1ull << 58,
|
||||
RADV_DEBUG_BVH4 = 1ull << 59,
|
||||
RADV_DEBUG_NO_VIDEO = 1ull << 60,
|
||||
RADV_DEBUG_DUMP_SHADERS = RADV_DEBUG_DUMP_VS | RADV_DEBUG_DUMP_TCS | RADV_DEBUG_DUMP_TES | RADV_DEBUG_DUMP_GS |
|
||||
RADV_DEBUG_DUMP_PS | RADV_DEBUG_DUMP_TASK | RADV_DEBUG_DUMP_MESH | RADV_DEBUG_DUMP_CS |
|
||||
RADV_DEBUG_DUMP_NIR | RADV_DEBUG_DUMP_ASM | RADV_DEBUG_DUMP_BACKEND_IR,
|
||||
|
||||
@@ -87,6 +87,7 @@ static const struct debug_control radv_debug_options[] = {{"nofastclears", RADV_
|
||||
{"ir", RADV_DEBUG_DUMP_BACKEND_IR},
|
||||
{"pso_history", RADV_DEBUG_PSO_HISTORY},
|
||||
{"bvh4", RADV_DEBUG_BVH4},
|
||||
{"novideo", RADV_DEBUG_NO_VIDEO},
|
||||
{NULL, 0}};
|
||||
|
||||
const char *
|
||||
|
||||
@@ -308,6 +308,9 @@ radv_probe_video_decode(struct radv_physical_device *pdev)
|
||||
|
||||
pdev->video_decode_enabled = false;
|
||||
|
||||
if (instance->debug_flags & RADV_DEBUG_NO_VIDEO)
|
||||
return;
|
||||
|
||||
/* The support for decode events are available at the same time as encode */
|
||||
if (pdev->info.vcn_ip_version >= VCN_5_0_0) {
|
||||
pdev->video_decode_enabled = true;
|
||||
|
||||
@@ -60,8 +60,13 @@
|
||||
void
|
||||
radv_probe_video_encode(struct radv_physical_device *pdev)
|
||||
{
|
||||
const struct radv_instance *instance = radv_physical_device_instance(pdev);
|
||||
|
||||
pdev->video_encode_enabled = false;
|
||||
|
||||
if (instance->debug_flags & RADV_DEBUG_NO_VIDEO)
|
||||
return;
|
||||
|
||||
if (pdev->info.vcn_ip_version >= VCN_5_0_0) {
|
||||
pdev->video_encode_enabled = true;
|
||||
return;
|
||||
@@ -105,7 +110,6 @@ radv_probe_video_encode(struct radv_physical_device *pdev)
|
||||
return;
|
||||
}
|
||||
|
||||
struct radv_instance *instance = radv_physical_device_instance(pdev);
|
||||
pdev->video_encode_enabled = !!(instance->perftest_flags & RADV_PERFTEST_VIDEO_ENCODE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user