From: Jason Ekstrand Date: Thu, 22 Aug 2019 16:15:50 +0000 (-0500) Subject: intel/eu: Add the RNDU opcode X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=561aaeeb48e06fa3185638eaee04e2fc665b64a2;p=mesa.git 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 Reviewed-by: Kristian H. Kristensen Part-of: --- 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)