Skip to content

Commit bb8c5ac

Browse files
aqnuepspencer-lunarg
authored andcommitted
tests: Handle more H.26x intra refresh cap corner cases
1 parent cb2acdf commit bb8c5ac

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/unit/video_encode_intra_refresh.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ TEST_F(NegativeVideoEncodeIntraRefresh, PerPicturePartitionNonRectTooManySlicesH
559559

560560
const uint32_t slice_count = config.MaxEncodeH264MBRowCount() + 1;
561561

562+
if ((config.EncodeCapsH264()->flags & VK_VIDEO_ENCODE_H264_CAPABILITY_ROW_UNALIGNED_SLICE_BIT_KHR) == 0) {
563+
m_errorMonitor->SetAllowedFailureMsg("VUID-vkCmdEncodeVideoKHR-naluSliceEntryCount-08312");
564+
}
562565
if (slice_count > config.EncodeCapsH264()->maxSliceCount) {
563566
m_errorMonitor->SetAllowedFailureMsg("VUID-VkVideoEncodeH264PictureInfoKHR-naluSliceEntryCount-08301");
564567
}
@@ -774,6 +777,9 @@ TEST_F(NegativeVideoEncodeIntraRefresh, PerPicturePartitionNonRectTooManySliceSe
774777

775778
const uint32_t slice_segment_count = config.MaxEncodeH265CTBRowCount() + 1;
776779

780+
if ((config.EncodeCapsH265()->flags & VK_VIDEO_ENCODE_H265_CAPABILITY_ROW_UNALIGNED_SLICE_SEGMENT_BIT_KHR) == 0) {
781+
m_errorMonitor->SetAllowedFailureMsg("VUID-vkCmdEncodeVideoKHR-naluSliceSegmentEntryCount-08313");
782+
}
777783
if (slice_segment_count > config.EncodeCapsH265()->maxSliceSegmentCount) {
778784
m_errorMonitor->SetAllowedFailureMsg("VUID-VkVideoEncodeH265PictureInfoKHR-naluSliceSegmentEntryCount-08306");
779785
}

0 commit comments

Comments
 (0)