head 1.5; access; symbols pkgsrc-2026Q1:1.5.0.14 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.5.0.12 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.10 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.8 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.5.0.6 pkgsrc-2025Q1-base:1.5 pkgsrc-2024Q4:1.5.0.4 pkgsrc-2024Q4-base:1.5 pkgsrc-2024Q3:1.5.0.2 pkgsrc-2024Q3-base:1.5 pkgsrc-2024Q2:1.4.0.100 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.98 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.96 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.94 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.92 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.90 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.88 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.86 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.84 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.82 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.80 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.78 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.76 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.74 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.72 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.70 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.66 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.46 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.68 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.64 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.62 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.60 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.58 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.56 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.54 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.52 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.50 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.48 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.44 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.42 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.40 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.38 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.36 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.34 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.32 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.30 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.28 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.26 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.24 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.22 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.4.0.20 pkgsrc-2014Q2-base:1.4 pkgsrc-2014Q1:1.4.0.18 pkgsrc-2014Q1-base:1.4 pkgsrc-2013Q4:1.4.0.16 pkgsrc-2013Q4-base:1.4 pkgsrc-2013Q3:1.4.0.14 pkgsrc-2013Q3-base:1.4 pkgsrc-2013Q2:1.4.0.12 pkgsrc-2013Q2-base:1.4 pkgsrc-2013Q1:1.4.0.10 pkgsrc-2013Q1-base:1.4 pkgsrc-2012Q4:1.4.0.8 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.4.0.6 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.4 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.2 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.3.0.14 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.12 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.10 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.8 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.6 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.4 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.2 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.2.0.16 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.14 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.12 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.10 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.8 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.6 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.4 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.2 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.1.0.4 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.2; locks; strict; comment @# @; 1.5 date 2024.07.02.16.24.47; author wiz; state Exp; branches; next 1.4; commitid IT0CDii3rpz5BhgF; 1.4 date 2012.02.16.20.30.56; author hans; state Exp; branches; next 1.3; 1.3 date 2010.04.16.13.43.36; author tnn; state Exp; branches; next 1.2; 1.2 date 2008.07.16.06.41.17; author bjs; state Exp; branches; next 1.1; 1.1 date 2008.05.06.06.20.25; author bjs; state Exp; branches; next ; desc @@ 1.5 log @libdrm: add URLs for try at upstreaming most of these. @ text @$NetBSD: patch-ac,v 1.4 2012/02/16 20:30:56 hans Exp $ Chunk 1: ? Chunk 2: https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/384 Chunk 3: ? --- xf86drm.h.orig 2010-03-05 23:21:13.000000000 +0000 +++ xf86drm.h @@@@ -35,7 +35,11 @@@@ #define _XF86DRM_H_ #include +#if @@ATOMIC_OPS_CHECK@@ +#include +#else #include +#endif #include #include @@@@ -55,6 +59,9 @@@@ #else /* One of the *BSDs */ #include +#ifdef __sun +#define _IOC(d, x, y, t) ((int)((uint32_t)(d | (((sizeof (t)) & IOCPARM_MASK)<<16) | (x<<8) | y))) +#endif #define DRM_IOCTL_NR(n) ((n) & 0xff) #define DRM_IOC_VOID IOC_VOID #define DRM_IOC_READ IOC_OUT @@@@ -333,7 +340,12 @@@@ typedef struct _drmSetVersion { #define DRM_LOCK_HELD 0x80000000U /**< Hardware lock is held */ #define DRM_LOCK_CONT 0x40000000U /**< Hardware lock is contended */ -#if defined(__GNUC__) && (__GNUC__ >= 2) +#if @@ATOMIC_OPS_CHECK@@ /* configured by pkgsrc */ + +#define DRM_CAS(lock, old, new, __ret) \ + (__ret = atomic_cas_uint(&__drm_dummy_lock(lock), (old), (new)) != (old)); + +#elif defined(__GNUC__) && (__GNUC__ >= 2) # if defined(__i386) || defined(__AMD64__) || defined(__x86_64__) || defined(__amd64__) /* Reflect changes here to drmP.h */ #define DRM_CAS(lock,old,new,__ret) \ @ 1.4 log @Make this build on SunOS. @ text @d1 5 a5 1 $NetBSD: patch-ac,v 1.3 2010/04/16 13:43:36 tnn Exp $ @ 1.3 log @Update to libdrm-2.4.20. Many changes since 2.4.13, I won't pretend to understand them all. This update is a prerequisite for eventually moving forward with MesaLib and xorg-server updates. @ text @d1 1 a1 1 $NetBSD$ d17 11 a27 1 @@@@ -333,7 +337,12 @@@@ typedef struct _drmSetVersion { @ 1.2 log @ Update to libdrm-2.3.1. There is no up-to-date ChangeLog in the package whatsoever, so I cannot include a list here (see GIT history if you're curious). NOTE: This version of libdrm no longer includes the TTM interface. If any [xorg/mesa] packages are updated to versions explicitly requiring libdrm-2.3.1, then BUILDLINK_API_DEPENDS for this package will need to be changed. Also, the i915tex dri driver found in graphics/MesaLib will not build with this version--but nor was it supported on any platform except Linux. I have remove i915tex from the MesaLib driver build; this should be enough to avoid problems. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1 2008/05/06 06:20:25 bjs Exp $ d3 2 a4 2 --- libdrm/xf86drm.h.orig 2008-07-01 03:51:40.000000000 -0400 +++ libdrm/xf86drm.h d17 1 a17 1 @@@@ -305,7 +309,12 @@@@ typedef struct _drmSetVersion { @ 1.1 log @ Add support for the userland atomic ops of NetBSD-current. As per the comment in xf86drm.h, this should be reflected here, as we now use atomic_cas_uint() in drm_atomic.h. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- libdrm/xf86drm.h.orig 2006-11-08 16:55:14.000000000 -0500 d5 1 a5 1 @@@@ -37,7 +37,11 @@@@ d9 1 a9 1 +#if @@ATOMIC_OPS_CHECK@@ /* configured by pkgsrc */ d14 1 a16 1 /* Defaults, if nothing set in xf86config */ @