mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
radeonsi/vcn: qp map IB package sent by default
This is to support QP map enabled and disabled mixed case. When qp map disabled, it still needs the IB package to tell VCN engine qp map is not needed. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Reviewed-By: Sil Vilerino <sivileri@microsoft.com> Signed-off-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30665>
This commit is contained in:
parent
ac45948136
commit
b9c1fcc59b
1 changed files with 6 additions and 4 deletions
|
|
@ -1369,12 +1369,14 @@ static void radeon_enc_encode_statistics(struct radeon_encoder *enc)
|
|||
|
||||
static void radeon_enc_qp_map(struct radeon_encoder *enc)
|
||||
{
|
||||
if (enc->enc_pic.enc_qp_map.qp_map_type == RENCODE_QP_MAP_TYPE_NONE)
|
||||
return;
|
||||
|
||||
RADEON_ENC_BEGIN(enc->cmd.enc_qp_map);
|
||||
RADEON_ENC_CS(enc->enc_pic.enc_qp_map.qp_map_type);
|
||||
RADEON_ENC_READWRITE(enc->roi->res->buf, enc->roi->res->domains, 0);
|
||||
if (enc->enc_pic.enc_qp_map.qp_map_type != RENCODE_QP_MAP_TYPE_NONE)
|
||||
RADEON_ENC_READWRITE(enc->roi->res->buf, enc->roi->res->domains, 0);
|
||||
else {
|
||||
RADEON_ENC_CS(0); /* use null for roi buffer */
|
||||
RADEON_ENC_CS(0); /* use null for roi buffer */
|
||||
}
|
||||
RADEON_ENC_CS(0); /* qp_map pitch set to 0 for the ib */
|
||||
RADEON_ENC_END();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue