From cf1bd0f3644444b3a0d3f147bc25d463107585f1 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 25 May 2023 11:32:46 +1000 Subject: [PATCH] radv/video: add missing offset to the dpb binding. This doesn't affect anything I've seen yet. Fixes: 3e2c768aa860 ("radv/vcn: enable dynamic dpb tier 2 for h264/h265 on navi21+") Reviewed-by: Lynne Part-of: --- src/amd/vulkan/radv_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_video.c b/src/amd/vulkan/radv_video.c index 9f72f22..6745f4a 100644 --- a/src/amd/vulkan/radv_video.c +++ b/src/amd/vulkan/radv_video.c @@ -1170,7 +1170,7 @@ static bool rvcn_dec_message_decode(struct radv_cmd_buffer *cmd_buffer, } radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, dpb->bindings[0].bo); - addr = radv_buffer_get_va(dpb->bindings[0].bo); + addr = radv_buffer_get_va(dpb->bindings[0].bo) + dpb->bindings[0].offset; dynamic_dpb_t2->dpbCurrLo = addr; dynamic_dpb_t2->dpbCurrHi = addr >> 32; -- 2.7.4