diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-07-09 15:21:32 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-16 19:59:43 +0000 |
commit | 6ffebfbff8a6bc8b4ec14946037378c45136223b (patch) | |
tree | b9136e5bff10764707f3473a8f1ef8ab982d9bfb /src/gallium | |
parent | 721b5c6eef64ab968373cb977503c63c2c6f2d01 (diff) |
panfrost: Fix sRGB clear colour packing
It should be sRGB transformed first, which the generic path handles but
the RGBA8 special path does not.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5858>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index 365b4ccdb3a..c495d6133e6 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -1324,7 +1324,7 @@ pan_pack_color(uint32_t *packed, const union pipe_color_union *color, enum pipe_ const struct util_format_description *desc = util_format_description(format); - if (util_format_is_rgba8_variant(desc)) { + if (util_format_is_rgba8_variant(desc) && desc->colorspace != UTIL_FORMAT_COLORSPACE_SRGB) { pan_pack_color_32(packed, ((uint32_t) float_to_ubyte(clear_alpha) << 24) | ((uint32_t) float_to_ubyte(color->f[2]) << 16) | |