aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_gmem.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2013-03-05 17:49:43 -0500
committerRob Clark <[email protected]>2013-03-19 10:49:30 -0400
commitafc1b7c21f795c1bf18f1edc376624011e2dfd7c (patch)
treee5186b47a50face17d633ec8124133d03ce3f631 /src/gallium/drivers/freedreno/freedreno_gmem.c
parent90862c8507c4eb6c8b815e4d07bcf46352e38682 (diff)
freedreno: clear fixes
Some fixes for clearing only depth or only stencil. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_gmem.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_gmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_gmem.c b/src/gallium/drivers/freedreno/freedreno_gmem.c
index dae60c6d5d9..52b637629f2 100644
--- a/src/gallium/drivers/freedreno/freedreno_gmem.c
+++ b/src/gallium/drivers/freedreno/freedreno_gmem.c
@@ -322,7 +322,7 @@ emit_mem2gmem(struct fd_context *ctx, struct fd_ringbuffer *ring,
if (ctx->restore & (FD_BUFFER_DEPTH | FD_BUFFER_STENCIL))
emit_mem2gmem_surf(ring, 0, bin_w * bin_h, pfb->zsbuf);
- if (ctx->resolve & FD_BUFFER_COLOR)
+ if (ctx->restore & FD_BUFFER_COLOR)
emit_mem2gmem_surf(ring, 1, 0, pfb->cbufs[0]);
/* TODO blob driver seems to toss in a CACHE_FLUSH after each DRAW_INDX.. */