Mesa (master): nv50/ir/tgsi: handle TGSI_OPCODE_IABS

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Mon Jan 9 23:44:34 UTC 2012


Module: Mesa
Branch: master
Commit: be1ae976a41de2803f14341580c3c98c58a80fe3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=be1ae976a41de2803f14341580c3c98c58a80fe3

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Jan  7 18:46:06 2012 +0100

nv50/ir/tgsi: handle TGSI_OPCODE_IABS

---

 .../drivers/nv50/codegen/nv50_ir_from_tgsi.cpp     |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
index 050f251..56182c3 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp
@@ -378,6 +378,7 @@ nv50_ir::DataType Instruction::inferSrcType() const
    case TGSI_OPCODE_IDIV:
    case TGSI_OPCODE_IMAX:
    case TGSI_OPCODE_IMIN:
+   case TGSI_OPCODE_IABS:
    case TGSI_OPCODE_INEG:
    case TGSI_OPCODE_ISGE:
    case TGSI_OPCODE_ISHR:
@@ -514,6 +515,7 @@ static nv50_ir::operation translateOpcode(uint opcode)
    NV50_IR_OPCODE_CASE(IDIV, DIV);
    NV50_IR_OPCODE_CASE(IMAX, MAX);
    NV50_IR_OPCODE_CASE(IMIN, MIN);
+   NV50_IR_OPCODE_CASE(IABS, ABS);
    NV50_IR_OPCODE_CASE(INEG, NEG);
    NV50_IR_OPCODE_CASE(ISGE, SET);
    NV50_IR_OPCODE_CASE(ISHR, SHR);
@@ -1737,6 +1739,7 @@ Converter::handleInstruction(const struct tgsi_full_instruction *insn)
    case TGSI_OPCODE_FLR:
    case TGSI_OPCODE_TRUNC:
    case TGSI_OPCODE_RCP:
+   case TGSI_OPCODE_IABS:
    case TGSI_OPCODE_INEG:
    case TGSI_OPCODE_NOT:
    case TGSI_OPCODE_DDX:




More information about the mesa-commit mailing list