mesa/src/amd
Samuel Pitoiset 08a396033b aco: fix nir_op_frexp_exp with 16-bit floats and negative exponents
v_frexp_exp_i16_f16 returns the two's complement for negative
exponents. For example, with 0.333252 it returns 0.666504 for
the mantissa and 65535 for the exponent (-1 in decimal).

RADV/LLVM and AMDVLK do a v_bfe_i32 and AMDGPU-PRO uses SDWA with
the sign extension bit set. The latter is probably what we want to
do in long term but for now RA doesn't support changing non-SDWA
instructions to SDWA if useful/needed.

Fixes dEQP-VK.glsl.builtin.precision_fp16_storage16b.frexp.compute.*.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4546>
2020-04-15 10:12:44 +02:00
..
addrlib meson: inline inc_common 2020-03-28 21:36:54 +01:00
common ac,radv: add ac_gpu_info::has_double_rate_fp16 2020-04-09 13:30:54 +02:00
compiler aco: fix nir_op_frexp_exp with 16-bit floats and negative exponents 2020-04-15 10:12:44 +02:00
llvm radv: enable lowering of GS intrinsics for the LLVM backend 2020-04-08 08:24:05 +02:00
registers ac/registers: adjust some definitions for thread trace on GFX8 2020-03-06 08:00:39 +00:00
vulkan radv: use RMW packets for updating the maximum sample distance 2020-04-14 11:31:37 +02:00
Android.addrlib.mk android: amd/addrlib: add gfx10 support 2019-07-10 09:03:55 +02:00
Android.common.mk Android.mk: Tweak MESA_ENABLE_LLVM checks 2020-03-19 21:20:08 +00:00
Android.compiler.mk android: aco: fix PIPE_FORMAT related building errors 2020-03-04 22:25:36 +01:00
Android.mk android: aco: add support for libmesa_aco 2019-09-28 15:56:34 +02:00
Makefile.sources aco: rename aco_lower_bool_phis() -> aco_lower_phis() 2020-04-10 07:19:27 +00:00
meson.build amd: Move all amd/common code that depends on LLVM to amd/llvm. 2019-10-08 00:44:08 +00:00