Mesa (master): panfrost: Don't expose fp16 support on Bifrost unless explicitly requested

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 17 08:24:50 UTC 2020


Module: Mesa
Branch: master
Commit: aaecb65b89f304c187f223efa14e11b5b175a867
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=aaecb65b89f304c187f223efa14e11b5b175a867

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Mon Nov 16 14:38:22 2020 +0100

panfrost: Don't expose fp16 support on Bifrost unless explicitly requested

Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7636>

---

 src/gallium/drivers/panfrost/pan_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 24ba288be13..2abe32a4275 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -344,7 +344,7 @@ panfrost_get_shader_param(struct pipe_screen *screen,
 
         case PIPE_SHADER_CAP_FP16:
         case PIPE_SHADER_CAP_GLSL_16BIT_CONSTS:
-                return (!is_nofp16 && (!is_bifrost || is_deqp)) || is_fp16;
+                return (!is_nofp16 && !is_bifrost) || is_fp16;
 
         case PIPE_SHADER_CAP_FP16_DERIVATIVES:
         case PIPE_SHADER_CAP_INT16:



More information about the mesa-commit mailing list