aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-08-22 11:15:50 -0500
committerMarge Bot <[email protected]>2020-06-23 17:43:54 +0000
commit561aaeeb48e06fa3185638eaee04e2fc665b64a2 (patch)
tree5fd4950ef1c0e474fe36d765d6c0139e2d8bcac5
parente0ab48e3ea0c1355b2da191bb3b0213f088d7582 (diff)
intel/eu: Add the RNDU opcode
We don't want to use it on gen5 and earlier because only RNDD can be done with a single instruction and we can implement RNDU(x) as -RNDD(-x) so it's better to just do that when we have the instruction. On gen6 and above, we may as well just use the right instruction. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>
-rw-r--r--src/intel/compiler/brw_eu.h1
-rw-r--r--src/intel/compiler/brw_eu_emit.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h
index 98de5153525..374ff75db45 100644
--- a/src/intel/compiler/brw_eu.h
+++ b/src/intel/compiler/brw_eu.h
@@ -220,6 +220,7 @@ ALU2(MUL)
ALU1(FRC)
ALU1(RNDD)
ALU1(RNDE)
+ALU1(RNDU)
ALU1(RNDZ)
ALU2(MAC)
ALU2(MACH)
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c
index bd59cf9ac47..7e9967144a6 100644
--- a/src/intel/compiler/brw_eu_emit.c
+++ b/src/intel/compiler/brw_eu_emit.c
@@ -1035,6 +1035,7 @@ ALU3(CSEL)
ALU1(FRC)
ALU1(RNDD)
ALU1(RNDE)
+ALU1(RNDU)
ALU1(RNDZ)
ALU2(MAC)
ALU2(MACH)