panfrost: Implement sRGB texturing

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-06-17 16:16:20 -07:00
parent 31a4ef847c
commit 58c34e4a6c
1 changed files with 1 additions and 1 deletions

View File

@ -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