aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/lima_draw.c
diff options
context:
space:
mode:
authorQiang Yu <[email protected]>2020-02-04 18:24:37 +0800
committerMarge Bot <[email protected]>2020-02-17 02:54:15 +0000
commit6a5b1c62db4cd3ab2dcabe6e32391c18f11dfb17 (patch)
treeaefdfaf6c2b6cf7ee7b6bceb90f7c1a65cd1aae7 /src/gallium/drivers/lima/lima_draw.c
parent7e5abc11f427b67084ad791a6adab5d99717c064 (diff)
lima: move resolve into lima_submit
resolve is preserved across draws. Reviewed-by: Vasily Khoruzhick <[email protected]> Signed-off-by: Qiang Yu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
Diffstat (limited to 'src/gallium/drivers/lima/lima_draw.c')
-rw-r--r--src/gallium/drivers/lima/lima_draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c
index 4afa47ebe8b..ae0220bf9ff 100644
--- a/src/gallium/drivers/lima/lima_draw.c
+++ b/src/gallium/drivers/lima/lima_draw.c
@@ -67,7 +67,7 @@ lima_update_submit_wb(struct lima_context *ctx, unsigned buffers)
/* add to submit when the buffer is dirty and resolve is clear (not added before) */
if (fb->base.nr_cbufs && (buffers & PIPE_CLEAR_COLOR0) &&
- !(ctx->resolve & PIPE_CLEAR_COLOR0)) {
+ !(submit->resolve & PIPE_CLEAR_COLOR0)) {
struct lima_resource *res = lima_resource(fb->base.cbufs[0]->texture);
lima_flush_submit_accessing_bo(ctx, res->bo, true);
_mesa_hash_table_insert(ctx->write_submits, &res->base, submit);
@@ -76,14 +76,14 @@ lima_update_submit_wb(struct lima_context *ctx, unsigned buffers)
/* add to submit when the buffer is dirty and resolve is clear (not added before) */
if (fb->base.zsbuf && (buffers & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL)) &&
- !(ctx->resolve & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) {
+ !(submit->resolve & (PIPE_CLEAR_DEPTH | PIPE_CLEAR_STENCIL))) {
struct lima_resource *res = lima_resource(fb->base.zsbuf->texture);
lima_flush_submit_accessing_bo(ctx, res->bo, true);
_mesa_hash_table_insert(ctx->write_submits, &res->base, submit);
lima_submit_add_bo(submit, LIMA_PIPE_PP, res->bo, LIMA_SUBMIT_BO_WRITE);
}
- ctx->resolve |= buffers;
+ submit->resolve |= buffers;
}
static void