r600/sfn: Disable FP64 for pre-CEDAR
authorGert Wollny <gert.wollny@collabora.com>
Mon, 1 Aug 2022 07:24:18 +0000 (09:24 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 1 Aug 2022 08:44:28 +0000 (08:44 +0000)
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 <gert.wollny@collabora.com>
Reviewed-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822>

src/gallium/drivers/r600/r600_pipe.c

index 5e4ee52..5796835 100644 (file)
@@ -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: