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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c30079628d180dbfb3504853ea675b78558725b;p=mesa.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 a32328b31a0..b358f0c1ec5 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); }