panfrost: Add sRGB render target flag
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 17 Jun 2019 23:01:24 +0000 (16:01 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Jun 2019 16:59:29 +0000 (09:59 -0700)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/include/panfrost-job.h
src/gallium/drivers/panfrost/pandecode/decode.c

index 35bc4a5a31ee112d11052fd262e6833f6ab63cd9..bcdffabff9777c518118a0b9809f378385a69548 100644 (file)
@@ -1409,6 +1409,7 @@ struct mali_single_framebuffer {
 /* Format bits for the render target flags */
 
 #define MALI_MFBD_FORMAT_MSAA    (1 << 1)
+#define MALI_MFBD_FORMAT_SRGB    (1 << 2)
 
 enum mali_mfbd_block_format {
         MALI_MFBD_BLOCK_TILED   = 0x0,
index 85915b8eb862fdf784873aa1e2c92da0aa0abc88..daa9d4736a6341791c6ac86df98af946b264b770 100644 (file)
@@ -208,6 +208,7 @@ static const struct pandecode_flag_info fb_fmt_flag_info[] = {
 #define FLAG_INFO(flag) { MALI_MFBD_FORMAT_##flag, "MALI_MFBD_FORMAT_" #flag }
 static const struct pandecode_flag_info mfbd_fmt_flag_info[] = {
         FLAG_INFO(MSAA),
+        FLAG_INFO(SRGB),
         {}
 };
 #undef FLAG_INFO