[Mesa-dev] [PATCH] mesa: include stdarg.h for va_list

2015-07-15 Thread Jonathan Gray
Include stdarg.h for va_list. Unbreaks the build on OpenBSD: In file included from mesa/program/dummy_errors.c:24: ../src/mesa/main/errors.h:85: error: expected declaration specifiers or '...' be fore 'va_list' Signed-off-by: Jonathan Gray --- src/mesa/main/errors.h | 1

[Mesa-dev] [PATCH] mesa: automake: replace $(RM) with rm -f

2015-07-18 Thread Jonathan Gray
$(RM) is set to 'rm -f' by GNU make, this is not true of other versions of make and RM is not one of the macros required by POSIX. Signed-off-by: Jonathan Gray --- Makefile.am | 2 +- src/gallium/targets/dri/Makefile.am | 6 +++--- src/gallium/tar

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] configure.ac: ensure RM is set

2015-10-13 Thread Jonathan Gray
On Tue, Oct 13, 2015 at 11:25:08AM +0100, Emil Velikov wrote: > On 10 October 2015 at 07:42, Jonathan Gray wrote: > > GNU make predefines RM to rm -f but this is not required by POSIX > > so ensure that RM is set. This fixes "make clean" on OpenBSD. > > >

Re: [Mesa-dev] [PATCH] mesa: Add new fast mtx_t mutex type for basic use cases

2015-01-27 Thread Jonathan Gray
Including under __GNUC__ is going to break the build of Mesa on everything compiled with clang/gcc that isn't Linux. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-02-06 Thread Jonathan Gray
OpenBSD has ffs in libc but does not have ffsll so use the compiler builtin. PIPE_OS_BSD isn't suitable here as FreeBSD has ffsll in libc. Signed-off-by: Jonathan Gray --- src/gallium/auxiliary/util/u_math.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary

