radv/video: add missing offset to the dpb binding.

This doesn't affect anything I've seen yet.

Fixes: 3e2c768aa8 ("radv/vcn: enable dynamic dpb tier 2 for h264/h265 on navi21+")
Reviewed-by: Lynne <dev@lynne.ee>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23227>
(cherry picked from commit cf1bd0f364)
This commit is contained in:
Dave Airlie 2023-05-25 11:32:46 +10:00 committed by Eric Engestrom
parent a588c59cca
commit 5fa1f9115d
2 changed files with 2 additions and 2 deletions

View file

@ -1660,7 +1660,7 @@
"description": "radv/video: add missing offset to the dpb binding.",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "3e2c768aa860f96074df73cd3171960e76f5c312"
},

View file

@ -1050,7 +1050,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;