panfrost: Implement sRGB texturing
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
31a4ef847c
commit
58c34e4a6c
|
@ -2221,7 +2221,7 @@ panfrost_create_sampler_view(
|
||||||
.swizzle = panfrost_translate_swizzle_4(desc->swizzle),
|
.swizzle = panfrost_translate_swizzle_4(desc->swizzle),
|
||||||
.format = format,
|
.format = format,
|
||||||
|
|
||||||
.srgb = false,
|
.srgb = desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB,
|
||||||
.type = panfrost_translate_texture_type(texture->target),
|
.type = panfrost_translate_texture_type(texture->target),
|
||||||
|
|
||||||
.usage2 = usage2_layout
|
.usage2 = usage2_layout
|
||||||
|
|
Loading…
Reference in New Issue