mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-25 04:50:04 +00:00
spirv-val: Label new Vulkan VUID 07951 (#5154)
This commit is contained in:
parent
9743701ed5
commit
8e6563b913
@ -240,7 +240,7 @@ spv_result_t ValidateMemoryScope(ValidationState_t& _, const Instruction* inst,
|
||||
!_.HasCapability(spv::Capability::SubgroupBallotKHR) &&
|
||||
!_.HasCapability(spv::Capability::SubgroupVoteKHR)) {
|
||||
return _.diag(SPV_ERROR_INVALID_DATA, inst)
|
||||
<< _.VkErrorID(6997) << spvOpcodeString(opcode)
|
||||
<< _.VkErrorID(7951) << spvOpcodeString(opcode)
|
||||
<< ": in Vulkan 1.0 environment Memory Scope is can not be "
|
||||
"Subgroup without SubgroupBallotKHR or SubgroupVoteKHR "
|
||||
"declared";
|
||||
|
@ -2163,8 +2163,6 @@ std::string ValidationState_t::VkErrorID(uint32_t id,
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-PushConstant-06808);
|
||||
case 6925:
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-Uniform-06925);
|
||||
case 6997:
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-SubgroupVoteKHR-06997);
|
||||
case 7102:
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-MeshEXT-07102);
|
||||
case 7320:
|
||||
@ -2179,6 +2177,8 @@ std::string ValidationState_t::VkErrorID(uint32_t id,
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-Base-07652);
|
||||
case 7703:
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-Component-07703);
|
||||
case 7951:
|
||||
return VUID_WRAP(VUID-StandaloneSpirv-SubgroupVoteKHR-07951);
|
||||
default:
|
||||
return ""; // unknown id
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ OpControlBarrier %subgroup %subgroup %none
|
||||
CompileSuccessfully(GenerateShaderCode(body), SPV_ENV_VULKAN_1_0);
|
||||
ASSERT_EQ(SPV_ERROR_INVALID_DATA, ValidateInstructions(SPV_ENV_VULKAN_1_0));
|
||||
EXPECT_THAT(getDiagnosticString(),
|
||||
AnyVUID("VUID-StandaloneSpirv-SubgroupVoteKHR-06997"));
|
||||
AnyVUID("VUID-StandaloneSpirv-SubgroupVoteKHR-07951"));
|
||||
EXPECT_THAT(
|
||||
getDiagnosticString(),
|
||||
HasSubstr(
|
||||
@ -775,7 +775,7 @@ OpMemoryBarrier %subgroup %acquire_release_uniform_workgroup
|
||||
CompileSuccessfully(GenerateShaderCode(body), SPV_ENV_VULKAN_1_0);
|
||||
ASSERT_EQ(SPV_ERROR_INVALID_DATA, ValidateInstructions(SPV_ENV_VULKAN_1_0));
|
||||
EXPECT_THAT(getDiagnosticString(),
|
||||
AnyVUID("VUID-StandaloneSpirv-SubgroupVoteKHR-06997"));
|
||||
AnyVUID("VUID-StandaloneSpirv-SubgroupVoteKHR-07951"));
|
||||
EXPECT_THAT(
|
||||
getDiagnosticString(),
|
||||
HasSubstr(
|
||||
|
Loading…
Reference in New Issue
Block a user