intel/sanitize_gpu: deal with non page multiple buffer sizes
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 29 Oct 2018 18:14:46 +0000 (18:14 +0000)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 5 Nov 2018 15:45:07 +0000 (15:45 +0000)
commite400ac52e46a69ea643d35a64466f9a1bedee4fc
tree4e09915c8e8b120290eb304e8bb161e9b4f7c0dd
parentc5fca35af1694bd515883ade4b4ab723fe7fcad0
intel/sanitize_gpu: deal with non page multiple buffer sizes

We can only map at page aligned offsets. We got that wrong with buffer
size where (size % 4096) != 0 (anv has a WA buffer of 1024).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/intel/tools/intel_sanitize_gpu.c