diff options
author | Eric Anholt <[email protected]> | 2016-09-08 13:02:22 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-09-14 06:08:03 +0100 |
commit | f473348468ae1c68e7ef8eaf29f2cc51d17fbec7 (patch) | |
tree | 7ee1c9fa72dde2d13a2892437d8ecfca453759c9 /src/gallium/drivers/vc4/vc4_context.c | |
parent | 9688166bd9c3e12c74c55b857ad0dbb62b28da9e (diff) |
vc4: Handle resolve skipping at job submit time.
This is done in vc4_flush currently, but I'm going to make the job always
track the surfaces it might be rendering to instead of putting in the
destinations at flush time.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.c b/src/gallium/drivers/vc4/vc4_context.c index 1a212e4aba4..37b002d5cba 100644 --- a/src/gallium/drivers/vc4/vc4_context.c +++ b/src/gallium/drivers/vc4/vc4_context.c @@ -52,10 +52,7 @@ vc4_flush(struct pipe_context *pctx) pipe_surface_reference(&job->color_write, cbuf); } - if (!(job->cleared & PIPE_CLEAR_COLOR0)) { - pipe_surface_reference(&job->color_read, cbuf); - } - + pipe_surface_reference(&job->color_read, cbuf); } if (zsbuf && (job->resolve & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) { @@ -65,9 +62,7 @@ vc4_flush(struct pipe_context *pctx) pipe_surface_reference(&job->zs_write, zsbuf); } - if (!(job->cleared & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) { - pipe_surface_reference(&job->zs_read, zsbuf); - } + pipe_surface_reference(&job->zs_read, zsbuf); } vc4_job_submit(vc4, job); |