radeonsi: disable TC-compat HTILE on Tonga and Iceland
authorMarek Olšák <marek.olsak@amd.com>
Tue, 3 Apr 2018 23:32:12 +0000 (19:32 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 13 Apr 2018 16:31:04 +0000 (12:31 -0400)
Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeonsi/si_texture.c

index b1a47dd606811c63265d7d7ea040907f3a8a0991..17957f18a5fe995c49ca6c7b3e8fe11fdc16df57 100644 (file)
@@ -1442,6 +1442,13 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen,
        bool is_flushed_depth = templ->flags & SI_RESOURCE_FLAG_FLUSHED_DEPTH;
        bool tc_compatible_htile =
                sscreen->info.chip_class >= VI &&
+               /* There are issues with TC-compatible HTILE on Tonga (and
+                * Iceland is the same design), and documented bug workarounds
+                * don't help. For example, this fails:
+                *   piglit/bin/tex-miplevel-selection 'texture()' 2DShadow -auto
+                */
+               sscreen->info.family != CHIP_TONGA &&
+               sscreen->info.family != CHIP_ICELAND &&
                (templ->flags & PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY) &&
                !(sscreen->debug_flags & DBG(NO_HYPERZ)) &&
                !is_flushed_depth &&