[Mesa-dev] [PATCH 2/2] radv: do not lower 16-bit FMA

Samuel Pitoiset samuel.pitoiset at gmail.com
Mon Mar 25 15:13:14 UTC 2019


The lowering needs to be disabled for sufficient precision to pass
deqp-vk's 16-bit fma test on radv.

Original patch from Rhys.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_shader.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c
index 63d4147460c..05041b2eae6 100644
--- a/src/amd/vulkan/radv_shader.c
+++ b/src/amd/vulkan/radv_shader.c
@@ -70,7 +70,6 @@ static const struct nir_shader_compiler_options nir_options = {
 	.lower_unpack_unorm_4x8 = true,
 	.lower_extract_byte = true,
 	.lower_extract_word = true,
-	.lower_ffma16 = true,
 	.lower_ffma32 = true,
 	.lower_ffma64 = true,
 	.lower_fpow = true,
-- 
2.21.0



More information about the mesa-dev mailing list