From f054230ea3cb17409233660efd562be28d914127 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 2 Apr 2020 14:07:51 -0700 Subject: [PATCH] freedreno: limit fp16 to frag and compute To avoid dealing w/ some backend varying linking issues when mixing precision vs geom/tess. Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/freedreno_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index a0abeb1a7b4..0838412138f 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -558,6 +558,8 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen, return 0; case PIPE_SHADER_CAP_FP16: return ((is_a5xx(screen) || is_a6xx(screen)) && + (shader == PIPE_SHADER_COMPUTE || + shader == PIPE_SHADER_FRAGMENT) && !(fd_mesa_debug & FD_DBG_NOFP16)); case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS: case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS: -- 2.30.2