iris: Drop a use of the need_resolve boolean
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 23 Jun 2020 16:46:38 +0000 (09:46 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Sep 2020 15:29:57 +0000 (15:29 +0000)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6192>

src/gallium/drivers/iris/iris_resource.c

index a32328b31a022c2ab7c895b39f4ec786eda10035..b358f0c1ec5782e5b9009e6f47c01610795e4689 100644 (file)
@@ -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);
       }