panfrost: Remove MALI_POSITIVE macro
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 28 Dec 2022 21:15:21 +0000 (16:15 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 11 Mar 2023 06:30:02 +0000 (06:30 +0000)
Now unused.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20445>

src/panfrost/include/panfrost-job.h

index 9ddc577..d1c93d7 100644 (file)
@@ -42,14 +42,6 @@ typedef uint64_t mali_ptr;
 #define MALI_EXTRACT_TYPE(fmt) ((fmt)&0xe0)
 #define MALI_EXTRACT_INDEX(pixfmt) (((pixfmt) >> 12) & 0xFF)
 
-/* Purposeful off-by-one in width, height fields. For example, a (64, 64)
- * texture is stored as (63, 63) in these fields. This adjusts for that.
- * There's an identical pattern in the framebuffer descriptor. Even vertex
- * count fields work this way, hence the generic name -- integral fields that
- * are strictly positive generally need this adjustment. */
-
-#define MALI_POSITIVE(dim) (dim - 1)
-
 /* Mali hardware can texture up to 65536 x 65536 x 65536 and render up to 16384
  * x 16384, but 8192 x 8192 should be enough for anyone.  The OpenGL game
  * "Cathedral" requires a texture of width 8192 to start.