Mesa (master): iris: Fold a condition into no_gpu for consistency
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 4 15:36:34 UTC 2020
Module: Mesa
Branch: master
Commit: e7908a95f9643c377df0d0f9021e509b3e4a2fe8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e7908a95f9643c377df0d0f9021e509b3e4a2fe8
Author: Nanley Chery <nanley.g.chery at intel.com>
Date: Wed Jun 24 07:45:49 2020 -0700
iris: Fold a condition into no_gpu for consistency
Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
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 | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index f1040073ed6..734441b8fae 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -1868,9 +1868,13 @@ iris_transfer_map(struct pipe_context *ctx,
if (fmtl->txc == ISL_TXC_ASTC)
no_gpu = true;
- if ((map_would_stall ||
- res->aux.usage == ISL_AUX_USAGE_CCS_E ||
- res->aux.usage == ISL_AUX_USAGE_GEN12_CCS_E) && !no_gpu) {
+ if (!map_would_stall &&
+ res->aux.usage != ISL_AUX_USAGE_CCS_E &&
+ res->aux.usage != ISL_AUX_USAGE_GEN12_CCS_E) {
+ no_gpu = true;
+ }
+
+ if (!no_gpu) {
/* If we need a synchronous mapping and the resource is busy, or needs
* resolving, we copy to/from a linear temporary buffer using the GPU.
*/
More information about the mesa-commit
mailing list