Mesa (main): iris: Mark the aux table buffers with EXEC_OBJECT_CAPTURE.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Aug 23 20:45:30 UTC 2021


Module: Mesa
Branch: main
Commit: 9cc303ffbbdda91f7549e9b49db68ad16fb33c42
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cc303ffbbdda91f7549e9b49db68ad16fb33c42

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sat Aug 21 17:36:34 2021 -0700

iris: Mark the aux table buffers with EXEC_OBJECT_CAPTURE.

Having these could be useful when tracking down GPU hangs.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12420>

---

 src/gallium/drivers/iris/iris_bufmgr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c
index 5596a5cb546..437aa589a86 100644
--- a/src/gallium/drivers/iris/iris_bufmgr.c
+++ b/src/gallium/drivers/iris/iris_bufmgr.c
@@ -1688,7 +1688,8 @@ intel_aux_map_buffer_alloc(void *driver_ctx, uint32_t size)
    bo->name = "aux-map";
    p_atomic_set(&bo->refcount, 1);
    bo->index = -1;
-   bo->kflags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS | EXEC_OBJECT_PINNED;
+   bo->kflags = EXEC_OBJECT_SUPPORTS_48B_ADDRESS | EXEC_OBJECT_PINNED |
+                EXEC_OBJECT_CAPTURE;
    bo->mmap_mode = local ? IRIS_MMAP_WC : IRIS_MMAP_WB;
 
    buf->driver_bo = bo;



More information about the mesa-commit mailing list