From 7360aa020cf43fe22408e467e038f25d0028aaec Mon Sep 17 00:00:00 2001 From: Sonny Jiang Date: Mon, 3 Apr 2023 11:58:29 -0400 Subject: [PATCH] gallium/pipe: change PIPE_DEFAULT_DECODER_FEEDBACK_TIMEOUT_NS to 1 second Fixes: 5e1bd07a ("radeonsi: vcn: implement the get_decoder_fence vfunc") The commit [5e1bd07a] puts a timeout on fence_wait which causes a 8k AV1 decoding regression on gfx940. By adding DECODER_FEEDBACK_TIMEOUT to add fence wait time. Signed-off-by: Sonny Jiang Reviewed-by: Boyuan Zhang Part-of: --- src/gallium/include/pipe/p_video_state.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index f0e0405..4cc8a41 100644 --- a/src/gallium/include/pipe/p_video_state.h +++ b/src/gallium/include/pipe/p_video_state.h @@ -44,7 +44,7 @@ extern "C" { #define PIPE_DEFAULT_FRAME_RATE_DEN 1 #define PIPE_DEFAULT_FRAME_RATE_NUM 30 #define PIPE_H2645_EXTENDED_SAR 255 -#define PIPE_DEFAULT_DECODER_FEEDBACK_TIMEOUT_NS 100000000 +#define PIPE_DEFAULT_DECODER_FEEDBACK_TIMEOUT_NS 1000000000 /* * see table 6-12 in the spec -- 2.7.4