diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-17 16:16:20 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-18 09:59:29 -0700 |
commit | 58c34e4a6ca23b6fcb9a8baa1c121d52ad32206b (patch) | |
tree | aa9b69cd53d18204cda9a2201d78bc5132f4765a | |
parent | 31a4ef847cee355053e76c147f409a42aaa83866 (diff) |
panfrost: Implement sRGB texturing
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 954287f4df8..7f60cfa03d4 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 |