radeonsi: use DMA for clears with unaligned size
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 13 Feb 2017 12:19:45 +0000 (13:19 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 28 Mar 2017 08:22:14 +0000 (10:22 +0200)
commit21ba6543be0c979c5f5ae10e2623ba697292dccc
tree10e5eba1bb6db1c43c914f88b62c333720ef7e0a
parentf0d9af772e0fbb5854fc8293186a70ea3721748a
radeonsi: use DMA for clears with unaligned size

Only a small tail needs to be uploaded manually.

This is only partly a performance measure (apps are expected to use
aligned access). Mostly it is preparation for sparse buffers, which the
old code would incorrectly have attempted to map directly.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_cp_dma.c