From: Gert Wollny Date: Mon, 1 Aug 2022 07:24:18 +0000 (+0200) Subject: r600/sfn: Disable FP64 for pre-CEDAR X-Git-Tag: upstream/22.3.5~5386 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14ab267c76fddf86c5c5bb6bad02648071ceb1b0;p=platform%2Fupstream%2Fmesa.git 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: --- diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 5e4ee52..5796835 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: