mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-28 22:21:03 +00:00
spirv-val: Label VUID 06997 (#4881)
This commit is contained in:
parent
54cd5e1963
commit
08c542d344
@ -233,7 +233,7 @@ spv_result_t ValidateMemoryScope(ValidationState_t& _, const Instruction* inst,
|
|||||||
!_.HasCapability(SpvCapabilitySubgroupBallotKHR) &&
|
!_.HasCapability(SpvCapabilitySubgroupBallotKHR) &&
|
||||||
!_.HasCapability(SpvCapabilitySubgroupVoteKHR)) {
|
!_.HasCapability(SpvCapabilitySubgroupVoteKHR)) {
|
||||||
return _.diag(SPV_ERROR_INVALID_DATA, inst)
|
return _.diag(SPV_ERROR_INVALID_DATA, inst)
|
||||||
<< spvOpcodeString(opcode)
|
<< _.VkErrorID(6997) << spvOpcodeString(opcode)
|
||||||
<< ": in Vulkan 1.0 environment Memory Scope is can not be "
|
<< ": in Vulkan 1.0 environment Memory Scope is can not be "
|
||||||
"Subgroup without SubgroupBallotKHR or SubgroupVoteKHR "
|
"Subgroup without SubgroupBallotKHR or SubgroupVoteKHR "
|
||||||
"declared";
|
"declared";
|
||||||
|
@ -1977,6 +1977,8 @@ std::string ValidationState_t::VkErrorID(uint32_t id,
|
|||||||
return VUID_WRAP(VUID-StandaloneSpirv-PushConstant-06808);
|
return VUID_WRAP(VUID-StandaloneSpirv-PushConstant-06808);
|
||||||
case 6925:
|
case 6925:
|
||||||
return VUID_WRAP(VUID-StandaloneSpirv-Uniform-06925);
|
return VUID_WRAP(VUID-StandaloneSpirv-Uniform-06925);
|
||||||
|
case 6997:
|
||||||
|
return VUID_WRAP(VUID-StandaloneSpirv-SubgroupVoteKHR-06997);
|
||||||
default:
|
default:
|
||||||
return ""; // unknown id
|
return ""; // unknown id
|
||||||
}
|
}
|
||||||
|
@ -359,6 +359,8 @@ OpControlBarrier %subgroup %subgroup %none
|
|||||||
|
|
||||||
CompileSuccessfully(GenerateShaderCode(body), SPV_ENV_VULKAN_1_0);
|
CompileSuccessfully(GenerateShaderCode(body), SPV_ENV_VULKAN_1_0);
|
||||||
ASSERT_EQ(SPV_ERROR_INVALID_DATA, ValidateInstructions(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"));
|
||||||
EXPECT_THAT(
|
EXPECT_THAT(
|
||||||
getDiagnosticString(),
|
getDiagnosticString(),
|
||||||
HasSubstr(
|
HasSubstr(
|
||||||
@ -765,6 +767,8 @@ OpMemoryBarrier %subgroup %acquire_release_uniform_workgroup
|
|||||||
|
|
||||||
CompileSuccessfully(GenerateShaderCode(body), SPV_ENV_VULKAN_1_0);
|
CompileSuccessfully(GenerateShaderCode(body), SPV_ENV_VULKAN_1_0);
|
||||||
ASSERT_EQ(SPV_ERROR_INVALID_DATA, ValidateInstructions(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"));
|
||||||
EXPECT_THAT(
|
EXPECT_THAT(
|
||||||
getDiagnosticString(),
|
getDiagnosticString(),
|
||||||
HasSubstr(
|
HasSubstr(
|
||||||
|
Loading…
Reference in New Issue
Block a user