Module: Mesa Branch: main Commit: 742a87320957a37ff3db6fb0981f3ae533ce17e5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=742a87320957a37ff3db6fb0981f3ae533ce17e5
Author: Charmaine Lee <[email protected]> Date: Sun May 8 23:42:41 2022 -0700 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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16412> --- 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,
