radv/video: add encode field for vcn4

Reviewed-by: Lynne <dev@lynne.ee>
Fixes: 967e4e09de ("radv/video: add h265 encode support")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31158>
(cherry picked from commit db5312f842)
This commit is contained in:
Dave Airlie 2024-09-12 17:06:13 +10:00 committed by Eric Engestrom
parent d0cc8a436b
commit 23a04fc9b4
2 changed files with 4 additions and 1 deletions

View file

@ -1234,7 +1234,7 @@
"description": "radv/video: add encode field for vcn4",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "967e4e09dee81b93cfb30195ab5e1878aca9dbd0",
"notes": null

View file

@ -476,6 +476,9 @@ radv_enc_session_init(struct radv_cmd_buffer *cmd_buffer, const struct VkVideoEn
radeon_emit(cs, 0); // slice output enabled.
}
radeon_emit(cs, vid->enc_session.display_remote);
if (pdev->enc_hw_ver >= RADV_VIDEO_ENC_HW_4) {
radeon_emit(cs, 0);
}
ENC_END;
}