[Mesa-dev] [PATCH 5/9] panfrost: Implement sRGB texturing

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Tue Jun 18 14:59:49 UTC 2019


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 4d9705671bd..5dac0820920 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -2238,7 +2238,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
-- 
2.20.1



More information about the mesa-dev mailing list