Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/xf86-video-ati-kms/dist/src avoid using GBM_B...



details:   https://anonhg.NetBSD.org/xsrc/rev/a6089f8a2602
branches:  trunk
changeset: 10041:a6089f8a2602
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Dec 30 08:35:04 2018 +0000

description:
avoid using GBM_BO_USE_LINEAR if it isn't defined.

XXX: xorg-server 1.18 issue?

diffstat:

 external/mit/xf86-video-ati-kms/dist/src/radeon_bo_helper.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 4164aa0c42ec -r a6089f8a2602 external/mit/xf86-video-ati-kms/dist/src/radeon_bo_helper.c
--- a/external/mit/xf86-video-ati-kms/dist/src/radeon_bo_helper.c       Sun Dec 30 07:34:43 2018 +0000
+++ b/external/mit/xf86-video-ati-kms/dist/src/radeon_bo_helper.c       Sun Dec 30 08:35:04 2018 +0000
@@ -209,10 +209,12 @@
        if (bitsPerPixel == pScrn->bitsPerPixel)
            bo_use |= GBM_BO_USE_SCANOUT;
 
+#ifdef GBM_BO_USE_LINEAR
        if ((usage_hint == CREATE_PIXMAP_USAGE_BACKING_PIXMAP &&
             info->shadow_primary) ||
            (usage_hint & 0xffff) == CREATE_PIXMAP_USAGE_SHARED)
            bo_use |= GBM_BO_USE_LINEAR;
+#endif
 
        bo->bo.gbm = gbm_bo_create(info->gbm, width, height, gbm_format, bo_use);
        if (!bo->bo.gbm) {



Home | Main Index | Thread Index | Old Index