summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-05-12 05:34:49 +0800
committerMichel Dänzer <michel.daenzer@amd.com>2015-05-12 10:18:37 +0900
commit7e3b27390a03e423772717fca3c757cf5cc4d7b4 (patch)
tree9131df87ac8aff4dc766de171fa055d24d3d29e9
parent4840f918ab7d61b4f55bcdff3afdac7b34e45d88 (diff)
Disable tiling for PRIME shared pixmap
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--src/amdgpu_bo_helper.c2
1 files changed, 1 insertions, 1 deletions
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