Mesa (main): iris: mark the workaround_bo as asynchronous
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 3 03:44:29 UTC 2021
Module: Mesa
Branch: main
Commit: b705114d9cde511b7fba140fda0a78d69ccda57f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b705114d9cde511b7fba140fda0a78d69ccda57f
Author: Paulo Zanoni <paulo.r.zanoni at intel.com>
Date: Thu Jul 29 17:26:37 2021 -0700
iris: mark the workaround_bo as asynchronous
Opt out of implicit synchronization for the workaround bo: we already
never mark it as writable and we only write to it as part of
PIPE_CONTROL synchronization requirements. Setting it as ASYNC should
be enough for i915.ko to pin it.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12151>
---
src/gallium/drivers/iris/iris_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index fe8ceb51940..8ea97a2e2be 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -768,7 +768,7 @@ iris_init_identifier_bo(struct iris_screen *screen)
if (!bo_map)
return false;
- screen->workaround_bo->kflags |= EXEC_OBJECT_CAPTURE;
+ screen->workaround_bo->kflags |= EXEC_OBJECT_CAPTURE | EXEC_OBJECT_ASYNC;
screen->workaround_address = (struct iris_address) {
.bo = screen->workaround_bo,
.offset = ALIGN(
More information about the mesa-commit
mailing list