winsys/amdgpu: Handle RADEON_FLAG_NO_CPU_ACCESS
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 26 Jan 2016 07:15:59 +0000 (16:15 +0900)
committerMichel Dänzer <michel@daenzer.net>
Fri, 29 Jan 2016 07:06:06 +0000 (16:06 +0900)
commit62f837e2ea7b854215efb2e110b176dad61c2af0
tree4d3ed8ccddf5ac72642c5d8e8b8ebd7b0233afb4
parent29d09f8747abea35f4deadced0196725d4ab89cf
winsys/amdgpu: Handle RADEON_FLAG_NO_CPU_ACCESS

Failing to do this was resulting in the kernel driver unnecessarily
leaving open the possibility of CPU access to tiled BOs.

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

(This change shouldn't be backported to stable branches, because
released versions of xf86-video-amdgpu unnecessarily try to map the
front buffer)

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c