[PATCH v2] drm: add modifiers for MediaTek tiled formats

2024-12-19 Thread eric . smith
From: "Eric R. Smith" MediaTek (MTK) uses some unique tiled memory formats for video decoding. Add these to the uapi drm_fourcc.h so that we can use them in Mesa, GStreamer, and other tools/libraries. v2: - Classify the modifier bits into categories and provide room for expansion (Daniel S.)

Re: [PATCH] drm: add modifiers for MediaTek tiled formats

2024-12-18 Thread Eric Smith
On 18/12/2024 10.33, Daniel Stone wrote: +/* MediaTek layouts */ + +/* + * MediaTek Tiled Modifier + * This is a tiled layout using tiles of 16x32 pixels in a row-major layout. + * For chroma planes this becomes 16x16 tiles. + */ +#define DRM_FORMAT_MOD_MTK_16L_32S_TILE fourcc_mod_code(MTK, (1U

[PATCH] drm: add modifiers for MediaTek tiled formats

2024-12-13 Thread eric . smith
From: "Eric R. Smith" MediaTek (MTK) uses some unique tiled memory formats for video decoding. Add these to the uapi drm_fourcc.h so that we can use them in Mesa, GStreamer, and other tools/libraries. Signed-off-by: Eric R. Smith --- include/uapi/drm/drm_fourcc.h | 31 +