diff options
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_clear.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_clear.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_clear.c b/src/gallium/drivers/freedreno/freedreno_clear.c index 545e8ad3125..f3fd1a256dd 100644 --- a/src/gallium/drivers/freedreno/freedreno_clear.c +++ b/src/gallium/drivers/freedreno/freedreno_clear.c @@ -54,7 +54,7 @@ fd_clear(struct pipe_context *pctx, unsigned buffers, { struct fd_context *ctx = fd_context(pctx); struct fd_ringbuffer *ring = ctx->ring; - struct pipe_framebuffer_state *fb = &ctx->framebuffer.base; + struct pipe_framebuffer_state *fb = &ctx->framebuffer; uint32_t reg, colr = 0; ctx->cleared |= buffers; @@ -172,11 +172,6 @@ fd_clear(struct pipe_context *pctx, unsigned buffers, fb->height)); OUT_PKT3(ring, CP_SET_CONSTANT, 2); - OUT_RING(ring, CP_REG(REG_RB_COLOR_INFO)); - OUT_RING(ring, RB_COLOR_INFO_COLOR_SWAP(1) | - RB_COLOR_INFO_COLOR_FORMAT(fd_pipe2color(fb->cbufs[0]->format))); - - OUT_PKT3(ring, CP_SET_CONSTANT, 2); OUT_RING(ring, CP_REG(REG_RB_COLOR_MASK)); if (buffers & PIPE_CLEAR_COLOR) { OUT_RING(ring, RB_COLOR_MASK_WRITE_RED | |