Module: Mesa
Branch: main
Commit: cf1bd0f3644444b3a0d3f147bc25d463107585f1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf1bd0f3644444b3a0d3f147bc25d463107585f1

Author: Dave Airlie <[email protected]>
Date:   Thu May 25 11:32:46 2023 +1000

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23227>

---

 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 9f72f22888d..6745f4acd59 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;

Reply via email to