Skip to content

Commit

Permalink
freedreno: fix inorder rendering case
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <robdclark@gmail.com>
(cherry picked from commit 12de415)
[Juan A. Suarez: resolve trivial conflicts]
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>

Conflicts:
	src/gallium/drivers/freedreno/freedreno_state.c
  • Loading branch information
robclark authored and jasuarez committed Oct 29, 2018
1 parent 2edd62b commit b8ddd70
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/gallium/drivers/freedreno/freedreno_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ fd_set_framebuffer_state(struct pipe_context *pctx,
struct fd_context *ctx = fd_context(pctx);
struct pipe_framebuffer_state *cso;

cso = &ctx->batch->framebuffer;

util_copy_framebuffer_state(cso, framebuffer);

cso->samples = util_framebuffer_get_num_samples(cso);

if (ctx->screen->reorder) {
struct fd_batch *batch, *old_batch = NULL;

Expand Down Expand Up @@ -239,14 +245,9 @@ fd_set_framebuffer_state(struct pipe_context *pctx,
DBG("%d: cbufs[0]=%p, zsbuf=%p", ctx->batch->needs_flush,
framebuffer->cbufs[0], framebuffer->zsbuf);
fd_batch_flush(ctx->batch, false, false);
util_copy_framebuffer_state(&ctx->batch->framebuffer, cso);
}

cso = &ctx->batch->framebuffer;

util_copy_framebuffer_state(cso, framebuffer);

cso->samples = util_framebuffer_get_num_samples(cso);

ctx->dirty |= FD_DIRTY_FRAMEBUFFER;

ctx->disabled_scissor.minx = 0;
Expand Down

0 comments on commit b8ddd70

Please sign in to comment.