From 14ab267c76fddf86c5c5bb6bad02648071ceb1b0 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Mon, 1 Aug 2022 09:24:18 +0200 Subject: [PATCH] r600/sfn: Disable FP64 for pre-CEDAR There is no point in trying to get the softfp to work here, since these cards don't support tesselation shaders, they will never get OpenGL 4.0. v2: Fix formatting (Filip) Signed-off-by: Gert Wollny Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r600/r600_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 5e4ee52d874..5796835ab08 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -414,8 +414,9 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) rscreen->b.family == CHIP_CYPRESS || rscreen->b.family == CHIP_HEMLOCK) return 1; - if (is_nir_enabled(&rscreen->b)) - return 1; + if (is_nir_enabled(&rscreen->b) && + rscreen->b.family >= CHIP_CEDAR) + return 1; return 0; case PIPE_CAP_TWO_SIDED_COLOR: