Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
const struct util_format_description *desc =
util_format_description(surf->texture->format);
- /* Fill in accordingly, defaulting to RGBA8888 (UNORM) */
+ /* Fill in accordingly, defaulting to 8-bit UNORM */
struct mali_rt_format fmt = {
.unk1 = 0x4000000,
.unk4 = 0x8
};
+ if (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB)
+ fmt.flags |= MALI_MFBD_FORMAT_SRGB;
+
/* Set flags for alternative formats */
if (surf->texture->format == PIPE_FORMAT_B5G6R5_UNORM) {