Mesa (master): nvc0/ir: allow abs, neg source modifiers with ceil, floor, trunc

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Sun May 6 13:04:17 PDT 2012


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

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat May  5 17:57:50 2012 +0200

nvc0/ir: allow abs,neg source modifiers with ceil,floor,trunc

---

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

diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
index 10c2d09..e4b9dc1 100644
--- a/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
+++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_target_nvc0.cpp
@@ -223,6 +223,9 @@ static const struct opProperties _initProps[] =
    { OP_ABS,    0x0, 0x0, 0x0, 0x0, 0x1, 0x0 },
    { OP_NEG,    0x0, 0x1, 0x0, 0x0, 0x1, 0x0 },
    { OP_CVT,    0x1, 0x1, 0x0, 0x8, 0x1, 0x0 },
+   { OP_CEIL,   0x1, 0x1, 0x0, 0x8, 0x1, 0x0 },
+   { OP_FLOOR,  0x1, 0x1, 0x0, 0x8, 0x1, 0x0 },
+   { OP_TRUNC,  0x1, 0x1, 0x0, 0x8, 0x1, 0x0 },
    { OP_AND,    0x0, 0x0, 0x3, 0x0, 0x2, 0x2 | 0x8 },
    { OP_OR,     0x0, 0x0, 0x3, 0x0, 0x2, 0x2 | 0x8 },
    { OP_XOR,    0x0, 0x0, 0x3, 0x0, 0x2, 0x2 | 0x8 },



More information about the mesa-commit mailing list