OSDN Git Service

minigbm: amdgpu: make AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED default
authorShirish S <shirish.s@amd.com>
Thu, 19 Oct 2017 06:20:34 +0000 (11:50 +0530)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 24 Oct 2017 09:20:34 +0000 (02:20 -0700)
commit0913b8bcf1369ebed92a1533f3c58faef93f2b6e
tree2762b172b14003c3d7f78f659b708fe4e6cd48b6
parent568581483e80b3f840bd3d1f810bd01f3b62bc0b
minigbm: amdgpu: make AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED default

AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED is required for mmapping
buffers in the amdgpu kernel driver.

This patch makes it default for all buffers on create.

However it should be noted that in case we find any performance related
regression in an un-tested scenario this patch needs to be reverted.

BUG=b:65297611
TEST=On Kahlee,
     UI comes up.
     GLMark2 & GLbench.bvt autotests pass
     atomictest -t multiplanes passes
     WebGL Aquarium

Change-Id: Ic82b25de63e66aac7aa04b4b255eb432c10c911b
Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-on: https://chromium-review.googlesource.com/727824
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
amdgpu.c