Mesa (master): panfrost: Implement sRGB texturing

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


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

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

panfrost: Implement sRGB texturing

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

---

 src/gallium/drivers/panfrost/pan_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index 954287f4df8..7f60cfa03d4 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -2221,7 +2221,7 @@ panfrost_create_sampler_view(
                         .swizzle = panfrost_translate_swizzle_4(desc->swizzle),
                         .format = format,
 
-                        .srgb = false,
+                        .srgb = desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB,
                         .type = panfrost_translate_texture_type(texture->target),
 
                         .usage2 = usage2_layout




More information about the mesa-commit mailing list