From: Kenneth Graunke Date: Mon, 3 Jun 2019 18:54:21 +0000 (-0700) Subject: panfrost: Switch to nir_lower_doubles instead of lower_fmod64. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfb18f0a28a64d96b5a3800b8096dc5fbf813986;p=mesa.git panfrost: Switch to nir_lower_doubles instead of lower_fmod64. I don't think panfrost actually does doubles yet, but it at least claims to support PIPE_CAP_DOUBLES, so at least pretend to switch to the new lowering. Reviewed-by: Marek Olšák Acked-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.h b/src/gallium/drivers/panfrost/midgard/midgard_compile.h index 9e6ac02f84f..ba9e74adef3 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.h +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.h @@ -92,7 +92,6 @@ static const nir_shader_compiler_options midgard_nir_options = { .lower_flrp64 = true, .lower_ffract = true, .lower_fmod32 = true, - .lower_fmod64 = true, .lower_fdiv = true, .lower_idiv = true, .lower_isign = true, @@ -108,6 +107,8 @@ static const nir_shader_compiler_options midgard_nir_options = { .vertex_id_zero_based = true, .lower_extract_byte = true, .lower_extract_word = true, + + .lower_doubles_options = nir_lower_dmod, }; #endif