From 31b3f56813e0a6feb291f55d96b9e764aa893c42 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sun, 17 Apr 2022 20:25:23 -0400 Subject: [PATCH] asahi: Workaround broken GLSL compiler https://gitlab.freedesktop.org/mesa/mesa/-/issues/6075 still hasn't been fixed (despite the bug being known for a year now..) Workaround the brokenness. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index d4055ba174e..996c61ae257 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -941,8 +941,10 @@ agx_get_shader_param(struct pipe_screen* pscreen, case PIPE_SHADER_CAP_GLSL_16BIT_CONSTS: case PIPE_SHADER_CAP_FP16_DERIVATIVES: case PIPE_SHADER_CAP_FP16_CONST_BUFFERS: - case PIPE_SHADER_CAP_INT16: return !is_no16; + case PIPE_SHADER_CAP_INT16: + /* GLSL compiler is broken. Flip this on when Panfrost does. */ + return false; case PIPE_SHADER_CAP_INT64_ATOMICS: case PIPE_SHADER_CAP_DROUND_SUPPORTED: