From 40c6bec8bcf822981be427fd82689f606f00adbf Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 11 Aug 2025 17:02:07 +0200 Subject: [PATCH] radeonsi/vcn: Enable AV1 decode workaround for gfx1153 Cc: mesa-stable Reviewed-by: Ruijing Dong Part-of: (cherry picked from commit 4893e09c10510edeb1e1a4396ec51d6e28fa9d1e) --- .pick_status.json | 2 +- src/gallium/drivers/radeonsi/radeon_vcn_dec.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 4e3a353e1c1..94275d3238e 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -44,7 +44,7 @@ "description": "radeonsi/vcn: Enable AV1 decode workaround for gfx1153", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null, "notes": null diff --git a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c index b7aed7a9b7e..27781440d0c 100644 --- a/src/gallium/drivers/radeonsi/radeon_vcn_dec.c +++ b/src/gallium/drivers/radeonsi/radeon_vcn_dec.c @@ -698,6 +698,7 @@ static rvcn_dec_message_av1_t get_av1_msg(struct radeon_decoder *dec, struct pipe_video_buffer *target, struct pipe_av1_picture_desc *pic) { + struct si_screen *sscreen = (struct si_screen *)dec->screen; rvcn_dec_message_av1_t result; unsigned i, j, num_refs = 0, valid_ref = UINT32_MAX; uint16_t tile_count = pic->picture_parameter.tile_cols * pic->picture_parameter.tile_rows; @@ -1076,6 +1077,8 @@ static rvcn_dec_message_av1_t get_av1_msg(struct radeon_decoder *dec, } } + result.av1_intrabc_workaround = sscreen->info.family == CHIP_GFX1153; + return result; }