radeonsi/gfx9: simplify condition for on-chip ESGS
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 16 Nov 2017 16:23:43 +0000 (17:23 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 28 Nov 2017 08:34:43 +0000 (09:34 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index a997ab01039613f7a932794e81a013bce25ebd43..fc4bab8c9cf0d64f0949a0adb71e2b20bc3bbcf7 100644 (file)
@@ -4739,9 +4739,7 @@ static void create_function(struct si_shader_context *ctx)
        if (shader->key.as_ls ||
            ctx->type == PIPE_SHADER_TESS_CTRL ||
            /* GFX9 has the ESGS ring buffer in LDS. */
-           (ctx->screen->b.chip_class >= GFX9 &&
-            (shader->key.as_es ||
-             ctx->type == PIPE_SHADER_GEOMETRY)))
+           type == SI_SHADER_MERGED_VERTEX_OR_TESSEVAL_GEOMETRY)
                ac_declare_lds_as_pointer(&ctx->ac);
 }