winsys/radeon: Use CPU page size instead of hardcoding 4096 bytes v3
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 21 Aug 2014 09:30:44 +0000 (18:30 +0900)
committerMichel Dänzer <michel@daenzer.net>
Mon, 9 Nov 2015 08:24:32 +0000 (17:24 +0900)
commit24abbaff9ad177624c2b4906c7d94f5d91ac3cc0
tree07f0154fcc01a65fcea35d02b4e481bc2ab3bf97
parentdf4f9b0236e3dcfb94eb160b599657a315822c82
winsys/radeon: Use CPU page size instead of hardcoding 4096 bytes v3

Fixes GPUVM conflicts with non-4K page size.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92738

v2: Replace sanitization of VM base address alignment with comment why
    that's not necessary.
v3: Use unsigned instead of long as the type for the size_align member.
    (Marek)

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Christian König <christian.koenig@amd.com> (v1)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_bo.c