summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorThong Thai <thong.thai@amd.com>2021-12-06 11:47:31 -0500
committerMarge Bot <emma+marge@anholt.net>2021-12-08 03:27:42 +0000
commit96b276b3270f82ac90baea37301b96f900684860 (patch)
treee44c36642881d5be750f48cf53af6beefa280eef /src/gallium/drivers/radeon
parente44fef8dd66cf8ac1ced60bb674d526e656ca938 (diff)
radeon: hardcode uvd/vce encoder not_referenced value to false
Sets the not_referenced parameter to be the same as the previously hardcoded frontends/va value (false) to ensure UVD/VCE encoding functionality remains unaffected by the change in frontends/va code. This commit will eventually be reverted once more testing is completed. Fixes: a90802ef644 ("frontends/va/enc: allow for frames to be marked as (not) referenced") Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13915>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/radeon_uvd_enc.c2
-rw-r--r--src/gallium/drivers/radeon/radeon_vce_52.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd_enc.c b/src/gallium/drivers/radeon/radeon_uvd_enc.c
index 94287b49a10..835ca1a42ce 100644
--- a/src/gallium/drivers/radeon/radeon_uvd_enc.c
+++ b/src/gallium/drivers/radeon/radeon_uvd_enc.c
@@ -57,7 +57,7 @@ static void radeon_uvd_enc_get_param(struct radeon_uvd_encoder *enc,
enc->enc_pic.frame_num = pic->frame_num;
enc->enc_pic.pic_order_cnt = pic->pic_order_cnt;
enc->enc_pic.pic_order_cnt_type = pic->pic_order_cnt_type;
- enc->enc_pic.not_referenced = pic->not_referenced;
+ enc->enc_pic.not_referenced = false;
enc->enc_pic.is_iframe = (pic->picture_type == PIPE_H2645_ENC_PICTURE_TYPE_IDR) ||
(pic->picture_type == PIPE_H2645_ENC_PICTURE_TYPE_I);
diff --git a/src/gallium/drivers/radeon/radeon_vce_52.c b/src/gallium/drivers/radeon/radeon_vce_52.c
index f650c0e6e55..5dc6f733a38 100644
--- a/src/gallium/drivers/radeon/radeon_vce_52.c
+++ b/src/gallium/drivers/radeon/radeon_vce_52.c
@@ -169,7 +169,7 @@ void si_vce_52_get_param(struct rvce_encoder *enc, struct pipe_h264_enc_picture_
enc->enc_pic.pic_order_cnt = pic->pic_order_cnt;
enc->enc_pic.ref_idx_l0 = pic->ref_idx_l0;
enc->enc_pic.ref_idx_l1 = pic->ref_idx_l1;
- enc->enc_pic.not_referenced = pic->not_referenced;
+ enc->enc_pic.not_referenced = false;
if (enc->dual_inst)
enc->enc_pic.addrmode_arraymode_disrdo_distwoinstants = 0x00000201;
else