radeonsi: remove ps_partial_flush
Not needed any more. Signed-off-by: Christian König <deathsimple@vodafone.de>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user