Mesa (master): panfrost: Compact unused BO flag bits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 13 14:59:52 UTC 2020


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Jul 13 10:07:56 2020 -0400

panfrost: Compact unused BO flag bits

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Suggested-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5859>

---

 src/panfrost/encoder/pan_bo.h | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/panfrost/encoder/pan_bo.h b/src/panfrost/encoder/pan_bo.h
index 0138beffd28..dfd182290a3 100644
--- a/src/panfrost/encoder/pan_bo.h
+++ b/src/panfrost/encoder/pan_bo.h
@@ -43,17 +43,13 @@
 /* This memory region should not be mapped to the CPU */
 #define PAN_BO_INVISIBLE          (1 << 2)
 
-/* bit 3 unused */
-
 /* This region may not be used immediately and will not mmap on allocate
  * (semantically distinct from INVISIBLE, which cannot never be mmaped) */
-#define PAN_BO_DELAY_MMAP         (1 << 4)
-
-/* bit 5 unused */
+#define PAN_BO_DELAY_MMAP         (1 << 3)
 
 /* BO is shared across processes (imported or exported) and therefore cannot be
  * cached locally */
-#define PAN_BO_SHARED             (1 << 6)
+#define PAN_BO_SHARED             (1 << 4)
 
 /* GPU access flags */
 



More information about the mesa-commit mailing list