diff options
author | Karol Herbst <[email protected]> | 2017-12-21 13:33:23 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-03-17 10:33:28 +0100 |
commit | c69b814728d01a2082fa5b68d9df3638576539e2 (patch) | |
tree | 657091032a44181c1f26aef06aad0d22fee2c6e8 /src | |
parent | 8379dc300d744b4878f3d6e064bf65c5efa18e8c (diff) |
nv50/ir/nir: add skeleton for nir_intrinsic_instr
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp index 3fa590a4655..a99f3bbbc05 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp @@ -122,6 +122,7 @@ private: bool visit(nir_function *); bool visit(nir_if *); bool visit(nir_instr *); + bool visit(nir_intrinsic_instr *); bool visit(nir_jump_instr *); bool visit(nir_load_const_instr*); bool visit(nir_loop *); @@ -1313,6 +1314,8 @@ bool Converter::visit(nir_instr *insn) { switch (insn->type) { + case nir_instr_type_intrinsic: + return visit(nir_instr_as_intrinsic(insn)); case nir_instr_type_jump: return visit(nir_instr_as_jump(insn)); case nir_instr_type_load_const: @@ -1325,6 +1328,20 @@ Converter::visit(nir_instr *insn) } bool +Converter::visit(nir_intrinsic_instr *insn) +{ + nir_intrinsic_op op = insn->intrinsic; + + switch (op) { + default: + ERROR("unknown nir_intrinsic_op %s\n", nir_intrinsic_infos[op].name); + return false; + } + + return true; +} + +bool Converter::visit(nir_jump_instr *insn) { switch (insn->type) { |