From: Alyssa Rosenzweig Date: Mon, 17 Jun 2019 23:16:20 +0000 (-0700) Subject: panfrost: Implement sRGB texturing X-Git-Tag: upstream/19.3.0~5361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=58c34e4a6ca23b6fcb9a8baa1c121d52ad32206b;p=platform%2Fupstream%2Fmesa.git panfrost: Implement sRGB texturing Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 954287f..7f60cfa 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