freedreno/a6xx: enable tiled compressed textures
authorRob Clark <robdclark@chromium.org>
Thu, 27 Feb 2020 18:24:49 +0000 (10:24 -0800)
committerKristian H. Kristensen <hoegsberg@google.com>
Thu, 7 May 2020 00:11:34 +0000 (17:11 -0700)
I wasn't expecting this to be too useful, since compressed textures are
already block based.. but gfxbench gl_fill says otherwise.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4868>

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

index ce423af3684d18430d306c3b3c88c006985010c9..dc5b096597fd1729ce73c60b8675a54edd7bf321 100644 (file)
@@ -61,6 +61,9 @@ ok_format(enum pipe_format pfmt)
 {
        enum a6xx_format fmt = fd6_pipe2color(pfmt);
 
+       if (util_format_is_compressed(pfmt))
+               return true;
+
        switch (pfmt) {
        case PIPE_FORMAT_Z24_UNORM_S8_UINT:
        case PIPE_FORMAT_Z24X8_UNORM: