Skip to content

Commit

Permalink
spirv-val: Update mislabeled VUIDs (#5964)
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-lunarg authored Jan 24, 2025
1 parent e02275e commit 173fe3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/val/validation_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2439,9 +2439,9 @@ std::string ValidationState_t::VkErrorID(uint32_t id,
case 7320:
return VUID_WRAP(VUID-StandaloneSpirv-ExecutionModel-07320);
case 7330:
return VUID_WRAP(VUID-StandaloneSpirv-ExecutionModel-07330);
return VUID_WRAP(VUID-StandaloneSpirv-MeshEXT-07330);
case 7331:
return VUID_WRAP(VUID-StandaloneSpirv-ExecutionModel-07331);
return VUID_WRAP(VUID-StandaloneSpirv-MeshEXT-07331);
case 7650:
return VUID_WRAP(VUID-StandaloneSpirv-Base-07650);
case 7651:
Expand Down
4 changes: 2 additions & 2 deletions test/val/val_modes_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ OpFunctionEnd
CompileSuccessfully(spirv, SPV_ENV_VULKAN_1_2);
EXPECT_THAT(SPV_ERROR_INVALID_DATA, ValidateInstructions(SPV_ENV_VULKAN_1_2));
EXPECT_THAT(getDiagnosticString(),
AnyVUID("VUID-StandaloneSpirv-ExecutionModel-07330"));
AnyVUID("VUID-StandaloneSpirv-MeshEXT-07330"));
}

TEST_F(ValidateModeExecution, VulkanBadMeshEXTOutputOutputPrimitivesEXT) {
Expand Down Expand Up @@ -1130,7 +1130,7 @@ OpFunctionEnd
CompileSuccessfully(spirv, SPV_ENV_VULKAN_1_2);
EXPECT_THAT(SPV_ERROR_INVALID_DATA, ValidateInstructions(SPV_ENV_VULKAN_1_2));
EXPECT_THAT(getDiagnosticString(),
AnyVUID("VUID-StandaloneSpirv-ExecutionModel-07331"));
AnyVUID("VUID-StandaloneSpirv-MeshEXT-07331"));
}

TEST_F(ValidateModeExecution, MeshNVOutputVertices) {
Expand Down

0 comments on commit 173fe3c

Please sign in to comment.