| 298 | } |
| 299 | |
| 300 | spv_result_t ValidateConstantPipeStorage(ValidationState_t& _, |
| 301 | const Instruction* inst) { |
| 302 | const Instruction* result_type = _.FindDef(inst->type_id()); |
| 303 | if (result_type->opcode() != spv::Op::OpTypePipeStorage) { |
| 304 | return _.diag(SPV_ERROR_INVALID_DATA, inst) |
| 305 | << "Result Type must be OpTypePipeStorage."; |
| 306 | } |
| 307 | |
| 308 | // TODO - Should we validate the literal values? |
| 309 | // https://gitlab.khronos.org/spirv/SPIR-V/-/issues/914 |
| 310 | return SPV_SUCCESS; |
| 311 | } |
| 312 | |
| 313 | } // namespace |
| 314 |