Re: [Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-02-06 Thread Jonathan Gray
On Fri, Feb 06, 2015 at 08:11:51AM -0700, Brian Paul wrote: > On 02/06/2015 04:38 AM, Jonathan Gray wrote: > >OpenBSD has ffs in libc but does not have ffsll so use the compiler > >builtin. PIPE_OS_BSD isn't suitable here as FreeBSD has ffsll in libc. > > >

[Mesa-dev] [PATCH] auxilary/os: correct sysctl use in os_get_total_physical_memory()

2015-02-22 Thread Jonathan Gray
The length argument passed to sysctl was the size of the pointer not the type. The result of this is sysctl calls would fail on 32 bit BSD/Mac OS X. Additionally the wrong pointer was passed as an argument to store the result of the sysctl call. Cc: "10.4, 10.5" Signed-off-by: Jon

Re: [Mesa-dev] [PATCH] auxilary/os: correct sysctl use in os_get_total_physical_memory()

2015-02-24 Thread Jonathan Gray
On Tue, Feb 24, 2015 at 04:53:03PM +, Emil Velikov wrote: > On 22 February 2015 at 08:19, Jonathan Gray wrote: > > The length argument passed to sysctl was the size of the pointer > > not the type. The result of this is sysctl calls would fail on > > 32 bit BSD/Mac OS X.

Re: [Mesa-dev] [PATCH] auxilary/os: correct sysctl use in os_get_total_physical_memory()

2015-02-25 Thread Jonathan Gray
On Wed, Feb 25, 2015 at 08:49:52PM +, Emil Velikov wrote: > On 24/02/15 22:48, Jonathan Gray wrote: > > On Tue, Feb 24, 2015 at 04:53:03PM +, Emil Velikov wrote: > >> On 22 February 2015 at 08:19, Jonathan Gray wrote: > >>> The length argument passed to sysc

Re: [Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-02-25 Thread Jonathan Gray
On Mon, Feb 09, 2015 at 07:22:35PM +, Jose Fonseca wrote: > On 09/02/15 16:59, Jon TURNEY wrote: > >On 06/02/2015 19:58, Matt Turner wrote: > >>On Fri, Feb 6, 2015 at 3:38 AM, Jonathan Gray wrote: > >>>OpenBSD has ffs in libc but does not have ffsll so

Re: [Mesa-dev] [PATCH] auxilary/os: correct sysctl use in os_get_total_physical_memory()

2015-02-25 Thread Jonathan Gray
On Wed, Feb 25, 2015 at 10:43:39PM +, Emil Velikov wrote: > On 25 February 2015 at 22:19, Jonathan Gray wrote: > > On Wed, Feb 25, 2015 at 08:49:52PM +, Emil Velikov wrote: > >> On 24/02/15 22:48, Jonathan Gray wrote: > >> > On Tue, Feb 24, 2015 at 04:53:

Re: [Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-02-25 Thread Jonathan Gray
On Wed, Feb 25, 2015 at 06:53:14PM -0800, Matt Turner wrote: > On Wed, Feb 25, 2015 at 5:37 PM, Jonathan Gray wrote: > > If it isn't going to be configure checks could someone merge the > > original patch in this thread? > > I committed > > commit 3492e880

Re: [Mesa-dev] [PATCH] gallium/util: Define ffsll on OpenBSD.

2015-02-25 Thread Jonathan Gray
On Wed, Feb 25, 2015 at 07:09:26PM -0800, Matt Turner wrote: > On Wed, Feb 25, 2015 at 7:03 PM, Jonathan Gray wrote: > > On Wed, Feb 25, 2015 at 06:53:14PM -0800, Matt Turner wrote: > >> On Wed, Feb 25, 2015 at 5:37 PM, Jonathan Gray wrote: > >> > If it isn't

Re: [Mesa-dev] [PATCH 1/2] util: Add utility build-id code.

2017-02-16 Thread Jonathan Gray
On Wed, Feb 15, 2017 at 11:11:50AM -0800, Matt Turner wrote: > Provides the ability to read the .note.gnu.build-id section of ELF > binaries, which is inserted by the --build-id=... flag to ld. > > Reviewed-by: Emil Velikov I don't have time to dig into details right now but this broke the Mesa

Re: [Mesa-dev] [PATCH 1/2] util: Add utility build-id code.

2017-02-16 Thread Jonathan Gray
On Thu, Feb 16, 2017 at 04:25:02PM +, Emil Velikov wrote: > On 16 February 2017 at 14:23, Jonathan Gray wrote: > > On Wed, Feb 15, 2017 at 11:11:50AM -0800, Matt Turner wrote: > >> Provides the ability to read the .note.gnu.build-id section of ELF > >> binarie

Re: [Mesa-dev] [PATCH 1/2] util: Add utility build-id code.

2017-02-17 Thread Jonathan Gray
On Fri, Feb 17, 2017 at 08:30:17AM -0800, Matt Turner wrote: > On Fri, Feb 17, 2017 at 5:39 AM, Emil Velikov > wrote: > > On 17 February 2017 at 01:10, Jonathan Gray wrote: > >> On Thu, Feb 16, 2017 at 04:25:02PM +, Emil Velikov wrote: > >>> On 16 Febr

[Mesa-dev] [PATCH] util/build-id: define ElfW and NT_GNU_BUILD_ID if needed

2017-02-17 Thread Jonathan Gray
Define ElfW() and NT_GNU_BUILD_ID if needed as these defines are not present on at least OpenBSD and FreeBSD. Fixes the build on OpenBSD. Signed-off-by: Jonathan Gray --- src/util/build_id.c | 8 1 file changed, 8 insertions(+) diff --git a/src/util/build_id.c b/src/util/build_id.c

Re: [Mesa-dev] [PATCH v2] i965: Implement INTEL_performance_query backend

2017-02-26 Thread Jonathan Gray
On Thu, Feb 16, 2017 at 01:20:37PM +, Robert Bragg wrote: > diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c > b/src/mesa/drivers/dri/i965/brw_performance_query.c > new file mode 100644 > index 00..f1b6f583bf > --- /dev/null > +++ b/src/mesa/drivers/dri/i965/brw_performan

Re: [Mesa-dev] [PATCH] r600: port si_conv_prim_to_gs_out from radeonsi

2015-08-29 Thread Jonathan Gray
On Fri, Aug 28, 2015 at 10:47:44AM +1000, Dave Airlie wrote: > From: Dave Airlie > > This code we broken by the tess merge, and I totally missed it > until now. I'm not sure this fixes anything but it stops the assert. > > Cc: "11.0" > Signed-off-by: Dave Airlie > --- > src/gallium/drivers/r6

Re: [Mesa-dev] [PATCH] r600: port si_conv_prim_to_gs_out from radeonsi

2015-08-30 Thread Jonathan Gray
On Sun, Aug 30, 2015 at 01:38:49AM -0400, Ilia Mirkin wrote: > On Sun, Aug 30, 2015 at 1:27 AM, Jonathan Gray wrote: > > On Fri, Aug 28, 2015 at 10:47:44AM +1000, Dave Airlie wrote: > >> From: Dave Airlie > >> > >> This code we broken by the tess merge, an

Re: [Mesa-dev] [PATCH 02/16] loader: slim down loader_get_pci_id_for_fd implementation(s)

2016-10-14 Thread Jonathan Gray
m drm device API. The latter can be implemented in any way > depending on the platform and can be reused by others. > > Cc: Jonathan Gray > Cc: Jean-S??bastien P??dron > Signed-off-by: Emil Velikov > --- > Jonathan, Jean-S??bastien I believe I've prodded you guys for

[Mesa-dev] [PATCH] egl/dri2: add a libname to dlopen for OpenBSD

2016-10-15 Thread Jonathan Gray
On OpenBSD try to dlopen 'libglapi.so', ld.so will find the highest major/minor version and open it in this case. Avoids '#error Unknown glapi provider for this platform' at build time. Signed-off-by: Jonathan Gray --- src/egl/drivers/dri2/egl_dri2.c | 2 +- 1 file change

[Mesa-dev] [PATCH] genxml: avoid using a GNU make pattern rule

2016-10-15 Thread Jonathan Gray
% pattern rules are a GNU extension. Convert the use of one to a inference rule to allow this to build on OpenBSD. This is a related change to the one made in e3d43dc5eae5271e2c87bab702aa7409d3dd0b23 Signed-off-by: Jonathan Gray --- src/intel/Makefile.genxml.am | 5 - 1 file changed, 4

[Mesa-dev] [PATCH] egl: remove docs directory from EXTRA_DIST

2016-10-16 Thread Jonathan Gray
The egl docs directory no longer exists as of 88b5c36fe1a1546bf633ee161a6715efc593acbd. Remove it from EXTRA_DIST to unbreak 'make dist' Signed-off-by: Jonathan Gray --- src/egl/Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/src/egl/Makefile.am b/src/egl/Makefil

[Mesa-dev] [PATCH] genxml: add generated headers to EXTRA_DIST

2016-10-16 Thread Jonathan Gray
Building the Mesa 12.0.3 distfile failed on a system without python as generated files were not included in the distfile. Cc: "12.0" Signed-off-by: Jonathan Gray --- src/intel/Makefile.genxml.am | 4 1 file changed, 4 insertions(+) diff --git a/src/intel/Makefile.genxml.am b

[Mesa-dev] [PATCH] mesa: automake: include mesa_glinterop.h in distfile

2016-10-16 Thread Jonathan Gray
Add mesa_glinterop.h to the list of headers that will get included in the distfile as it is required to build Mesa itself. Corrects a regression introduced in a89faa2022fd995af2019c886b152b49a01f9392. Signed-off-by: Jonathan Gray --- src/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [Mesa-dev] [PATCH] genxml: add generated headers to EXTRA_DIST

2016-10-16 Thread Jonathan Gray
On Sun, Oct 16, 2016 at 11:08:42PM +1100, Jonathan Gray wrote: > Building the Mesa 12.0.3 distfile failed on a system without python > as generated files were not included in the distfile. > > Cc: "12.0" > Signed-off-by: Jonathan Gray > --- > src/intel/Makefi

[Mesa-dev] [PATCH 1/3] aubinator: stop using non portable error() function

2016-09-01 Thread Jonathan Gray
error() is a gnu extension and is not present on OpenBSD and likely other systems. Convert use of error to fprintf/strerror/exit. Signed-off-by: Jonathan Gray --- src/intel/tools/aubinator.c | 46 + 1 file changed, 30 insertions(+), 16 deletions

[Mesa-dev] [PATCH 3/3] aubinator: only use program_invocation_short_name with glibc/cygwin

2016-09-01 Thread Jonathan Gray
program_invocation_short_name is a gnu extension. Limit use of it to glibc and cygwin and otherwise use getprogname() which is available on BSD and OS X. Signed-off-by: Jonathan Gray --- src/intel/tools/aubinator.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src

[Mesa-dev] [PATCH] Disable the code that allocates W|X memory on OpenBSD

2016-09-01 Thread Jonathan Gray
OpenBSD now has strict W^X enforcement. Processes that violate the policy get killed by the kernel. Don't attempt to use executable memory on OpenBSD to avoid this. Patch from Mark Kettenis. Cc: 11.2 12.0 Signed-off-by: Mark Kettenis Signed-off-by: Jonathan Gray --- src/gallium/auxi

[Mesa-dev] [PATCH 2/3] aubinator: include libgen.h for basename(3)

2016-09-01 Thread Jonathan Gray
Include libgen.h for basename as required by posix. The definition is not found on at least OpenBSD otherwise. Signed-off-by: Jonathan Gray --- src/intel/tools/aubinator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c index

Re: [Mesa-dev] [PATCH 1/5] mesa: bump required GCC version to 4.8.0

2016-09-07 Thread Jonathan Gray
Red Hat Enterprise Linux 6 which ships with 4.4.7. However > Dave reported that they build Mesa with GCC 4.8. > > Cc: Jonathan Gray > --- > configure.ac | 18 +++--- > include/c99_compat.h | 17 +++-- > 2 files changed, 10 insertions(+), 2

Re: [Mesa-dev] [PATCH 1/5] mesa: bump required GCC version to 4.8.0

2016-09-07 Thread Jonathan Gray
On Wed, Sep 07, 2016 at 11:52:39PM +1000, Timothy Arceri wrote: > On Wed, 2016-09-07 at 19:26 +1000, Jonathan Gray wrote: > > LLVM was imported yes, but the integration of it has only > > started around the same time and it is not enabled by default yet. > > And it was onl

Re: [Mesa-dev] [PATCH] Disable the code that allocates W|X memory on OpenBSD

2016-09-08 Thread Jonathan Gray
On Thu, Sep 08, 2016 at 06:57:44PM +0100, Emil Velikov wrote: > On 1 September 2016 at 18:23, Jonathan Gray wrote: > > OpenBSD now has strict W^X enforcement. Processes that violate > > the policy get killed by the kernel. Don't attempt to use > > executable memor

Re: [Mesa-dev] [PATCH 3/3] aubinator: only use program_invocation_short_name with glibc/cygwin

2016-09-11 Thread Jonathan Gray
On Mon, Sep 12, 2016 at 09:28:58AM +1000, Timothy Arceri wrote: > On Thu, 2016-09-08 at 18:39 +0100, Emil Velikov wrote: > > On 1 September 2016 at 18:12, Jonathan Gray wrote: > > > > > > program_invocation_short_name is a gnu extension.Limit use of it > > &g

Re: [Mesa-dev] [PATCH 1/2] aubinator: rework print_help()

2016-09-12 Thread Jonathan Gray
POSIX (can modify string, > always pass a copy) and GNU (never modifies the string). > > Just printout the complete program name, esp. since the program is not > meant to be installed, thus using $basename is unlikely to work, not to > mention it is misleading. > > Cc: Jonathan G

Re: [Mesa-dev] [PATCH] egl/dri2: add a libname to dlopen for OpenBSD

2016-10-17 Thread Jonathan Gray
On Mon, Oct 17, 2016 at 12:39:11PM +0100, Emil Velikov wrote: > On 17 October 2016 at 10:53, Eric Engestrom wrote: > > On Sunday, 2016-10-16 16:38:35 +1100, Jonathan Gray wrote: > >> On OpenBSD try to dlopen 'libglapi.so', ld.so will find > >> the highest ma

Re: [Mesa-dev] [PATCH] egl/dri2: add a libname to dlopen for OpenBSD

2016-10-17 Thread Jonathan Gray
On Mon, Oct 17, 2016 at 05:34:02PM +0100, Emil Velikov wrote: > On 17 October 2016 at 16:39, Eric Engestrom wrote: > > On Monday, 2016-10-17 22:53:20 +1100, Jonathan Gray wrote: > >> On Mon, Oct 17, 2016 at 12:39:11PM +0100, Emil Velikov wrote: > >> > On 17 October

Re: [Mesa-dev] [PATCH] egl/dri2: add a libname to dlopen for OpenBSD

2016-10-18 Thread Jonathan Gray
On Tue, Oct 18, 2016 at 04:24:20PM +0100, Emil Velikov wrote: > On 18 October 2016 at 00:58, Jonathan Gray wrote: > > On Mon, Oct 17, 2016 at 05:34:02PM +0100, Emil Velikov wrote: > >> On 17 October 2016 at 16:39, Eric Engestrom > >> wrote: > >> > On Mond

Re: [Mesa-dev] [PATCH] egl/dri2: add a libname to dlopen for OpenBSD

2016-10-19 Thread Jonathan Gray
On Wed, Oct 19, 2016 at 10:29:47AM +0100, Emil Velikov wrote: > On 19 October 2016 at 01:05, Jonathan Gray wrote: > > On Tue, Oct 18, 2016 at 04:24:20PM +0100, Emil Velikov wrote: > >> On 18 October 2016 at 00:58, Jonathan Gray wrote: > >> > On Mon, Oct 17, 2016 at

Re: [Mesa-dev] [PATCH] egl/dri2: add a libname to dlopen for OpenBSD

2016-10-19 Thread Jonathan Gray
On Wed, Oct 19, 2016 at 03:17:07PM +0100, Emil Velikov wrote: > On 19 October 2016 at 14:16, Jonathan Gray wrote: > > On Wed, Oct 19, 2016 at 10:29:47AM +0100, Emil Velikov wrote: > >> On 19 October 2016 at 01:05, Jonathan Gray wrote: > >> > On Tue, Oct 18, 2016 at

Re: [Mesa-dev] [PATCH 02/16] loader: slim down loader_get_pci_id_for_fd implementation(s)

2016-10-19 Thread Jonathan Gray
On Sat, Oct 15, 2016 at 01:32:02PM +0100, Emil Velikov wrote: > On Saturday, 15 October 2016, Jonathan Gray wrote: > > > On Tue, Oct 11, 2016 at 07:31:46PM +0100, Emil Velikov wrote: > > > From: Emil Velikov > > > > > > > Currently mesa has three

Re: [Mesa-dev] [PATCH 02/16] loader: slim down loader_get_pci_id_for_fd implementation(s)

2016-10-20 Thread Jonathan Gray
On Thu, Oct 20, 2016 at 11:44:46AM +0100, Emil Velikov wrote: > On 20 October 2016 at 05:35, Jonathan Gray wrote: > > On Sat, Oct 15, 2016 at 01:32:02PM +0100, Emil Velikov wrote: > >> On Saturday, 15 October 2016, Jonathan Gray wrote: > >> > >> > On Tue,

[Mesa-dev] [PATCH] mapi: automake: set VISIBILITY_CFLAGS for shared glapi

2016-10-22 Thread Jonathan Gray
were being exported. Signed-off-by: Jonathan Gray Cc: "11.2 12.0 13.0" --- src/mapi/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am index 5a58ca2..f35cedc 100644 --- a/src/mapi/Makefile.am +++ b/src/mapi/Makefile.am

Re: [Mesa-dev] [PATCH 1/1] Fix endianess detection with musl-based toolchains

2016-11-04 Thread Jonathan Gray
On Fri, Nov 04, 2016 at 07:53:25PM +0100, Bernd Kuhls wrote: > Musl does not define __GLIBC__ and will not provide a __MUSL__ macro: > http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_there_no_MUSL_macro_.3F > > This patch checks for the presence of endian.h and promotes the result > to src/amd/Makefi

Re: [Mesa-dev] Mesa 13.0.2 release candidate

2016-11-24 Thread Jonathan Gray
On Thu, Nov 24, 2016 at 05:25:26PM +, Emil Velikov wrote: > Hello list, > > The candidate for the Mesa 13.0.2 is now available. Currently we have: > - 49 queued > - 4 nominated (outstanding) > - and 1 rejected patch(es) > > > With this series we have - fixes for vc4, i965 and radeon drive

Re: [Mesa-dev] [PATCH libdrm v2 5/5] xf86drm: implement an OpenBSD specific drmGetDevice2

2016-12-05 Thread Jonathan Gray
On Mon, Dec 05, 2016 at 05:56:40PM +, Emil Velikov wrote: > On 1 December 2016 at 04:18, Jonathan Gray wrote: > > DRI devices on OpenBSD are not in their own directory. They reside in > > /dev with a large number of statically generated /dev nodes. > > > > Av

[Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-11 Thread Jonathan Gray
=0x7f7be2b4) at drisw_glx.c:476 10 0x124d8e104b4a in glXCreateContextAttribsARB (dpy=0x124d533f, config=0x124d7a0e7300, share_context=0x0, direct=1, attrib_list=0x7f7be300) at create_context.c:78 Signed-off-by: Jonathan Gray --- src/mesa/main/debug_output.c | 5 ++--- 1 file changed, 2

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-11 Thread Jonathan Gray
te: > > Looks good. > > > > Reviewed-by: Eduardo Lima Mitev > > > > On 12/11/2016 04:42 PM, Jonathan Gray wrote: > >> Commit 929fcee47e46781c57f2a354ce0a013915c033d1 introduced code that > >> attempts to unlock an unlocked mutex which is undefined

Re: [Mesa-dev] [Mesa-maintainers] Proposal of date-based Mesa versioning for 2017

2016-12-12 Thread Jonathan Gray
On Mon, Dec 12, 2016 at 03:28:45PM +, Emil Velikov wrote: > [adding mesa-maintainers to the mix] > > On 1 October 2016 at 20:46, Marek Olk wrote: > > Hi, > > > > I propose that we use versioning in the form of "year.quarter". > > > > 2017 would start with 17.0, then 17.1, 17.2, 17.3 for f

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-19 Thread Jonathan Gray
Can someone push this to master? On Sun, Dec 11, 2016 at 07:21:36PM +0100, Eduardo Lima Mitev wrote: > Looks good. > > Reviewed-by: Eduardo Lima Mitev > > On 12/11/2016 04:42 PM, Jonathan Gray wrote: > > Commit 929fcee47e46781c57f2a354ce0a013915c033d1 introduced code

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-21 Thread Jonathan Gray
On Tue, Dec 20, 2016 at 11:52:26AM -0800, Kenneth Graunke wrote: > On Tuesday, December 20, 2016 12:08:06 PM PST Jonathan Gray wrote: > > Can someone push this to master? > > Pushed: > > To ssh://git.freedesktop.org/git/mesa/mesa >ab8ea1b..62b8bcd master -> m

Re: [Mesa-dev] [PATCH] configure.ac: add OpenBSD

2013-07-17 Thread Jonathan Gray
On Wed, Jul 17, 2013 at 09:26:34PM -0700, Vinson Lee wrote: > On Wed, Jun 26, 2013 at 12:11 AM, Jonathan Gray wrote: > > Signed-off-by: Jonathan Gray > > --- > > configure.ac | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --

[Mesa-dev] [PATCH] don't include libdrm in an include statement

2013-07-17 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/gallium/drivers/radeonsi/Makefile.am | 3 ++- src/gallium/winsys/radeon/drm/radeon_winsys.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git src/gallium/drivers/radeonsi/Makefile.am src/gallium/drivers/radeonsi/Makefile.am index

[Mesa-dev] [PATCH] use the correct variable for x11 includes

2013-07-17 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/egl/drivers/glx/Makefile.am| 2 +- src/gallium/winsys/sw/xlib/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git src/egl/drivers/glx/Makefile.am src/egl/drivers/glx/Makefile.am index 6bf67ea..220134d 100644 --- src/egl

Re: [Mesa-dev] [PATCH] use the correct variable for x11 includes

2013-07-17 Thread Jonathan Gray
I'm not entirely sure if this one is right, but a change along these lines is required to build on systems with X11 outside of the system path in say /usr/X11R6 like on OpenBSD. On Thu, Jul 18, 2013 at 02:57:14PM +1000, Jonathan Gray wrote: > Signed-off-by: Jonathan Gray > --- > s

[Mesa-dev] [PATCH] r300g: make use of gallium's os_get_process_name()

2013-07-17 Thread Jonathan Gray
Lets the code compile on non Linux systems. Signed-off-by: Jonathan Gray --- src/gallium/drivers/r300/r300_chipset.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git src/gallium/drivers/r300/r300_chipset.c src/gallium/drivers/r300/r300_chipset.c index 11061ed..30e085a

Re: [Mesa-dev] [PATCH] don't include libdrm in an include statement

2013-07-18 Thread Jonathan Gray
On Thu, Jul 18, 2013 at 10:24:00AM +0200, Michel Dänzer wrote: > On Don, 2013-07-18 at 14:45 +1000, Jonathan Gray wrote: > > Signed-off-by: Jonathan Gray > > --- > > src/gallium/drivers/radeonsi/Makefile.am | 3 ++- > > src/gallium/winsys/radeon/drm/radeon_w

[Mesa-dev] [PATCH v2] don't include libdrm in an include statement

2013-07-18 Thread Jonathan Gray
v2: use RADEON_CFLAGS instead of LIBDRM_CFLAGS Signed-off-by: Jonathan Gray --- src/gallium/drivers/radeonsi/Makefile.am | 3 ++- src/gallium/winsys/radeon/drm/radeon_winsys.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git src/gallium/drivers/radeonsi/Makefile.am src

[Mesa-dev] [PATCH] nouveau: don't assume libdrm include prefix

2013-07-19 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/gallium/drivers/nouveau/Makefile.am | 2 +- src/gallium/drivers/nouveau/nouveau_context.h | 2 +- src/gallium/drivers/nouveau/nouveau_screen.c | 2 +- src/gallium/drivers/nouveau/nouveau_winsys.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions

[Mesa-dev] [PATCH] dri/nouveau: don't assume libdrm include prefix

2013-07-19 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/mesa/drivers/dri/nouveau/nouveau_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/mesa/drivers/dri/nouveau/nouveau_driver.h src/mesa/drivers/dri/nouveau/nouveau_driver.h index e03b2c1..c65c7c8 100644 --- src/mesa/drivers/dri

[Mesa-dev] [PATCH] mesa: use c99 functions on non-linux platforms if supported

2013-08-01 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/mesa/main/imports.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/mesa/main/imports.h src/mesa/main/imports.h index 53e40b4..aa7dc49 100644 --- src/mesa/main/imports.h +++ src/mesa/main/imports.h @@ -230,7 +230,7 @@ static inline int

Re: [Mesa-dev] [PATCH] mesa: use c99 functions on non-linux platforms if supported

2013-08-01 Thread Jonathan Gray
On Thu, Aug 01, 2013 at 11:21:57AM -0700, Ian Romanick wrote: > On 08/01/2013 09:54 AM, Chad Versace wrote: > >On 08/01/2013 09:48 AM, Chad Versace wrote: > >>On 08/01/2013 12:27 AM, Jonathan Gray wrote: > >>>Signed-off-by: Jonathan Gray > >>>--- >

Re: [Mesa-dev] [PATCH] mesa: use c99 functions on non-linux platforms if supported

2013-08-05 Thread Jonathan Gray
On Mon, Aug 05, 2013 at 09:46:58AM -0700, Chad Versace wrote: > On 08/01/2013 03:52 PM, Jonathan Gray wrote: > >On Thu, Aug 01, 2013 at 11:21:57AM -0700, Ian Romanick wrote: > >>On 08/01/2013 09:54 AM, Chad Versace wrote: > >>>On 08/01/2013 09:48 AM, Chad Versace wr

Re: [Mesa-dev] [PATCH] build: fix out-of-tree builds in gallium/auxiliary

2013-08-06 Thread Jonathan Gray
The problems with the build system are bad enough without depending on non posix gnu only options. This should be mkdir -p On Tue, Aug 06, 2013 at 12:01:06PM +0100, Ross Burton wrote: > The rules were writing files to e.g. util/u_indices_gen.py, but in an > out-of-tree build this directory doesn'

[Mesa-dev] [PATCH] gallium: add endian detection for OpenBSD

2013-08-14 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/gallium/include/pipe/p_config.h | 10 ++ 1 file changed, 10 insertions(+) diff --git src/gallium/include/pipe/p_config.h src/gallium/include/pipe/p_config.h index 1588a92..9af5df7 100644 --- src/gallium/include/pipe/p_config.h +++ src/gallium

Re: [Mesa-dev] [PATCH] build: Install libwayland-egl.so.* symlinks in lib/

2013-08-18 Thread Jonathan Gray
Going behind the back of libtool like this will break on any system that does not use linux style library versioning. No one wants to comment on any patches to avoid this. But if nothing else the comment about providing compatibility to the old build system is wrong as several people objected to

[Mesa-dev] [PATCH] automake: don't enable -Wl, --no-undefined on OpenBSD

2014-04-01 Thread Jonathan Gray
: Jonathan Gray --- configure.ac| 13 + src/egl/main/Makefile.am| 3 +-- src/egl/wayland/wayland-egl/Makefile.am | 3 +-- src/gallium/targets/egl-static/Makefile.am | 3 +-- src/gallium/targets/gbm/Makefile.am | 3

[Mesa-dev] [PATCH v2] automake: don't enable -Wl, --no-undefined on OpenBSD

2014-04-02 Thread Jonathan Gray
and change -Wl,--no-undefined references in Automake.inc as well. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76856 Signed-off-by: Jonathan Gray --- configure.ac| 13 + src/egl/main/Makefile.am| 2 +- src/egl/wayland/wa

[Mesa-dev] [PATCH v3] egl/dri2: use drm macros to construct device name

2014-04-02 Thread Jonathan Gray
Don't hardcode /dev/dri/card0 but instead use the drm macros which allows the correct /dev/drm0 device to be opened on OpenBSD. v2: use snprintf and fallback to /dev/dri/card0 v3: check for snprintf truncation Signed-off-by: Jonathan Gray --- src/egl/drivers/dri2/platform_drm.c | 7 +

Re: [Mesa-dev] [PATCH v3] egl/dri2: use drm macros to construct device name

2014-04-02 Thread Jonathan Gray
On Wed, Apr 02, 2014 at 11:09:09PM -0700, Matt Turner wrote: > On Wed, Apr 2, 2014 at 10:22 PM, Jonathan Gray wrote: > > Don't hardcode /dev/dri/card0 but instead use the drm > > macros which allows the correct /dev/drm0 device to be > > opened on OpenBSD. > > >

Re: [Mesa-dev] [PATCH] egl/dri2: don't require libudev to build drm/wayland platforms

2014-04-05 Thread Jonathan Gray
On Sat, Apr 05, 2014 at 02:12:31PM +0100, Emil Velikov wrote: > Hi Jonathan, > > Just pushed as many of your patches as I can see to master. Let me know if I > missed any. > > Some of the patches are stable material, so I've tagged them for the 10.1 > stable branch. > > Thanks again. > -Emil Gr

[Mesa-dev] [PATCH] glsl: simplify the M_PI*f macros, fixes build on OpenBSD

2014-05-13 Thread Jonathan Gray
d=801 http://austingroupbugs.net/view.php?id=828 Simplify the M_PI*f macros by using casts directly in the defines as suggested by Kenneth Graunke. Cc: "10.2" Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78665 Signed-off-by: Jonathan Gray --- src/glsl/builtin_functions.cpp | 8 +++

Re: [Mesa-dev] [PATCH] configure: correctly set LD_NO_UNDEFINED

2014-05-13 Thread Jonathan Gray
Reviewed-by: Jonathan Gray ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-18 Thread Jonathan Gray
On Sun, May 18, 2014 at 08:07:38AM +0100, Emil Velikov wrote: > Create a single library containing the state-tracker etc. > thus have a smaller overall size footprint of mesa. > > The driver can be built with the relevant pipe-drivers > statically linked in, or loaded as shared modules. > Currentl

Re: [Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-18 Thread Jonathan Gray
On Sun, May 18, 2014 at 09:44:00AM +0100, Emil Velikov wrote: > On 18/05/14 08:41, Jonathan Gray wrote: > > On Sun, May 18, 2014 at 08:07:38AM +0100, Emil Velikov wrote: > >> Create a single library containing the state-tracker etc. > >> thus have a smaller ove

Re: [Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-19 Thread Jonathan Gray
On Mon, May 19, 2014 at 11:57:58PM +0100, Emil Velikov wrote: > On 18/05/14 12:22, Jonathan Gray wrote: > [snip] > > > > Currently I run my autotools builds like this: > > > > export LDFLAGS=-L/usr/local/lib > > export CPPFLAGS="-I/usr/local/includ

[Mesa-dev] [PATCH] radeon/winsys: correct RADEON_GEM_WAIT_IDLE use

2013-06-04 Thread Jonathan Gray
issue. Signed-off-by: Jonathan Gray --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 2 +- src/gallium/winsys/radeon/tools/radeon_ctx.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git src/gallium/winsys/radeon/drm/radeon_drm_bo.c src/gallium/winsys/radeon/drm

Re: [Mesa-dev] [PATCH] radeon/winsys: correct RADEON_GEM_WAIT_IDLE use

2013-06-06 Thread Jonathan Gray
On Thu, Jun 06, 2013 at 11:30:50AM +0200, Michel Dänzer wrote: > On Mit, 2013-06-05 at 15:00 +1000, Jonathan Gray wrote: > > RADEON_GEM_WAIT_IDLE is declared DRM_IOW but mesa > > uses it with drmCommandWriteRead instead of drmCommandWrite > > which leads to the ioctl being un

[Mesa-dev] [PATCH] gallium: replace bswap_32 calls with util_bswap32

2013-06-16 Thread Jonathan Gray
byteswap.h and bswap_32 aren't portable, replace them with calls to gallium's util_bswap32 as suggested by Mark Kettenis. Lets these files build on OpenBSD. Signed-off-by: Jonathan Gray --- src/gallium/drivers/r600/r600_asm.c | 4 ++-- src/gallium/drivers/r600/r600_shader.c

Re: [Mesa-dev] [PATCH] gallium: replace bswap_32 calls with util_bswap32

2013-06-17 Thread Jonathan Gray
On Mon, Jun 17, 2013 at 07:47:11AM +0200, Michel Dänzer wrote: > On Mon, 2013-06-17 at 01:11 +1000, Jonathan Gray wrote: > > byteswap.h and bswap_32 aren't portable, replace them with calls to > > gallium's util_bswap32 as suggested by Mark Kettenis. Lets these f

[Mesa-dev] [PATCH] configure.ac: make grep tests more portable

2013-06-20 Thread Jonathan Gray
Use grep -w instead of the empty string escape sequences which are less portable. Makes the grep tests function as intended on OpenBSD. Signed-off-by: Jonathan Gray --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git configure.ac configure.ac index 6832b0d

[Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Jonathan Gray
The symlinks for compatibility with old scripts assumes sysv shared library versioning and breaks other systems. For example OpenBSD uses sunos 4 style .so.major.minor versioning so the targets with ln will fail. Fixes bug 63269. Signed-off-by: Jonathan Gray --- src/egl/main/Makefile.am

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Jonathan Gray
On Thu, Jun 20, 2013 at 04:00:04PM -0600, Brian Paul wrote: > On 06/20/2013 03:32 PM, Dave Airlie wrote: > >On Fri, Jun 21, 2013 at 2:28 AM, Jonathan Gray wrote: > >>The symlinks for compatibility with old scripts assumes > >>sysv shared library versioning and breaks

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Jonathan Gray
On Thu, Jun 20, 2013 at 08:32:03PM -0700, Kenneth Graunke wrote: > On 06/20/2013 06:45 PM, Jonathan Gray wrote: > >On Thu, Jun 20, 2013 at 04:00:04PM -0600, Brian Paul wrote: > >>On 06/20/2013 03:32 PM, Dave Airlie wrote: > >>>On Fri, Jun 21, 2013 at 2:28 AM, J

[Mesa-dev] [PATCH] st/xvmc/tests: avoid non portable error.h functions

2013-06-26 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/gallium/state_trackers/xvmc/tests/xvmc_bench.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git src/gallium/state_trackers/xvmc/tests/xvmc_bench.c src/gallium/state_trackers/xvmc/tests/xvmc_bench.c index fe85802..37360a6 100644

[Mesa-dev] [PATCH] r300g: add program name check for BSD

2013-06-26 Thread Jonathan Gray
program_invocation_short_name is glibc specific. Provide an alternative using getprogname(), which can be found on *BSD and OS X. Signed-off-by: Jonathan Gray --- src/gallium/drivers/r300/r300_chipset.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git src/gallium

[Mesa-dev] [PATCH] configure.ac: add OpenBSD

2013-06-26 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git configure.ac configure.ac index 6832b0d..6a817d0 100644 --- configure.ac +++ configure.ac @@ -449,7 +449,7 @@ if test "x$enable_asm" = xyes; then case "$host

Re: [Mesa-dev] [PATCH] r300g: add program name check for BSD

2013-06-26 Thread Jonathan Gray
On Wed, Jun 26, 2013 at 07:21:59AM -0500, Patrick Baggett wrote: > On Wed, Jun 26, 2013 at 2:11 AM, Jonathan Gray wrote: > > > program_invocation_short_name is glibc specific. Provide an > > alternative using getprogname(), which can be found on *BSD and OS X. > > >

Re: [Mesa-dev] [PATCH] Fix symlinking of libraries in /lib on non-Linux systems

2013-06-26 Thread Jonathan Gray
On Wed, Jun 26, 2013 at 02:39:40PM +0200, Jean-Sébastien Pédron wrote: > On 26.06.2013 14:37, Jean-Sébastien Pédron wrote: > > Makefiles were explicitly looking for a libraries suffixed with the full > > libtool versioning, such as "libglapi.so.0.0.0". However, on some > > systems (at least FreeBSD

Re: [Mesa-dev] [PATCH] Use and bswap32(x) on FreeBSD

2013-06-26 Thread Jonathan Gray
On Wed, Jun 26, 2013 at 03:05:47PM +0200, Jean-Sébastien Pédron wrote: > Hello, > > This is the equivalent to and bswap_32(x) on Linux. this is already fixed in a cleaner way, see ebd68dd02998a8595cb10844c37a6b02dc3078a8 ___ mesa-dev mailing list mesa-

Re: [Mesa-dev] [PATCH] configure.ac: On some systems, "x86-64" is called "amd64"

2013-06-26 Thread Jonathan Gray
On Wed, Jun 26, 2013 at 02:54:34PM +0200, Jean-Sébastien Pédron wrote: > Hello, > > On FreeBSD, the x86-64 arch is named "amd64". This patch fixes its > detection in the configure script. Shouldn't config.guess/config.sub remap it? from config.log here: uname -m = amd64 uname -r = 5.3 uname -s

Re: [Mesa-dev] [PATCH] r300g: add program name check for BSD

2013-06-26 Thread Jonathan Gray
On Wed, Jun 26, 2013 at 09:49:08AM -0600, Brian Paul wrote: > On 06/26/2013 01:11 AM, Jonathan Gray wrote: > >program_invocation_short_name is glibc specific. Provide an > >alternative using getprogname(), which can be found on *BSD and OS X. > > > >Signed-off-by: Jon

Re: [Mesa-dev] [PATCH] st/xvmc/tests: avoid non portable error.h functions

2013-07-10 Thread Jonathan Gray
On Wed, Jun 26, 2013 at 09:13:13AM +0200, Christian König wrote: > Am 26.06.2013 09:10, schrieb Jonathan Gray: > >Signed-off-by: Jonathan Gray > > Looks good on first glance, patch is: > > Reviewed-by: Christian König Can you push it to the repo then? >

Re: [Mesa-dev] [PATCH] configure.ac: make grep tests more portable

2013-07-10 Thread Jonathan Gray
anyone get a chance to look at this? On Thu, Jun 20, 2013 at 08:14:33PM +1000, Jonathan Gray wrote: > Use grep -w instead of the empty string escape sequences > which are less portable. Makes the grep tests > function as intended on OpenBSD. > > Signed-off-by

Re: [Mesa-dev] [PATCH] gallium: add endian detection for OpenBSD

2014-03-10 Thread Jonathan Gray
Still looking to have this merged... On Thu, Aug 15, 2013 at 12:17:27AM +1000, Jonathan Gray wrote: > Signed-off-by: Jonathan Gray > --- > src/gallium/include/pipe/p_config.h | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git src/gallium/include/pipe/p_confi

[Mesa-dev] [PATCH] glsl: Link glsl_compiler with pthreads library.

2014-03-10 Thread Jonathan Gray
: ../../include/c11/threads_posix.h:248: undefined reference to `pthread_mutex_unlock' Signed-off-by: Jonathan Gray --- src/glsl/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git src/glsl/Makefile.am src/glsl/Makefile.am index 8516459..534eaa3 100644 ---

Re: [Mesa-dev] [PATCH] gallium: add endian detection for OpenBSD

2014-03-10 Thread Jonathan Gray
On Mon, Mar 10, 2014 at 08:27:17AM -0600, Brian Paul wrote: > On 03/10/2014 06:20 AM, Jonathan Gray wrote: > >Still looking to have this merged... > > > >On Thu, Aug 15, 2013 at 12:17:27AM +1000, Jonathan Gray wrote: > >>Signed-off-by: Jonathan Gray > >

Re: [Mesa-dev] [PATCH] ax_prog_flex.m4: change grep syntax to accept e.g. flex.real

2014-03-10 Thread Jonathan Gray
On Thu, Jul 18, 2013 at 01:59:37PM -0700, Matt Turner wrote: > On Mon, Apr 15, 2013 at 1:46 PM, Andreas Oberritter wrote: > > This is required in case a wrapper or symlink is used. This patch > > has also been sent upstream, awaiting moderation. > > > > Signed-off-by: Andreas Oberritter > > --- >

[Mesa-dev] [PATCH 1/4] loader: use 0 instead of FALSE which isn't defined

2014-03-18 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- src/loader/loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git src/loader/loader.c src/loader/loader.c index 811f8a2..caeeebf 100644 --- src/loader/loader.c +++ src/loader/loader.c @@ -219,12 +219,12 @@ loader_get_pci_id_for_fd(int fd

  1   2   3   >