intel: PAGE_SIZE used in allocators shouldn't be defined on FreeBSD
authorEleni Maria Stea <elene.mst@gmail.com>
Mon, 7 Jun 2021 06:22:20 +0000 (09:22 +0300)
committerEleni Maria Stea <elene.mst@gmail.com>
Mon, 28 Jun 2021 18:12:24 +0000 (21:12 +0300)
commite094f75bd0b8389b8fa4dd58a5228348bf61a5e5
treea45a530fa0ab6318af0a288631612e55058bf0c8
parent49e8b77fd9a713ce0d4bec7ed88e8929e0e9e3ca
intel: PAGE_SIZE used in allocators shouldn't be defined on FreeBSD

iris, i965, and anv define the PAGE_SIZE in anv_allocator and bufmgr
files. As on FreeBSD the page size is defined in machine/param.h that is
indirectly included by those files, we'd rather define it only when the
system is not FreeBSD to avoid compile errors.

v2: Changed the path in the comment to make clear that machine/params.h
is a FreeBSD system file.

Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11203>
src/gallium/drivers/iris/iris_bufmgr.c
src/intel/vulkan/anv_allocator.c
src/mesa/drivers/dri/i965/brw_bufmgr.c