HomePhabricator
Diffusion Mesa a63a0960e3eb

radv: Fix SRGB compute copies.

Authored by Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> on May 21 2018, 1:26 AM.

Description

radv: Fix SRGB compute copies.

SRGB stores are broken. We had compensation code in the
resolve path but none in the copy path. Since we don't
want any conversion and it does not matter for DCC,
just make everything UNORM instead.

This happened to cause wrong colors for the PRIME path, as
that uses image->buffer copies which always use the compute
path.

CC: 18.0 18.1 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106587
Reviewed-by: Dave Airlie <airlied@redhat.com>

Details

Committed
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>May 21 2018, 10:33 AM
Pushed
pmoreauMay 22 2018, 7:03 PM
Parents
rMESA63525ba730e3: android: enable VK_ANDROID_native_buffer
Branches
Unknown
Tags
Unknown

Event Timeline

Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> committed rMESAa63a0960e3eb: radv: Fix SRGB compute copies. (authored by Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>).May 21 2018, 10:33 AM