freedreno/a6xx: don't tile things that are too small
[mesa.git] / src / gallium / drivers / freedreno / a6xx / fd6_blitter.c
index 68cc4e7ab69aeb8537787c2a67c151a786c4e32e..9e145e55e5b4db5befa8aefe665457e2707cad8f 100644 (file)
@@ -718,6 +718,12 @@ fd6_blitter_init(struct pipe_context *pctx)
 unsigned
 fd6_tile_mode(const struct pipe_resource *tmpl)
 {
+       /* if the mipmap level 0 is still too small to be tiled, then don't
+        * bother pretending:
+        */
+       if (fd_resource_level_linear(tmpl, 0))
+               return TILE6_LINEAR;
+
        /* basically just has to be a format we can blit, so uploads/downloads
         * via linear staging buffer works:
         */