From 742a87320957a37ff3db6fb0981f3ae533ce17e5 Mon Sep 17 00:00:00 2001 From: Charmaine Lee Date: Sun, 8 May 2022 23:42:41 -0700 Subject: [PATCH] svga/nir: enable lower double option There is no translation support for dfloor, mod, and pow in svga_tgsi_vgpu10, just enable the lowering passes in the nir compile option. Reviewed-by: Neha Bhende Part-of: --- src/gallium/drivers/svga/svga_screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 26e2153c797..205f79783fe 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -774,12 +774,15 @@ static const nir_shader_compiler_options svga_vgpu9_compiler_options = { }; static const nir_shader_compiler_options svga_vgpu10_compiler_options = { + .lower_doubles_options = nir_lower_dfloor, .lower_extract_byte = true, .lower_extract_word = true, .lower_insert_byte = true, .lower_insert_word = true, .lower_fdph = true, .lower_flrp64 = true, + .lower_fmod = true, + .lower_fpow = true, .lower_rotate = true, .lower_uniforms_to_ubo = true, .lower_vector_cmp = true,