winsys/amdgpu: disable local BOs again due to worse performance
authorMarek Olšák <marek.olsak@amd.com>
Mon, 11 Dec 2017 15:29:40 +0000 (16:29 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 11 Dec 2017 18:11:14 +0000 (19:11 +0100)
Cc: 17.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c

index 0d824025ce868464110881cdce17b5aa990b0490..4b12735bac05600a1ec6838378819f6629f1ddf6 100644 (file)
@@ -418,9 +418,10 @@ static struct amdgpu_winsys_bo *amdgpu_create_bo(struct amdgpu_winsys *ws,
       request.flags |= AMDGPU_GEM_CREATE_NO_CPU_ACCESS;
    if (flags & RADEON_FLAG_GTT_WC)
       request.flags |= AMDGPU_GEM_CREATE_CPU_GTT_USWC;
-   if (flags & RADEON_FLAG_NO_INTERPROCESS_SHARING &&
+   /* TODO: Enable this once the kernel handles it efficiently. */
+   /*if (flags & RADEON_FLAG_NO_INTERPROCESS_SHARING &&
        ws->info.drm_minor >= 20)
-      request.flags |= AMDGPU_GEM_CREATE_VM_ALWAYS_VALID;
+      request.flags |= AMDGPU_GEM_CREATE_VM_ALWAYS_VALID;*/
 
    r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle);
    if (r) {