Revert "radeonsi: enable SDMA on CIK"
authorMarek Olšák <marek.olsak@amd.com>
Thu, 8 Sep 2016 16:21:04 +0000 (18:21 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 8 Sep 2016 20:51:33 +0000 (22:51 +0200)
This reverts commit 0241d8300f66ee2c6c2c55fe64ac88d76440c591.

It doesn't work with mobile Bonaire. It looks like the programming of
tiling parameters is wrong on some chips.

src/gallium/drivers/radeonsi/cik_sdma.c

index e1fd050339005123a0be74016d819c6d3fec0758..d15d8dc8bb3bb1cdd78f60d2e8153b651f512bfc 100644 (file)
@@ -165,6 +165,10 @@ static bool cik_sdma_copy_texture(struct si_context *sctx,
               src_slice_pitch * bpp * (srcz + src_box->depth) <=
               rsrc->resource.buf->size);
 
+       /* Test CIK with radeon and amdgpu before enabling this. */
+       if (sctx->b.chip_class == CIK)
+               return false;
+
        if (!r600_prepare_for_dma_blit(&sctx->b, rdst, dst_level, dstx, dsty,
                                        dstz, rsrc, src_level, src_box))
                return false;