Mesa (master): intel/eu: Add the RNDU opcode
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 23 17:53:20 UTC 2020
Module: Mesa
Branch: master
Commit: 561aaeeb48e06fa3185638eaee04e2fc665b64a2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=561aaeeb48e06fa3185638eaee04e2fc665b64a2
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Thu Aug 22 11:15:50 2019 -0500
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 <kenneth at whitecape.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>
---
src/intel/compiler/brw_eu.h | 1 +
src/intel/compiler/brw_eu_emit.c | 1 +
2 files changed, 2 insertions(+)
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)
More information about the mesa-commit
mailing list