@@ -1498,6 +1498,41 @@ bool CoreChecks::PreCallValidateCmdDebugMarkerEndEXT(VkCommandBuffer commandBuff
1498
1498
return ValidateCmd (*cb_state, error_obj.location );
1499
1499
}
1500
1500
1501
+ bool CoreChecks::PreCallValidateCmdDebugMarkerInsertEXT (VkCommandBuffer commandBuffer,
1502
+ const VkDebugMarkerMarkerInfoEXT *pMarkerInfo,
1503
+ const ErrorObject &error_obj) const {
1504
+ auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1505
+ return ValidateCmd (*cb_state, error_obj.location );
1506
+ }
1507
+
1508
+ bool CoreChecks::PreCallValidateCmdBeginDebugUtilsLabelEXT (VkCommandBuffer commandBuffer, const VkDebugUtilsLabelEXT *pLabelInfo,
1509
+ const ErrorObject &error_obj) const {
1510
+ auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1511
+ return ValidateCmd (*cb_state, error_obj.location );
1512
+ }
1513
+
1514
+ bool CoreChecks::PreCallValidateCmdInsertDebugUtilsLabelEXT (VkCommandBuffer commandBuffer, const VkDebugUtilsLabelEXT *pLabelInfo,
1515
+ const ErrorObject &error_obj) const {
1516
+ auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1517
+ return ValidateCmd (*cb_state, error_obj.location );
1518
+ }
1519
+
1520
+ bool CoreChecks::PreCallValidateCmdEndDebugUtilsLabelEXT (VkCommandBuffer commandBuffer, const ErrorObject &error_obj) const {
1521
+ bool skip = false ;
1522
+ auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1523
+ skip |= ValidateCmd (*cb_state, error_obj.location );
1524
+
1525
+ if (cb_state->IsPrimary () || enabled_features.nestedCommandBuffer ) {
1526
+ return skip;
1527
+ }
1528
+
1529
+ if (cb_state->GetLabelStackDepth () < 1 ) {
1530
+ skip |= LogError (" VUID-vkCmdEndDebugUtilsLabelEXT-commandBuffer-01913" , commandBuffer, error_obj.location ,
1531
+ " called without a corresponding vkCmdBeginDebugUtilsLabelEXT first" );
1532
+ }
1533
+ return skip;
1534
+ }
1535
+
1501
1536
bool CoreChecks::ValidateCmdDrawStrideWithStruct (const vvl::CommandBuffer &cb_state, const std::string &vuid, const uint32_t stride,
1502
1537
Struct struct_name, const uint32_t struct_size, const Location &loc) const {
1503
1538
bool skip = false ;
@@ -1590,7 +1625,6 @@ bool CoreChecks::PreCallValidateCmdBeginTransformFeedbackEXT(VkCommandBuffer com
1590
1625
bool skip = false ;
1591
1626
auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1592
1627
skip |= ValidateCmd (*cb_state, error_obj.location );
1593
- if (skip) return skip; // basic validation failed, might have null pointers
1594
1628
1595
1629
const auto *pipe = cb_state->lastBound [VK_PIPELINE_BIND_POINT_GRAPHICS].pipeline_state ;
1596
1630
if (!pipe && !enabled_features.shaderObject ) {
@@ -1678,6 +1712,7 @@ bool CoreChecks::PreCallValidateCmdEndTransformFeedbackEXT(VkCommandBuffer comma
1678
1712
const ErrorObject &error_obj) const {
1679
1713
bool skip = false ;
1680
1714
auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1715
+ skip |= ValidateCmd (*cb_state, error_obj.location );
1681
1716
if (!cb_state->transform_feedback_active ) {
1682
1717
skip |= LogError (" VUID-vkCmdEndTransformFeedbackEXT-None-02375" , commandBuffer, error_obj.location ,
1683
1718
" transform feedback is not active." );
@@ -1770,7 +1805,9 @@ bool CoreChecks::PreCallValidateCmdBeginConditionalRenderingEXT(
1770
1805
bool skip = false ;
1771
1806
1772
1807
auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1773
- if (cb_state && cb_state->conditional_rendering_active ) {
1808
+ skip |= ValidateCmd (*cb_state, error_obj.location );
1809
+
1810
+ if (cb_state->conditional_rendering_active ) {
1774
1811
skip |= LogError (" VUID-vkCmdBeginConditionalRenderingEXT-None-01980" , commandBuffer, error_obj.location ,
1775
1812
" Conditional rendering is already active." );
1776
1813
}
@@ -1806,9 +1843,7 @@ bool CoreChecks::PreCallValidateCmdEndConditionalRenderingEXT(VkCommandBuffer co
1806
1843
bool skip = false ;
1807
1844
1808
1845
auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1809
- if (!cb_state) {
1810
- return skip;
1811
- }
1846
+ skip |= ValidateCmd (*cb_state, error_obj.location );
1812
1847
1813
1848
if (!cb_state->conditional_rendering_active ) {
1814
1849
skip |= LogError (" VUID-vkCmdEndConditionalRenderingEXT-None-01985" , commandBuffer, error_obj.location ,
@@ -1832,9 +1867,8 @@ bool CoreChecks::PreCallValidateCmdEndConditionalRenderingEXT(VkCommandBuffer co
1832
1867
1833
1868
bool CoreChecks::PreCallValidateCmdBindShadingRateImageNV (VkCommandBuffer commandBuffer, VkImageView imageView,
1834
1869
VkImageLayout imageLayout, const ErrorObject &error_obj) const {
1835
- auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1836
1870
bool skip = false ;
1837
-
1871
+ auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1838
1872
skip |= ValidateCmd (*cb_state, error_obj.location );
1839
1873
1840
1874
if (!enabled_features.shadingRateImage ) {
@@ -1899,21 +1933,6 @@ bool CoreChecks::PreCallValidateCmdBindShadingRateImageNV(VkCommandBuffer comman
1899
1933
return skip;
1900
1934
}
1901
1935
1902
- bool CoreChecks::PreCallValidateCmdEndDebugUtilsLabelEXT (VkCommandBuffer commandBuffer, const ErrorObject &error_obj) const {
1903
- auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1904
- bool skip = false ;
1905
-
1906
- if (cb_state->IsPrimary () || enabled_features.nestedCommandBuffer ) {
1907
- return skip;
1908
- }
1909
-
1910
- if (cb_state->GetLabelStackDepth () < 1 ) {
1911
- skip |= LogError (" VUID-vkCmdEndDebugUtilsLabelEXT-commandBuffer-01913" , commandBuffer, error_obj.location ,
1912
- " called without a corresponding vkCmdBeginDebugUtilsLabelEXT first" );
1913
- }
1914
- return skip;
1915
- }
1916
-
1917
1936
bool CoreChecks::ValidateVkConvertCooperativeVectorMatrixInfoNV (const LogObjectList &objlist,
1918
1937
const VkConvertCooperativeVectorMatrixInfoNV &info,
1919
1938
const Location &info_loc) const {
@@ -1961,6 +1980,8 @@ bool CoreChecks::PreCallValidateCmdConvertCooperativeVectorMatrixNV(VkCommandBuf
1961
1980
const VkConvertCooperativeVectorMatrixInfoNV *pInfos,
1962
1981
const ErrorObject &error_obj) const {
1963
1982
bool skip = false ;
1983
+ auto cb_state = GetRead<vvl::CommandBuffer>(commandBuffer);
1984
+ skip |= ValidateCmd (*cb_state, error_obj.location );
1964
1985
1965
1986
for (uint32_t i = 0 ; i < infoCount; ++i) {
1966
1987
auto const &info = pInfos[i];
0 commit comments