From: Nanley Chery Date: Tue, 23 Jun 2020 16:46:38 +0000 (-0700) Subject: iris: Drop a use of the need_resolve boolean X-Git-Tag: upstream/21.0.0~5637 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c30079628d180dbfb3504853ea675b78558725b;p=platform%2Fupstream%2Fmesa.git iris: Drop a use of the need_resolve boolean Reviewed-by: Kenneth Graunke Part-of: --- diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index a32328b..b358f0c 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -1885,7 +1885,7 @@ iris_transfer_map(struct pipe_context *ctx, } else { /* Otherwise we're free to map on the CPU. */ - if (need_resolve) { + if (resource->target != PIPE_BUFFER) { iris_resource_access_raw(ice, res, level, box->z, box->depth, usage & PIPE_TRANSFER_WRITE); }