Skip to content

Commit af2d4ac

Browse files
committed
Adding the QCOM tile shading support
1 parent 5924f60 commit af2d4ac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

source/val/validate_mode_setting.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ spv_result_t ValidateEntryPoint(ValidationState_t& _, const Instruction* inst) {
318318
}
319319
if (!ok) {
320320
return _.diag(SPV_ERROR_INVALID_DATA, inst)
321-
<< _.VkErrorID(6426)
321+
<< (_.HasCapability(spv::Capability::TileShadingQCOM)
322+
? _.VkErrorID(10685)
323+
: _.VkErrorID(6426))
322324
<< "In the Vulkan environment, GLCompute execution model "
323325
"entry points require either the "
324326
<< (_.HasCapability(spv::Capability::TileShadingQCOM)

source/val/validation_state.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2574,6 +2574,8 @@ std::string ValidationState_t::VkErrorID(uint32_t id,
25742574
return VUID_WRAP(VUID-StandaloneSpirv-Component-10583);
25752575
case 10684:
25762576
return VUID_WRAP(VUID-StandaloneSpirv-None-10684);
2577+
case 10685:
2578+
return VUID_WRAP(VUID-StandaloneSpirv-None-10685);
25772579
default:
25782580
return ""; // unknown id
25792581
}

0 commit comments

Comments
 (0)