radeonsi: add new SDMA texture copy code
authorMarek Olšák <marek.olsak@amd.com>
Thu, 21 Apr 2016 19:41:59 +0000 (21:41 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 10 May 2016 15:20:09 +0000 (17:20 +0200)
commit70934de00eb42ba6fc43d104875962dfb260a1b3
tree2b6447f84b53ca07d9ea0c41e5d283b1532f7d6b
parenta512da36aed3a1c893b34681dec2dfd51d250ee5
radeonsi: add new SDMA texture copy code

This implements:
- Linear-to-linear partial copies. (unaligned)
- Tiled-to-linear and linear-to-tiled partial copies.
  (unaligned except 1-2 Bpp)
- Tiled-to-tiled partial copies aligned to 8x8.

v2: Extend the SDMA L2T VM fault workaround to T2L.
    - Same algorithm, just applied to T2L.
      (and using a 0-based address and surface.bo_size instead of buf->size)

Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (v1)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/cik_sdma.c