freedreno: allow FMT6_8_UNORM as a UBWC format
authorFritz Koenig <frkoenig@chromium.org>
Fri, 24 Apr 2020 03:32:17 +0000 (20:32 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 17:10:39 +0000 (17:10 +0000)
FMT6_8_UNORM is necessary for NV12 textures.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4722>

src/gallium/drivers/freedreno/a6xx/fd6_resource.c

index 30a42ea557e7bd0d47ad8c13672fe39f07793f25..73434e0e41c5db4cac3fa99142b34c3da878ce98 100644 (file)
@@ -83,6 +83,7 @@ ok_ubwc_format(struct fd_resource *rsc, enum pipe_format pfmt)
        case FMT6_8_8_SINT:
        case FMT6_8_8_UINT:
        case FMT6_8_8_UNORM:
+       case FMT6_8_UNORM:
        case FMT6_Z24_UNORM_S8_UINT:
        case FMT6_Z24_UNORM_S8_UINT_AS_R8G8B8A8:
                return true;