From 2e3b23539efb71ebbe2f920a6af011e5ca098da9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 12 Mar 2025 09:58:04 +1000 Subject: [PATCH] radv/video: don't try and send events on UVD devices. This should fix some hangs on polaris when decode is forced on. Fixes: 95a980b61fbf4 ("radv/video: add event support for VCN4") Reviewed-by: Samuel Pitoiset Signed-off-by: Dave Airlie Part-of: --- src/amd/vulkan/radv_video.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index e5cccc5fb2a..9e053497810 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -121,6 +121,10 @@ radv_vcn_write_event(struct radv_cmd_buffer *cmd_buffer, struct radv_event *even struct rvcn_sq_var sq; struct radeon_cmdbuf *cs = cmd_buffer->cs; + /* UVD doesn't support events, and probably never will */ + if (pdev->vid_decode_ip == AMD_IP_UVD) + return; + radv_cs_add_buffer(device->ws, cs, event->bo); uint64_t va = radv_buffer_get_va(event->bo);