panfrost: Compact unused BO flag bits
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 13 Jul 2020 14:07:56 +0000 (10:07 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 14:42:33 +0000 (14:42 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Suggested-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5859>

src/panfrost/encoder/pan_bo.h

index 0138bef..dfd1822 100644 (file)
 /* 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 */