summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-03-27 20:46:18 -0400
committerMarek Olšák <[email protected]>2018-04-13 12:31:04 -0400
commita3b785be4d095ca4d37b7d6cfe6f680352ba3089 (patch)
treecec97d7a86552d7e22e5b7e31b0c85d67b4e9496
parentb37b35a5d265adde971265f4e594298a172d0d45 (diff)
winsys/amdgpu: allow local BOs on APUs
Local BOs ignore BO priorities, and we don't need those on APUs. Reviewed-by: Samuel Pitoiset <[email protected]> Tested-by: Dieter Nützel <[email protected]>
-rw-r--r--src/amd/common/ac_gpu_info.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 0c131d0ed0c..ef0364b0534 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -314,7 +314,8 @@ bool ac_query_gpu_info(int fd, amdgpu_device_handle dev,
info->has_fence_to_handle = info->has_syncobj && info->drm_minor >= 21;
info->has_ctx_priority = info->drm_minor >= 22;
/* TODO: Enable this once the kernel handles it efficiently. */
- /*info->has_local_buffers = ws->info.drm_minor >= 20;*/
+ info->has_local_buffers = info->drm_minor >= 20 &&
+ !info->has_dedicated_vram;
info->num_render_backends = amdinfo->rb_pipes;
info->clock_crystal_freq = amdinfo->gpu_counter_freq;
if (!info->clock_crystal_freq) {