radv/video: set TemporalId correctly

This is only relevant for hierarchical coding using sub-layers.

Fixes: 967e4e09de ("radv/video: add h265 encode support")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Colin Marc <hi@colinmarc.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31303>
(cherry picked from commit 88dacc3d80)
This commit is contained in:
Colin Marc 2024-09-22 17:13:08 +02:00 committed by Eric Engestrom
parent 24589d8247
commit 288a68903e
2 changed files with 2 additions and 2 deletions

View file

@ -1264,7 +1264,7 @@
"description": "radv/video: set TemporalId correctly",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "967e4e09dee81b93cfb30195ab5e1878aca9dbd0",
"notes": null

View file

@ -940,7 +940,7 @@ radv_enc_slice_header_hevc(struct radv_cmd_buffer *cmd_buffer, const VkVideoEnco
radv_enc_code_fixed_bits(cmd_buffer, 0x0, 1);
radv_enc_code_fixed_bits(cmd_buffer, nal_unit_type, 6);
radv_enc_code_fixed_bits(cmd_buffer, 0x0, 6);
radv_enc_code_fixed_bits(cmd_buffer, 0x1, 3);
radv_enc_code_fixed_bits(cmd_buffer, pic->TemporalId + 1, 3);
radv_enc_flush_headers(cmd_buffer);
instruction[inst_index] = RENCODE_HEADER_INSTRUCTION_COPY;