radeonsi: disable 2D tiling on CIK for now
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 3 May 2013 21:12:04 +0000 (17:12 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Jun 2013 19:17:10 +0000 (15:17 -0400)
Causes GPU hangs.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/r600_texture.c

index 8992f9a1fa29b2683b091fc09c29e04d194e8673..282d4f242536d17924f9182d2f31f7845a6cc215 100644 (file)
@@ -532,7 +532,10 @@ struct pipe_resource *si_texture_create(struct pipe_screen *screen,
                if (util_format_is_compressed(templ->format)) {
                        array_mode = V_009910_ARRAY_1D_TILED_THIN1;
                } else {
-                       array_mode = V_009910_ARRAY_2D_TILED_THIN1;
+                       if (rscreen->chip_class >= CIK)
+                               array_mode = V_009910_ARRAY_1D_TILED_THIN1; /* XXX fix me */
+                       else
+                               array_mode = V_009910_ARRAY_2D_TILED_THIN1;
                }
        }