aboutsummaryrefslogtreecommitdiff
path: root/source/fuzz/fact_manager/constant_uniform_facts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fuzz/fact_manager/constant_uniform_facts.cpp')
-rw-r--r--source/fuzz/fact_manager/constant_uniform_facts.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/fuzz/fact_manager/constant_uniform_facts.cpp b/source/fuzz/fact_manager/constant_uniform_facts.cpp
index 461859bd..a629c0d3 100644
--- a/source/fuzz/fact_manager/constant_uniform_facts.cpp
+++ b/source/fuzz/fact_manager/constant_uniform_facts.cpp
@@ -63,7 +63,7 @@ std::vector<uint32_t> ConstantUniformFacts::GetConstantWords(
bool ConstantUniformFacts::DataMatches(
const opt::Instruction& constant_instruction,
const protobufs::FactConstantUniform& constant_uniform_fact) {
- assert(constant_instruction.opcode() == spv::Op::OpConstant);
+ assert(constant_instruction.opcode() == SpvOpConstant);
std::vector<uint32_t> data_in_constant;
for (uint32_t i = 0; i < constant_instruction.NumInOperands(); i++) {
data_in_constant.push_back(constant_instruction.GetSingleWordInOperand(i));
@@ -95,7 +95,7 @@ ConstantUniformFacts::GetUniformDescriptorsForConstant(
uint32_t constant_id) const {
std::vector<protobufs::UniformBufferElementDescriptor> result;
auto constant_inst = ir_context_->get_def_use_mgr()->GetDef(constant_id);
- assert(constant_inst->opcode() == spv::Op::OpConstant &&
+ assert(constant_inst->opcode() == SpvOpConstant &&
"The given id must be that of a constant");
auto type_id = constant_inst->type_id();
for (auto& fact_and_type_id : facts_and_type_ids_) {
@@ -175,9 +175,8 @@ bool ConstantUniformFacts::MaybeAddFact(
return false;
}
- assert(spv::Op::OpVariable == uniform_variable->opcode());
- assert(spv::StorageClass::Uniform ==
- spv::StorageClass(uniform_variable->GetSingleWordInOperand(0)));
+ assert(SpvOpVariable == uniform_variable->opcode());
+ assert(SpvStorageClassUniform == uniform_variable->GetSingleWordInOperand(0));
auto should_be_uniform_pointer_type =
ir_context_->get_type_mgr()->GetType(uniform_variable->type_id());
@@ -185,7 +184,7 @@ bool ConstantUniformFacts::MaybeAddFact(
return false;
}
if (should_be_uniform_pointer_type->AsPointer()->storage_class() !=
- spv::StorageClass::Uniform) {
+ SpvStorageClassUniform) {
return false;
}
auto should_be_uniform_pointer_instruction =