Mesa (master): panfrost: Add sRGB render target flag

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 18 17:00:05 UTC 2019


Module: Mesa
Branch: master
Commit: 31a4ef847cee355053e76c147f409a42aaa83866
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=31a4ef847cee355053e76c147f409a42aaa83866

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Mon Jun 17 16:01:24 2019 -0700

panfrost: Add sRGB render target flag

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/gallium/drivers/panfrost/include/panfrost-job.h | 1 +
 src/gallium/drivers/panfrost/pandecode/decode.c     | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost/include/panfrost-job.h
index 35bc4a5a31e..bcdffabff97 100644
--- a/src/gallium/drivers/panfrost/include/panfrost-job.h
+++ b/src/gallium/drivers/panfrost/include/panfrost-job.h
@@ -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,
diff --git a/src/gallium/drivers/panfrost/pandecode/decode.c b/src/gallium/drivers/panfrost/pandecode/decode.c
index 85915b8eb86..daa9d4736a6 100644
--- a/src/gallium/drivers/panfrost/pandecode/decode.c
+++ b/src/gallium/drivers/panfrost/pandecode/decode.c
@@ -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




More information about the mesa-commit mailing list