]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm: add modifiers for Apple GPU layouts
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 10 Mar 2025 19:28:02 +0000 (15:28 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 14 Mar 2025 13:45:50 +0000 (09:45 -0400)
commitc8619f5402cbcccfe58151b53421029852473e4c
tree9ff921cf040b1f6ef5fccd5f475ca85a56677451
parent9df13c356d0886d174e977406570f75f4012f27b
drm: add modifiers for Apple GPU layouts

Apple GPUs support non-linear "GPU-tiled" image layouts. Add modifiers
for these layouts. Mesa requires these modifiers to share non-linear
buffers across processes, but no other userspace or kernel support is
required/expected.

These layouts are notably not used for interchange across hardware
blocks (e.g. with the display controller). There are other layouts for
that but we don't support them either in userspace or kernelspace yet
(even downstream), so we don't add modifiers here.

Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Link: https://patchwork.freedesktop.org/patch/msgid/20250310-apple-twiddled-modifiers-v4-1-1ccac9544808@rosenzweig.io
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
include/uapi/drm/drm_fourcc.h