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 <bhenden@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16412>
This commit is contained in:
Charmaine Lee 2022-05-08 23:42:41 -07:00 committed by Marge Bot
parent 6253a23eff
commit 742a873209

View file

@ -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,