Mesa (main): radeon/vcn: update vcn2 enc interface

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Oct 29 00:10:32 UTC 2021


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

Author: Boyuan Zhang <boyuan.zhang at amd.com>
Date:   Sun Oct 24 18:01:42 2021 -0400

radeon/vcn: update vcn2 enc interface

Add missing parameters according to vcn 2 encode interface.

Signed-off-by: Boyuan Zhang <boyuan.zhang at amd.com>
Reviewed-by: Leo Liu <leo.liu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13511>

---

 src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c b/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c
index d6cc7bbc022..95bf4dc428f 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_enc_2_0.c
@@ -466,6 +466,7 @@ static void radeon_enc_ctx(struct radeon_encoder *enc)
       enc->enc_pic.ctx_buf.reconstructed_pictures[i].chroma_offset = offset;
       offset += chroma_size;
    }
+   enc->enc_pic.ctx_buf.two_pass_search_center_map_offset = 0;
 
    RADEON_ENC_BEGIN(enc->cmd.ctx);
    RADEON_ENC_READWRITE(enc->cpb.res->buf, enc->cpb.res->domains, 0);
@@ -482,6 +483,7 @@ static void radeon_enc_ctx(struct radeon_encoder *enc)
    for (int i = 0; i < 136; i++)
       RADEON_ENC_CS(0x00000000);
 
+   RADEON_ENC_CS(enc->enc_pic.ctx_buf.two_pass_search_center_map_offset);
    RADEON_ENC_END();
 }
 



More information about the mesa-commit mailing list