intel/eu: Add the RNDU opcode
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 22 Aug 2019 16:15:50 +0000 (11:15 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 23 Jun 2020 17:43:54 +0000 (17:43 +0000)
commit561aaeeb48e06fa3185638eaee04e2fc665b64a2
tree5fd4950ef1c0e474fe36d765d6c0139e2d8bcac5
parente0ab48e3ea0c1355b2da191bb3b0213f088d7582
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@whitecape.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_emit.c