search for: xf86atomic

Displaying 17 results from an estimated 17 matches for "xf86atomic".

2015 Feb 26
4
[PATCH v2 1/4] Add atomic_inc_return to atomics.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at ubuntu.com> --- xf86atomic.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xf86atomic.h b/xf86atomic.h index 8c4b696..17fb088 100644 --- a/xf86atomic.h +++ b/xf86atomic.h @@ -49,6 +49,7 @@ typedef struct { # define atomic_read(x) ((x)->atomic) # define atomic_set(x, val) ((x)->atomic = (val)) # define atomi...
2010 Mar 12
1
[PATCH 3/3] libdrm: Move all noninstalled headers to noinst_HEADERS.
...a/Makefile.am +++ b/Makefile.am @@ -55,13 +55,13 @@ libdrm_la_SOURCES = \ xf86drmHash.c \ xf86drmRandom.c \ xf86drmSL.c \ - xf86drmMode.c \ - libdrm_lists.h + xf86drmMode.c libdrmincludedir = ${includedir} libdrminclude_HEADERS = xf86drm.h xf86drmMode.h -noinst_HEADERS = xf86atomic.h +noinst_HEADERS = xf86atomic.h \ + libdrm_lists.h EXTRA_DIST = libdrm.pc.in include/drm/* diff --git a/intel/Makefile.am b/intel/Makefile.am index 9add505..d56b03a 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -36,14 +36,16 @@ libdrm_intel_la_LIBADD = ../libdrm.la @PTHREADSTUBS_L...
2015 Feb 24
4
[PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests
...untu.com> --- configure.ac | 1 + nouveau/nouveau.c | 69 +++++++++++------------ tests/Makefile.am | 4 ++ tests/nouveau/.gitignore | 1 + tests/nouveau/Makefile.am | 15 +++++ tests/nouveau/threaded.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++ xf86atomic.h | 6 +- 7 files changed, 198 insertions(+), 38 deletions(-) create mode 100644 tests/nouveau/.gitignore create mode 100644 tests/nouveau/Makefile.am create mode 100644 tests/nouveau/threaded.c diff --git a/configure.ac b/configure.ac index 8afee83..6dc5044 100644 --- a/configur...
2015 Feb 25
1
[PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests
...t;> nouveau/nouveau.c | 69 +++++++++++------------ >> tests/Makefile.am | 4 ++ >> tests/nouveau/.gitignore | 1 + >> tests/nouveau/Makefile.am | 15 +++++ >> tests/nouveau/threaded.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++ >> xf86atomic.h | 6 +- >> 7 files changed, 198 insertions(+), 38 deletions(-) >> create mode 100644 tests/nouveau/.gitignore >> create mode 100644 tests/nouveau/Makefile.am >> create mode 100644 tests/nouveau/threaded.c >> >> diff --git a/configure.ac b/conf...
2015 Feb 25
0
[PATCH 1/2] nouveau: make nouveau importing global buffers completely thread-safe, with tests
...| 1 + > nouveau/nouveau.c | 69 +++++++++++------------ > tests/Makefile.am | 4 ++ > tests/nouveau/.gitignore | 1 + > tests/nouveau/Makefile.am | 15 +++++ > tests/nouveau/threaded.c | 140 ++++++++++++++++++++++++++++++++++++++++++++++ > xf86atomic.h | 6 +- > 7 files changed, 198 insertions(+), 38 deletions(-) > create mode 100644 tests/nouveau/.gitignore > create mode 100644 tests/nouveau/Makefile.am > create mode 100644 tests/nouveau/threaded.c > > diff --git a/configure.ac b/configure.ac > index 8afe...
2014 Jul 30
2
[PATCH libdrm] configure: Support symbol visibility when available
...b/Makefile.am > index 826c30d0c0d9..65680da963eb 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -69,6 +69,7 @@ libdrm_la_SOURCES = \ > xf86drmSL.c \ > xf86drmMode.c \ > xf86atomic.h \ > + libdrm.h \ > libdrm_lists.h > > libdrmincludedir = ${includedir} > diff --git a/configure.ac b/configure.ac > index 1c78c4520c49..f7c7177bfb2a 100644 > --- a/configure.ac > +++ b/configure.ac &g...
2014 Jul 30
3
[PATCH] libdrm: hide all private symbols
On 30/07/14 11:16, Christian K?nig wrote: > [CCing Emil as well] > > Am 30.07.2014 um 11:38 schrieb Maarten Lankhorst: >> Using -export-symbols-regex all private symbols are hidden, resulting in the >> following changes: > > Wasn't "-export-symbols-regex" exactly that stuff we are trying to avoid in mesa? > IMHO we should try to pick up Thierry
2014 Mar 13
2
[PATCH] nouveau: safen up nouveau_device list usage against concurrent access
...x_unlock(&nvdev->lock); ret = drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req); if (ret == 0) { diff --git a/nouveau/private.h b/nouveau/private.h index 60714b8..4f337ad 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -3,6 +3,7 @@ #include <xf86drm.h> #include <xf86atomic.h> +#include <pthread.h> #include "nouveau_drm.h" #include "nouveau.h" @@ -94,7 +95,7 @@ nouveau_bo(struct nouveau_bo *bo) struct nouveau_device_priv { struct nouveau_device base; int close; - atomic_t lock; + pthread_mutex_t lock; struct nouveau_list bo_list...
2019 Jan 22
0
[ANNOUNCE] libdrm 2.4.97
...drm: Attempt to parse SPI devices as platform bus devices. Eric Engestrom (6): xf86drmHash: remove unused loop variable meson: fix typo in compiler flag tests: skip drmdevice test if the machine doesn't have any drm device freedreno: remove always-defined #ifdef xf86atomic: #undef internal define README: reflow the project description to improve readability François Tigeot (2): xf86drm: implement drmParseSubsystemType for DragonFly libdrm: Use DRM_IOCTL_GET_PCIINFO on DragonFly Leo Liu (1): tests/amdgpu/vcn: fix the nop command in IBs Lucas...
2014 Jul 30
0
[PATCH libdrm] configure: Support symbol visibility when available
...++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 libdrm.h diff --git a/Makefile.am b/Makefile.am index 826c30d0c0d9..65680da963eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,6 +69,7 @@ libdrm_la_SOURCES = \ xf86drmSL.c \ xf86drmMode.c \ xf86atomic.h \ + libdrm.h \ libdrm_lists.h libdrmincludedir = ${includedir} diff --git a/configure.ac b/configure.ac index 1c78c4520c49..f7c7177bfb2a 100644 --- a/configure.ac +++ b/configure.ac @@ -366,6 +366,26 @@ AC_ARG_WITH([kernel-source], [kernel_source="$with_kernel_source"])...
2014 Jul 30
0
[PATCH libdrm] configure: Support symbol visibility when available
...x 826c30d0c0d9..65680da963eb 100644 >> --- a/Makefile.am >> +++ b/Makefile.am >> @@ -69,6 +69,7 @@ libdrm_la_SOURCES = \ >> xf86drmSL.c \ >> xf86drmMode.c \ >> xf86atomic.h \ >> + libdrm.h \ >> libdrm_lists.h >> >> libdrmincludedir = ${includedir} >> diff --git a/configure.ac b/configure.ac >> index 1c78c4520c49..f7c7177bfb2a 100644 >> --- a/configure.a...
2015 Mar 19
0
[ANNOUNCE] libdrm 2.4.60
Alan Coopersmith (2): Stop undefining _ATOMIC_TYPE in Solaris/NetBSD section of xf86atomic.h On Solaris, #include <sys/mkdev.h> in xf86drm.c Chih-Wei Huang (1): android: remove duplicate libdrm in LOCAL_SHARED_LIBRARIES Damien Lespiau (1): build: Bump version number to 2.4.60 before release Daniel Vetter (7): intel: Unconditionally clear ioctl structs...
2018 Feb 17
0
[ANNOUNCE] libdrm 2.4.90
...REEDRENO define meson,configure: remove unused HAVE_ETNAVIV define meson,configure: always define HAVE_{INTEL,VMWGFX,NOUVEAU,EXYNOS,VC4,RADEON} always define HAVE_FREEDRENO_KGSL always define HAVE_CAIRO always define HAVE_VALGRIND meson: sort HAVE_* defines xf86atomic: fix -Wundef warning meson: cleanup whitespace meson,configure: add warning when using undefined preprocessor tokens xf86drmHash: remove always-false #if guards configure: always define HAVE_LIBDRM_ATOMIC_PRIMITIVES and HAVE_LIB_ATOMIC_OPS exynos/tests: use #ifdef for...
2014 Apr 08
0
[PATCH] libdrm/nouveau: safen up nouveau libdrm against concurrent access
...EC, prime_fd); if (ret) return ret; + if (!nvbo->name) + nvbo->name = ~0; return 0; } diff --git a/nouveau/private.h b/nouveau/private.h index 60714b8..4f337ad 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -3,6 +3,7 @@ #include <xf86drm.h> #include <xf86atomic.h> +#include <pthread.h> #include "nouveau_drm.h" #include "nouveau.h" @@ -94,7 +95,7 @@ nouveau_bo(struct nouveau_bo *bo) struct nouveau_device_priv { struct nouveau_device base; int close; - atomic_t lock; + pthread_mutex_t lock; struct nouveau_list...
2018 Jan 11
0
[PATCH libdrm] nouveau: Support fence FDs
...it a/nouveau/pushbuf.c b/nouveau/pushbuf.c index 035e3019f2cd..f13804db7534 100644 --- a/nouveau/pushbuf.c +++ b/nouveau/pushbuf.c @@ -33,6 +33,7 @@ #include <string.h> #include <assert.h> #include <errno.h> +#include <unistd.h> #include <xf86drm.h> #include <xf86atomic.h> @@ -77,7 +78,7 @@ nouveau_pushbuf(struct nouveau_pushbuf *push) } static int pushbuf_validate(struct nouveau_pushbuf *, bool); -static int pushbuf_flush(struct nouveau_pushbuf *); +static int pushbuf_flush(struct nouveau_pushbuf *, int *); static bool pushbuf_kref_fits(struct nouveau_...
2014 Jul 31
1
[libdrm PATCH 1/3] nouveau: Only export public functions.
...ent) { diff --git a/nouveau/private.h b/nouveau/private.h index 4f337ad..bf9db04 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -1,6 +1,7 @@ #ifndef __NOUVEAU_LIBDRM_PRIVATE_H__ #define __NOUVEAU_LIBDRM_PRIVATE_H__ +#include <libdrm.h> #include <xf86drm.h> #include <xf86atomic.h> #include <pthread.h> diff --git a/nouveau/pushbuf.c b/nouveau/pushbuf.c index 4f77881..6e703a4 100644 --- a/nouveau/pushbuf.c +++ b/nouveau/pushbuf.c @@ -529,7 +529,7 @@ pushbuf_validate(struct nouveau_pushbuf *push, bool retry) return ret; } -int +drm_public int nouveau_pushbuf_...
2014 Sep 26
14
[RFC] Explicit synchronization for Nouveau
Hi guys, I'd like to start a new thread about explicit fence synchronization. This time with a Nouveau twist. :-) First, let me define what I understand by implicit/explicit sync: Implicit synchronization * Fences are attached to buffers * Kernel manages fences automatically based on buffer read/write access Explicit synchronization * Fences are passed around independently * Kernel takes