radeonsi: remove ps_partial_flush
authorChristian König <deathsimple@vodafone.de>
Thu, 2 Aug 2012 13:06:59 +0000 (15:06 +0200)
committerChristian König <deathsimple@vodafone.de>
Sat, 11 Aug 2012 07:58:26 +0000 (09:58 +0200)
Not needed any more.

Signed-off-by: Christian König <deathsimple@vodafone.de>
src/gallium/drivers/radeonsi/evergreen_hw_context.c
src/gallium/drivers/radeonsi/r600.h
src/gallium/drivers/radeonsi/r600_hw_context.c
src/gallium/drivers/radeonsi/si_state_draw.c

index 0d0d64b8bac7e827de3830b6247d9a2541168d02..d07161758b5c995eeec43ed8c85019dcf7c56777 100644 (file)
@@ -42,19 +42,6 @@ int si_context_init(struct r600_context *ctx)
        return 0;
 }
 
-static inline void evergreen_context_ps_partial_flush(struct r600_context *ctx)
-{
-       struct radeon_winsys_cs *cs = ctx->cs;
-
-       if (!(ctx->flags & R600_CONTEXT_DRAW_PENDING))
-               return;
-
-       cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 0, 0);
-       cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_PS_PARTIAL_FLUSH) | EVENT_INDEX(4);
-
-       ctx->flags &= ~R600_CONTEXT_DRAW_PENDING;
-}
-
 void si_context_draw(struct r600_context *ctx, const struct r600_draw *draw)
 {
        struct radeon_winsys_cs *cs = ctx->cs;
index f22d920f504f16418027de8c8054272b95d60e7d..610b9dad1cc34c66b06394b1e21787e3f35c6708 100644 (file)
@@ -92,7 +92,6 @@ struct r600_so_target {
        unsigned                so_index;
 };
 
-#define R600_CONTEXT_DRAW_PENDING      (1 << 0)
 #define R600_CONTEXT_DST_CACHES_DIRTY  (1 << 1)
 #define R600_CONTEXT_CHECK_EVENT_FLUSH (1 << 2)
 
index d6b3b74860df572b17610acab657fa49ef924b6d..509a8bf7fe1acdb3857ffec0dc5b632066372553 100644 (file)
@@ -115,19 +115,6 @@ err:
        return;
 }
 
-static inline void r600_context_ps_partial_flush(struct r600_context *ctx)
-{
-       struct radeon_winsys_cs *cs = ctx->cs;
-
-       if (!(ctx->flags & R600_CONTEXT_DRAW_PENDING))
-               return;
-
-       cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 0, 0);
-       cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_PS_PARTIAL_FLUSH) | EVENT_INDEX(4);
-
-       ctx->flags &= ~R600_CONTEXT_DRAW_PENDING;
-}
-
 /* initialize */
 void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw,
                        boolean count_draw_in)
index 10cf54b0720b9fe07a08f21b107e7ac8bb9834ed..e974642f05b2057868e61a295ff02e91f6a420ca 100644 (file)
@@ -543,7 +543,7 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *dinfo)
 
        si_context_draw(rctx, &rdraw);
 
-       rctx->flags |= R600_CONTEXT_DST_CACHES_DIRTY | R600_CONTEXT_DRAW_PENDING;
+       rctx->flags |= R600_CONTEXT_DST_CACHES_DIRTY;
 
        if (rctx->framebuffer.zsbuf)
        {