radeonsi: disable fast color clear for 1D-tiled surfaces on CIK
authorMarek Olšák <marek.olsak@amd.com>
Sat, 22 Mar 2014 16:25:26 +0000 (17:25 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 22 Mar 2014 17:44:58 +0000 (18:44 +0100)
This will be re-enabled once my kernel fix lands.

src/gallium/drivers/radeon/r600_texture.c

index be10b46c0f19c8781bb076f398fee2d32b9cec4b..45a950885349dfaea9be337f762e083570101ef8 100644 (file)
@@ -1255,6 +1255,12 @@ void evergreen_do_fast_color_clear(struct r600_common_context *rctx,
                        continue;
                }
 
+               /* fast color clear with 1D tiling doesn't work on CIK */
+               if (tex->surface.level[0].mode == RADEON_SURF_MODE_1D &&
+                   rctx->chip_class >= CIK) {
+                       continue;
+               }
+
                /* ensure CMASK is enabled */
                r600_texture_alloc_cmask_separate(rctx->screen, tex);
                if (tex->cmask.size == 0) {