Mesa (master): iris: Drop a use of the need_resolve boolean
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 4 15:36:34 UTC 2020
Module: Mesa
Branch: master
Commit: 2c30079628d180dbfb3504853ea675b78558725b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2c30079628d180dbfb3504853ea675b78558725b
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Tue Jun 23 09:46:38 2020 -0700
iris: Drop a use of the need_resolve boolean
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6192>
---
src/gallium/drivers/iris/iris_resource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
More information about the mesa-commit
mailing list