[PIPE_FORMAT_Z32_FLOAT] = { MALI_R32F, _TZ },
[PIPE_FORMAT_Z32_FLOAT_S8X24_UINT] = { MALI_R32F, _TZ },
[PIPE_FORMAT_X24S8_UINT] = { MALI_RGBA8UI, _TZ },
+ [PIPE_FORMAT_S8_UINT] = { MALI_R8UI, _T },
[PIPE_FORMAT_R32_FIXED] = { MALI_R32_FIXED, _V },
[PIPE_FORMAT_R32G32_FIXED] = { MALI_RG32_FIXED, _V },
}
}
+#define MALI_SWIZZLE_R001 \
+ (MALI_CHANNEL_RED << 0) | \
+ (MALI_CHANNEL_ZERO << 3) | \
+ (MALI_CHANNEL_ZERO << 6) | \
+ (MALI_CHANNEL_ONE << 9)
+
#define MALI_SWIZZLE_A001 \
(MALI_CHANNEL_ALPHA << 0) | \
(MALI_CHANNEL_ZERO << 3) | \
(MALI_CHANNEL_ZERO << 6) | \
(MALI_CHANNEL_ONE << 9)
+
void
panfrost_new_texture(
void *out,
.format = {
.swizzle = (format == PIPE_FORMAT_X24S8_UINT) ?
MALI_SWIZZLE_A001 :
+ (format == PIPE_FORMAT_S8_UINT) ?
+ MALI_SWIZZLE_R001 :
panfrost_translate_swizzle_4(desc->swizzle),
.format = mali_format,
.srgb = (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB),