Mesa (master): panfrost/midgard: Lower f2b32 to fne
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Mar 26 23:37:32 UTC 2019
Module: Mesa
Branch: master
Commit: ae43b8faa7d8feba79ec9b9bec17f3a089a42cbf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ae43b8faa7d8feba79ec9b9bec17f3a089a42cbf
Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date: Mon Mar 25 00:53:46 2019 +0000
panfrost/midgard: Lower f2b32 to fne
Fixes
dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_bvec2_x_vertex
Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
---
src/gallium/drivers/panfrost/midgard/midgard_compile.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
index 70ad32dce83..bef4454f759 100644
--- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c
+++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c
@@ -987,6 +987,13 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
ALU_CASE(ine32, ine);
ALU_CASE(ilt32, ilt);
+ /* Likewise, we don't have a dedicated f2b32 instruction, but
+ * we can do a "not equal to 0.0" test. Since an inline
+ * constant vec4(0.0) is the default, we don't need to do any
+ * special lowering */
+
+ ALU_CASE(f2b32, fne);
+
ALU_CASE(frcp, frcp);
ALU_CASE(frsq, frsqrt);
ALU_CASE(fsqrt, fsqrt);
More information about the mesa-commit
mailing list