winsys/amdgpu: allow non page-aligned size bo creation from pointer
authorMichal Navratil <f.josef@email.cz>
Sun, 4 Feb 2018 19:24:02 +0000 (20:24 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 6 Feb 2018 17:51:12 +0000 (18:51 +0100)
commit4081e088962315b5c3f4e7030868faf01e7c4a69
tree24ef69a2957c56f1c7e4e0b0f55e78a650edf22c
parent9440599c8e030bddd7e04620bed22df5a8a097fd
winsys/amdgpu: allow non page-aligned size bo creation from pointer

Fix INVALID_OPERATION caused by BufferData with target
EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD when the buffer size is
not page aligned.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Cc: 17.3 18.0 <mesa-stable@lists.freedesktop.org>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c