r600: Enable compute shaders for NIR code path
authorGert Wollny <gert.wollny@collabora.com>
Sun, 5 Jul 2020 14:56:37 +0000 (16:56 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Sun, 9 Aug 2020 13:45:36 +0000 (13:45 +0000)
There are still regessions compared to TGSI, but there are also many
fixes.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6025>

src/gallium/drivers/r600/r600_pipe.c

index e24bd1e..eb26074 100644 (file)
@@ -559,14 +559,10 @@ static int r600_get_shader_param(struct pipe_screen* pscreen,
                if (rscreen->b.info.drm_minor >= 37)
                        break;
                return 0;
-      /* With NIR we currently disable TES, TCS and COMP shaders */
        case PIPE_SHADER_TESS_CTRL:
        case PIPE_SHADER_TESS_EVAL:
-               if (rscreen->b.family >= CHIP_CEDAR)
-                       break;
-               /* fallthrough */
        case PIPE_SHADER_COMPUTE:
-               if (!is_nir_enabled(&rscreen->b))
+               if (rscreen->b.family >= CHIP_CEDAR)
                        break;
                /* fallthrough */
        default: