[Mesa-dev] [PATCH] r600g/compute: Don't flush the cs in pipe_context::launch_grid()

Marek Olšák maraeo at gmail.com
Tue Aug 27 13:45:51 PDT 2013


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Tue, Aug 27, 2013 at 3:05 AM, Tom Stellard <tom at stellard.net> wrote:
> From: Tom Stellard <thomas.stellard at amd.com>
>
> This is the state tracker's responsibility.
> ---
>  src/gallium/drivers/r600/evergreen_compute.c | 11 +----------
>  1 file changed, 1 insertion(+), 10 deletions(-)
>
> diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
> index 9b2bae3..4fa3d2f 100644
> --- a/src/gallium/drivers/r600/evergreen_compute.c
> +++ b/src/gallium/drivers/r600/evergreen_compute.c
> @@ -473,6 +473,7 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
>                       R600_CONTEXT_INV_VERTEX_CACHE |
>                       R600_CONTEXT_INV_TEX_CACHE;
>         r600_flush_emit(ctx);
> +       ctx->flags = 0;
>
>  #if 0
>         COMPUTE_DBG(ctx->screen, "cdw: %i\n", cs->cdw);
> @@ -481,16 +482,6 @@ static void compute_emit_cs(struct r600_context *ctx, const uint *block_layout,
>         }
>  #endif
>
> -       flush_flags = RADEON_FLUSH_ASYNC | RADEON_FLUSH_COMPUTE;
> -       if (ctx->keep_tiling_flags) {
> -               flush_flags |= RADEON_FLUSH_KEEP_TILING_FLAGS;
> -       }
> -
> -       ctx->ws->cs_flush(ctx->rings.gfx.cs, flush_flags, ctx->screen->cs_count++);
> -
> -       ctx->flags = 0;
> -
> -       COMPUTE_DBG(ctx->screen, "shader started\n");
>  }
>
>
> --
> 1.7.11.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list