Mesa (master): lima: sync lima_drm.h with kernel

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jan 30 04:00:56 UTC 2020


Module: Mesa
Branch: master
Commit: 92465cc999408ce1d80a9b274e09f54f5a28618d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=92465cc999408ce1d80a9b274e09f54f5a28618d

Author: Qiang Yu <yuq825 at gmail.com>
Date:   Tue Dec 31 14:55:35 2019 +0800

lima: sync lima_drm.h with kernel

Reviewed-by: Vasily Khoruzhick <anarsoul at gmail.com>
Tested-by: Andreas Baierl <ichgeh at imkreisrum.de>
Signed-off-by: Qiang Yu <yuq825 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3264>

---

 include/drm-uapi/lima_drm.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/include/drm-uapi/lima_drm.h b/include/drm-uapi/lima_drm.h
index 95a00fb867e..1ec58d652a5 100644
--- a/include/drm-uapi/lima_drm.h
+++ b/include/drm-uapi/lima_drm.h
@@ -32,12 +32,19 @@ struct drm_lima_get_param {
 	__u64 value; /* out, parameter value */
 };
 
+/*
+ * heap buffer dynamically increase backup memory size when GP task fail
+ * due to lack of heap memory. size field of heap buffer is an up bound of
+ * the backup memory which can be set to a fairly large value.
+ */
+#define LIMA_BO_FLAG_HEAP  (1 << 0)
+
 /**
  * create a buffer for used by GPU
  */
 struct drm_lima_gem_create {
 	__u32 size;    /* in, buffer size */
-	__u32 flags;   /* in, currently no flags, must be zero */
+	__u32 flags;   /* in, buffer flags */
 	__u32 handle;  /* out, GEM buffer handle */
 	__u32 pad;     /* pad, must be zero */
 };



More information about the mesa-commit mailing list