| 2390 | } |
| 2391 | |
| 2392 | spv_result_t ValidateImageSparseTexelsResident(ValidationState_t& _, |
| 2393 | const Instruction* inst) { |
| 2394 | if (!_.IsBoolScalarType(inst->type_id())) { |
| 2395 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 2396 | << "Expected Result Type to be bool scalar type"; |
| 2397 | } |
| 2398 | |
| 2399 | const uint32_t resident_code_type = _.GetOperandTypeId(inst, 2); |
| 2400 | if (!_.IsIntScalarType(resident_code_type)) { |
| 2401 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 2402 | << "Expected Resident Code to be int scalar"; |
| 2403 | } |
| 2404 | |
| 2405 | return SPV_SUCCESS; |
| 2406 | } |
| 2407 | |
| 2408 | spv_result_t ValidateImageProcessingQCOMDecoration(ValidationState_t& _, int id, |
| 2409 | spv::Decoration decor) { |
no test coverage detected