mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 18:10:17 +01:00
radv/video_enc: Cleanup slice count assert
This was left over when first enabling multiple slice encoding. Fixes:63e952ff2c("radv/video: Support encoding multiple slices") Reviewed-by: David Rosca <david.rosca@amd.com> (cherry picked from commitb6d6c1af73) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38010>
This commit is contained in:
parent
49bfddbd11
commit
be191ceff7
2 changed files with 1 additions and 4 deletions
|
|
@ -44,7 +44,7 @@
|
|||
"description": "radv/video_enc: Cleanup slice count assert",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "63e952ff2cccc666ee1c77823eeab36fa6a9bea2",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -890,7 +890,6 @@ radv_enc_slice_header(struct radv_cmd_buffer *cmd_buffer, const VkVideoEncodeInf
|
|||
uint32_t num_bits[RENCODE_SLICE_HEADER_TEMPLATE_MAX_NUM_INSTRUCTIONS] = {0};
|
||||
const struct VkVideoEncodeH264PictureInfoKHR *h264_picture_info =
|
||||
vk_find_struct_const(enc_info->pNext, VIDEO_ENCODE_H264_PICTURE_INFO_KHR);
|
||||
int slice_count = h264_picture_info->naluSliceEntryCount;
|
||||
const StdVideoEncodeH264PictureInfo *pic = h264_picture_info->pStdPictureInfo;
|
||||
const StdVideoH264SequenceParameterSet *sps =
|
||||
vk_video_find_h264_enc_std_sps(cmd_buffer->video.params, pic->seq_parameter_set_id);
|
||||
|
|
@ -903,8 +902,6 @@ radv_enc_slice_header(struct radv_cmd_buffer *cmd_buffer, const VkVideoEncodeInf
|
|||
unsigned int cdw_filled = 0;
|
||||
unsigned int bits_copied = 0;
|
||||
|
||||
assert(slice_count <= 1);
|
||||
|
||||
struct radv_device *device = radv_cmd_buffer_device(cmd_buffer);
|
||||
const struct radv_physical_device *pdev = radv_device_physical(device);
|
||||
struct radv_cmd_stream *cs = cmd_buffer->cs;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue