vulkan/video: Fix coding AV1 seq_choose_screen_content_tools = 1

Fixes: 724655bfc6 ("vulkan/video: add support for AV1 encoding to runtime")
Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
(cherry picked from commit 22803f0d50)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
This commit is contained in:
David Rosca 2025-11-11 11:02:19 +01:00 committed by Dylan Baker
parent 1cbce7ea76
commit 51a21fa57e
2 changed files with 2 additions and 2 deletions

View file

@ -454,7 +454,7 @@
"description": "vulkan/video: Fix coding AV1 seq_choose_screen_content_tools = 1",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "724655bfc6b70deec343a963d8728d1bd641db44",
"notes": null

View file

@ -3167,7 +3167,7 @@ vk_video_encode_av1_seq_hdr(const struct vk_video_session_parameters *params,
if (seq_hdr->seq_force_screen_content_tools > 0) {
if (seq_hdr->seq_force_integer_mv == 2 /* SELECT_INTEGER_MV */)
vl_bitstream_put_bits(&enc, 1, seq_hdr->seq_force_integer_mv); /* seq_choose_integer_mv = 1 */
vl_bitstream_put_bits(&enc, 1, 1); /* seq_choose_integer_mv = 1 */
else {
vl_bitstream_put_bits(&enc, 1, 0); /* seq_choose_integer_mv = 0 */
vl_bitstream_put_bits(&enc, 1, seq_hdr->seq_force_integer_mv);