Signed-off-by: Alyssa Rosenzweig <[email protected]>
---
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
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev