Skip to content

Commit 5924f60

Browse files
committed
[spirv-val] Add the validation checks for SPV_QCOM_tile_shading
1 parent 33c6261 commit 5924f60

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/val/validate_mode_setting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ spv_result_t ValidateDuplicateExecutionModes(ValidationState_t& _) {
10001000
std::set<PerOperandKey> seen_per_operand;
10011001

10021002
const auto lookupMode = [](spv::ExecutionMode mode) -> std::string {
1003-
spvtools::OperandDesc* desc = nullptr;
1003+
const spvtools::OperandDesc* desc = nullptr;
10041004
if (spvtools::LookupOperand(SPV_OPERAND_TYPE_EXECUTION_MODE,
10051005
static_cast<uint32_t>(mode),
10061006
&desc) == SPV_SUCCESS) {

source/val/validation_state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ void ValidationState_t::RegisterCapability(spv::Capability cap) {
368368
if (module_capabilities_.contains(cap)) return;
369369

370370
module_capabilities_.insert(cap);
371-
spvtools::OperandDesc* desc = nullptr;
371+
const spvtools::OperandDesc* desc = nullptr;
372372
if (SPV_SUCCESS == spvtools::LookupOperand(SPV_OPERAND_TYPE_CAPABILITY,
373373
uint32_t(cap), &desc)) {
374374
for (auto capability : CapabilitySet(desc->capabilities_range.count(),

test/val/val_capability_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ spv_result_t spvCoreOperandTableNameLookup(spv_target_env env,
23752375
const size_t nameLength) {
23762376
if (!name) return SPV_ERROR_INVALID_POINTER;
23772377

2378-
spvtools::OperandDesc* entry = nullptr;
2378+
const spvtools::OperandDesc* entry = nullptr;
23792379
if (SPV_SUCCESS == spvtools::LookupOperand(type, name, nameLength, &entry)) {
23802380
// Check for min version only.
23812381
if (spvVersionForTargetEnv(env) >= entry->minVersion) {

0 commit comments

Comments
 (0)