summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paterni <bpaterni@gmail.com>2015-05-16 15:00:14 -0500
committerMichel Dänzer <michel.daenzer@amd.com>2015-05-18 12:29:06 +0900
commite75e9f39c95b8b563885882bf29d776861cd6ca3 (patch)
treeb56a8d9542d08fd2f4a350139dd1e48d8270c3ba
parent37b389ee9e13f065fb080d1269f9a6aed616c210 (diff)
extend conditional group GBM_BO_USE_LINEAR over both usagesamdgpu
Fixes 'GBM_BO_USE_LINEAR' undeclared error when compiling against older libgbm Signed-off-by: Brian Paterni <bpaterni@gmail.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 e4f30f1..1de2a0a 100644
--- a/src/amdgpu_bo_helper.c
+++ b/src/amdgpu_bo_helper.c
@@ -75,13 +75,13 @@ struct amdgpu_buffer *amdgpu_alloc_pixmap_bo(ScrnInfoPtr pScrn, int width,
if ( bitsPerPixel == pScrn->bitsPerPixel)
bo_use |= GBM_BO_USE_SCANOUT;
+#ifdef GBM_BO_USE_LINEAR
#ifdef CREATE_PIXMAP_USAGE_SHARED
if (usage_hint == CREATE_PIXMAP_USAGE_SHARED) {
bo_use |= GBM_BO_USE_LINEAR;
}
#endif
-#ifdef GBM_BO_USE_LINEAR
if (usage_hint & AMDGPU_CREATE_PIXMAP_LINEAR) {
bo_use |= GBM_BO_USE_LINEAR;
}