From 7e3b27390a03e423772717fca3c757cf5cc4d7b4 Mon Sep 17 00:00:00 2001 From: Jammy Zhou Date: Tue, 12 May 2015 05:34:49 +0800 Subject: [PATCH] Disable tiling for PRIME shared pixmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jammy Zhou Reviewed-by: Michel Dänzer --- src/amdgpu_bo_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amdgpu_bo_helper.c b/src/amdgpu_bo_helper.c index e041352..e4f30f1 100644 --- a/src/amdgpu_bo_helper.c +++ b/src/amdgpu_bo_helper.c @@ -77,7 +77,7 @@ struct amdgpu_buffer *amdgpu_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width, #ifdef CREATE_PIXMAP_USAGE_SHARED if (usage_hint == CREATE_PIXMAP_USAGE_SHARED) { - /* XXX: Need to tell GBM to disable tiling in this case */ + bo_use |= GBM_BO_USE_LINEAR; } #endif