diff options
author | Marek Olšák <[email protected]> | 2017-12-11 16:29:40 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-12-11 19:11:14 +0100 |
commit | bf0904e31fb7d9cd8932d582076c8d7beb02ba89 (patch) | |
tree | 2967734cd9ad00bfc995bda362c8607ff43f7407 /src/gallium/winsys | |
parent | 8a821fa91c14ad9ba94c5d645b100d3208305d00 (diff) |
winsys/amdgpu: disable local BOs again due to worse performance
Cc: 17.3 <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c index 0d824025ce8..4b12735bac0 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c @@ -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) { |