Module: Mesa
Branch: master
Commit: a3b785be4d095ca4d37b7d6cfe6f680352ba3089
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a3b785be4d095ca4d37b7d6cfe6f680352ba3089

Author: Marek Olšák <marek.ol...@amd.com>
Date:   Tue Mar 27 20:46:18 2018 -0400

winsys/amdgpu: allow local BOs on APUs

Local BOs ignore BO priorities, and we don't need those on APUs.

Reviewed-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Tested-by: Dieter Nützel <die...@nuetzel-hh.de>

---

 src/amd/common/ac_gpu_info.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 0c131d0ed0..ef0364b053 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) {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to