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

2013-06-04 Thread Jonathan Gray
issue. Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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 unmatched and returning

[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 j...@jsg.id.au --- src/gallium/drivers/r600/r600_asm.c | 4 ++-- src/gallium/drivers/r600

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 files build on OpenBSD. Signed

[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 j...@jsg.id.au --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git configure.ac configure.ac

[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 j...@jsg.id.au --- src/egl/main

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 j...@jsg.id.au wrote: The symlinks for compatibility with old scripts assumes sysv shared library versioning and breaks other systems

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, Jonathan Gray j...@jsg.id.au wrote

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

2013-06-26 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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 and

Re: [Mesa-dev] [PATCH] Use sys/endian.h 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 byteswap.h and bswap_32(x) on Linux. this is already fixed in a cleaner way, see ebd68dd02998a8595cb10844c37a6b02dc3078a8 ___ mesa-dev mailing

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-27 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: Jonathan Gray j...@jsg.id.au --- src

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 j...@jsg.id.au wrote: Signed-off-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git configure.ac

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

2013-07-17 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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

2013-07-17 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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 j...@jsg.id.au --- src

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

2013-07-18 Thread Jonathan Gray
Lets the code compile on non Linux systems. Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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 j...@jsg.id.au --- src/gallium/drivers/radeonsi/Makefile.am | 3 ++- src/gallium/winsys/radeon/drm/radeon_winsys.h | 2 +- 2 files

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

2013-08-01 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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 j...@jsg.id.au --- src/mesa/main/imports.h | 2 +- 1 file

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 wrote: On 08/01/2013 12:27 AM, Jonathan

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't

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

2013-08-14 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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

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

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 j...@jsg.id.au --- src/gallium/include/pipe/p_config.h | 10 ++ 1 file changed, 10 insertions(+) diff --git src/gallium/include/pipe/p_config.h src

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

2014-03-10 Thread Jonathan Gray
/c11/threads_posix.h:248: undefined reference to `pthread_mutex_unlock' Signed-off-by: Jonathan Gray j...@jsg.id.au --- 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 --- src/glsl

[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 j...@jsg.id.au --- 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

[Mesa-dev] [PATCH 3/4] glx/dri2: handle dri authenticating before calling the loader.

2014-03-18 Thread Jonathan Gray
The loader may issue dri ioctls to determine the driver name. Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/glx/dri2_glx.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git src/glx/dri2_glx.c src/glx/dri2_glx.c index 5a960b0..b61422f 100644 --- src

[Mesa-dev] [PATCH 4/4] megadriver_stub.c: don't use _GNU_SOURCE to gate the compat code

2014-03-18 Thread Jonathan Gray
_GNU_SOURCE is only set/required for linux*|*-gnu*|gnu*) and as the functionality is available on other systems check for RTLD_DEFAULT instead. Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/mesa/drivers/dri/common/megadriver_stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-18 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/loader/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/loader/loader.c src/loader/loader.c index caeeebf..1744acb 100644 --- src/loader/loader.c +++ src/loader/loader.c @@ -202,7 +202,7 @@ out: return (*chip_id

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-18 Thread Jonathan Gray
On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: On 18/03/14 14:59, Jonathan Gray wrote: Signed-off-by: Jonathan Gray j...@jsg.id.au --- Hi Jonathan While the summary covers what the patch does, the *ahem* commit message fails to explain why it's needed. AFAICS

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

2014-03-19 Thread Jonathan Gray
drm headers may be installed in a different directory Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/gallium/drivers/nouveau/nouveau_context.h | 2 +- src/gallium/drivers/nouveau/nouveau_screen.c| 2 +- src/gallium/drivers/nouveau/nouveau_vp3_video.h | 2 +- src/gallium/drivers

[Mesa-dev] [PATCH] nouveau: use DLOPEN_LIBS instead of -ldl

2014-03-19 Thread Jonathan Gray
libdl does not exist on many platforms which have dlopen in libc. Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/gallium/drivers/nouveau/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/gallium/drivers/nouveau/Makefile.am src/gallium/drivers/nouveau

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

2014-03-20 Thread Jonathan Gray
On Thu, Mar 20, 2014 at 07:29:32AM -0400, Ilia Mirkin wrote: On Wed, Mar 19, 2014 at 11:43 PM, Jonathan Gray j...@jsg.id.au wrote: drm headers may be installed in a different directory I'm curious -- how can this happen? Looking at Makefile.am from drm:nouveau/Makefile.am

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

2014-03-20 Thread Jonathan Gray
On Thu, Mar 20, 2014 at 08:09:41AM -0400, Ilia Mirkin wrote: On Thu, Mar 20, 2014 at 7:57 AM, Jonathan Gray j...@jsg.id.au wrote: On Thu, Mar 20, 2014 at 07:29:32AM -0400, Ilia Mirkin wrote: On Wed, Mar 19, 2014 at 11:43 PM, Jonathan Gray j...@jsg.id.au wrote: drm headers may be installed

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

2014-03-20 Thread Jonathan Gray
On Thu, Mar 20, 2014 at 08:42:59AM -0400, Ilia Mirkin wrote: On Thu, Mar 20, 2014 at 8:25 AM, Jonathan Gray j...@jsg.id.au wrote: On Thu, Mar 20, 2014 at 08:09:41AM -0400, Ilia Mirkin wrote: On Thu, Mar 20, 2014 at 7:57 AM, Jonathan Gray j...@jsg.id.au wrote: On Thu, Mar 20, 2014 at 07:29

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-21 Thread Jonathan Gray
On Sat, Mar 22, 2014 at 12:10:26AM +, Emil Velikov wrote: On 19/03/14 01:06, Jonathan Gray wrote: On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: On 18/03/14 14:59, Jonathan Gray wrote: Signed-off-by: Jonathan Gray j...@jsg.id.au --- Hi Jonathan While the summary

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-21 Thread Jonathan Gray
On Sat, Mar 22, 2014 at 03:05:41PM +1100, Jonathan Gray wrote: On Sat, Mar 22, 2014 at 12:10:26AM +, Emil Velikov wrote: On 19/03/14 01:06, Jonathan Gray wrote: On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: On 18/03/14 14:59, Jonathan Gray wrote: Signed-off

Re: [Mesa-dev] [PATCH 2/4] loader: don't limit the non-udev path to only android

2014-03-22 Thread Jonathan Gray
On Sat, Mar 22, 2014 at 11:45:35AM +, Emil Velikov wrote: On 22/03/14 04:05, Jonathan Gray wrote: On Sat, Mar 22, 2014 at 12:10:26AM +, Emil Velikov wrote: On 19/03/14 01:06, Jonathan Gray wrote: On Tue, Mar 18, 2014 at 07:56:21PM +, Emil Velikov wrote: On 18/03/14 14:59

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

2014-03-22 Thread Jonathan Gray
After the loader changes libudev is no longer required to build gbm or the egl drm/wayland platforms. Remove a libudev ifdef which allows the the drm egl driver to be loaded on OpenBSD. Signed-off-by: Jonathan Gray j...@jsg.id.au Reviewed-by: Emil Velikov emil.l.veli...@gmail.com --- src/egl

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

2014-03-22 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 suggested by Emil Velikov. Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/egl/drivers/dri2/platform_drm.c | 6

[Mesa-dev] [PATCH v2] configure: don't require libudev for gbm or egl drm/wayland

2014-03-22 Thread Jonathan Gray
After the loader changes libudev is no longer required for gbm or the egl drm/wayland platforms. Lets these build/run on OpenBSD. v2: preserve the libudev requirement for Linux as suggested by Emil Velikov. Signed-off-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 21

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

2014-04-01 Thread Jonathan Gray
-by: Jonathan Gray j...@jsg.id.au --- 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

[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 j...@jsg.id.au --- configure.ac| 13 + src/egl/main/Makefile.am| 2 +- src/egl

[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 j...@jsg.id.au --- src/egl/drivers/dri2/platform_drm.c

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

2014-04-03 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 j...@jsg.id.au 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. v2: use snprintf and fallback

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 Great,

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

2014-05-13 Thread Jonathan Gray
://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 mesa-sta...@lists.freedesktop.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78665 Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/glsl

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

2014-05-13 Thread Jonathan Gray
Reviewed-by: Jonathan Gray j...@jsg.id.au ___ 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. Currently we

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 overall size footprint of mesa. The driver

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/include -I/usr/local/include/libelf export AUTOMAKE_VERSION=1.12

Re: [Mesa-dev] [PATCH] mesa: Drop USE_IEEE define.

2014-08-08 Thread Jonathan Gray
On Wed, Aug 06, 2014 at 04:54:38PM -0700, Matt Turner wrote: I think OpenVMS was the only platform that Mesa ran on that used a non-IEEE representation for floats. We removed OpenVMS support a while back, and this should alleviate the need to continue updating the this-platform-uses-IEEE list.

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

2014-08-30 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/gallium/state_trackers/xvmc/tests/test_blocks.c | 6 -- src/gallium/state_trackers/xvmc/tests/test_context.c| 6 -- src/gallium/state_trackers/xvmc/tests/test_rendering.c | 13 - src/gallium/state_trackers/xvmc

[Mesa-dev] [PATCH] automake: check if the linker supports --dynamic-list

2014-09-01 Thread Jonathan Gray
sometime after binutils 2.17 was released as it is present in 2.18. Signed-off-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 18 ++ src/gallium/targets/dri/Makefile.am | 6 +- src/gallium/targets/vdpau/Makefile.am | 6 +- 3 files changed, 28

[Mesa-dev] [PATCH] configure.ac: detect LLVM patch level when built via cmake

2014-09-05 Thread Jonathan Gray
In LLVM 3.4.1 and 3.4.2 the patch level was only set in config.h when LLVM was built via autoconf and not when it was built with cmake. Fall back to retrieving the patch level from llvm-config --version to handle this case. Cc: 10.2 10.3 mesa-sta...@lists.freedesktop.org Signed-off-by: Jonathan

[Mesa-dev] [PATCH] configure.ac: strip _GNU_SOURCE from llvm-config output

2014-09-05 Thread Jonathan Gray
...@lists.freedesktop.org Signed-off-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index af950e7..0722114 100644 --- a/configure.ac +++ b/configure.ac @@ -1650,6 +1650,7 @@ strip_unwanted_llvm_flags() { # Use

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: detect LLVM patch level when built via cmake

2014-09-05 Thread Jonathan Gray
On Fri, Sep 05, 2014 at 08:48:17PM +0100, Emil Velikov wrote: On 05/09/14 16:43, Jonathan Gray wrote: In LLVM 3.4.1 and 3.4.2 the patch level was only set in config.h when LLVM was built via autoconf and not when it was built with cmake. Fall back to retrieving the patch level from llvm

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: strip _GNU_SOURCE from llvm-config output

2014-09-05 Thread Jonathan Gray
On Fri, Sep 05, 2014 at 09:00:55PM +0100, Emil Velikov wrote: On 05/09/14 16:44, Jonathan Gray wrote: Mesa already defines _GNU_SOURCE for glibc based systems and defining _GNU_SOURCE will break the Mesa build on other systems such as OpenBSD. _GNU_SOURCE only seems to be included

[Mesa-dev] [PATCH] configure.ac: unbreak the build with non gnu grep

2014-09-10 Thread Jonathan Gray
to build on OpenBSD again. Signed-off-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 985ad4c..f3ee387 100644 --- a/configure.ac +++ b/configure.ac @@ -1695,7 +1695,7 @@ if test x

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: detect LLVM patch level when built via cmake

2014-09-17 Thread Jonathan Gray
On Tue, Sep 16, 2014 at 06:24:40PM -0400, Tom Stellard wrote: On Tue, Sep 09, 2014 at 07:56:03PM +0100, Emil Velikov wrote: On 09/09/14 16:26, Tom Stellard wrote: On Sat, Sep 06, 2014 at 01:43:55AM +1000, Jonathan Gray wrote: In LLVM 3.4.1 and 3.4.2 the patch level was only set

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: detect LLVM patch level when built via cmake

2014-09-17 Thread Jonathan Gray
On Wed, Sep 17, 2014 at 07:03:56AM -0700, Tom Stellard wrote: On Wed, Sep 17, 2014 at 09:29:34PM +1000, Jonathan Gray wrote: On Tue, Sep 16, 2014 at 06:24:40PM -0400, Tom Stellard wrote: On Tue, Sep 09, 2014 at 07:56:03PM +0100, Emil Velikov wrote: On 09/09/14 16:26, Tom Stellard wrote

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: detect LLVM patch level when built via cmake

2014-09-22 Thread Jonathan Gray
On Tue, Sep 23, 2014 at 12:38:55AM +0100, Emil Velikov wrote: On 17/09/14 15:37, Jonathan Gray wrote: On Wed, Sep 17, 2014 at 07:03:56AM -0700, Tom Stellard wrote: On Wed, Sep 17, 2014 at 09:29:34PM +1000, Jonathan Gray wrote: On Tue, Sep 16, 2014 at 06:24:40PM -0400, Tom Stellard wrote

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: Compute LLVM_VERSION_PATCH using llvm-config

2014-09-26 Thread Jonathan Gray
-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index bad1528..a097a5c 100644 --- a/configure.ac +++ b/configure.ac @@ -1704,11 +1704,10 @@ if test x$enable_gallium_llvm = xyes

[Mesa-dev] [PATCH] i965: avoid anonymous struct in float - VF conversions

2014-11-29 Thread Jonathan Gray
Anonymous structures are only supported with newer versions of GCC. They will not work with GCC 4.2.1 used by OpenBSD or GCC 4.4.7 shipped with RHEL6 going by a commit to fix a similiar problem in radeonsi earlier in the year (74388dd24bc7fdb9e62ec18096163f5426e03fbf). Signed-off-by: Jonathan

Re: [Mesa-dev] [PATCH] i965: Fix union usage for GCC = 4.6.

2014-12-05 Thread Jonathan Gray
On Fri, Dec 05, 2014 at 06:56:27PM -0800, Matt Turner wrote: On Fri, Dec 5, 2014 at 6:18 PM, Vinson Lee v...@freedesktop.org wrote: This patch fixes this build error with GCC = 4.6. CXXtest_vf_float_conversions.o test_vf_float_conversions.cpp: In function ???unsigned int

Re: [Mesa-dev] [RFC 6/8] mesa: remove support for GCC older than 4.1.0

2014-12-15 Thread Jonathan Gray
On Sat, Dec 13, 2014 at 09:09:27PM +1100, Timothy Arceri wrote: On Fri, 2014-12-12 at 07:01 -0600, kallisti5 wrote: On 2014-12-12 05:46, Timothy Arceri wrote: Signed-off-by: Timothy Arceri t_arc...@yahoo.com.au --- src/mesa/main/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1

Re: [Mesa-dev] [RFC 6/8] mesa: remove support for GCC older than 4.1.0

2014-12-17 Thread Jonathan Gray
On Thu, Dec 18, 2014 at 12:26:10AM +1100, Timothy Arceri wrote: On Tue, 2014-12-16 at 22:58 -0800, Vinson Lee wrote: On Mon, Dec 15, 2014 at 6:23 PM, Jonathan Gray j...@jsg.id.au wrote: On Sat, Dec 13, 2014 at 09:09:27PM +1100, Timothy Arceri wrote: On Fri, 2014-12-12 at 07:01 -0600

Re: [Mesa-dev] [RFC 6/8] mesa: remove support for GCC older than 4.1.0

2014-12-17 Thread Jonathan Gray
On Wed, Dec 17, 2014 at 07:39:21AM -0800, Matt Turner wrote: On Wed, Dec 17, 2014 at 7:28 AM, Jonathan Gray j...@jsg.id.au wrote: On Thu, Dec 18, 2014 at 12:26:10AM +1100, Timothy Arceri wrote: On Tue, 2014-12-16 at 22:58 -0800, Vinson Lee wrote: On Mon, Dec 15, 2014 at 6:23 PM, Jonathan

Re: [Mesa-dev] [PATCH] mesa: Add mesa SHA-1 functions

2014-12-22 Thread Jonathan Gray
On Fri, Dec 19, 2014 at 11:44:42AM -0800, Kenneth Graunke wrote: On Sunday, December 14, 2014 03:06:41 PM Emil Velikov wrote: On 11/12/14 21:51, Carl Worth wrote: From: Kristian Høgsberg k...@bitplanet.net The upcoming shader cache uses the SHA-1 algorithm for cryptographic naming.

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. Signed-off-by: Jonathan Gray j...@jsg.id.au

[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 j...@jsg.id.au --- src/gallium/auxiliary/util/u_math.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium

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

2015-01-27 Thread Jonathan Gray
Including linux/futex.h 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

Re: [Mesa-dev] [PATCH] ax_prog_flex.m4: Merge upstream OpenBSD fixes.

2015-01-05 Thread Jonathan Gray
) AX_PROG_FLEX: Also accept gflex. Signed-off-by: Vinson Lee v...@freedesktop.org Reviewed-by: Jonathan Gray j...@openbsd.org Future versions of OpenBSD will recognise the extension for the escape sequences but it is still worth avoiding. I'm sure there are other systems that don't do

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

2015-03-16 Thread Jonathan Gray
On Mon, Mar 16, 2015 at 08:37:28PM +, Emil Velikov wrote: On 26/02/15 13:49, Jose Fonseca wrote: On 26/02/15 13:42, Jose Fonseca wrote: On 26/02/15 03:55, Jonathan Gray wrote: On Wed, Feb 25, 2015 at 07:09:26PM -0800, Matt Turner wrote: On Wed, Feb 25, 2015 at 7:03 PM, Jonathan Gray j

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

2015-02-22 Thread Jonathan Gray
Signed-off-by: Jonathan Gray j...@jsg.id.au --- src/gallium/auxiliary/os/os_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/os/os_misc.c b/src/gallium/auxiliary/os/os_misc.c index ebf033c..c46078b 100644 --- a/src/gallium/auxiliary/os/os_misc.c

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 j...@jsg.id.au wrote: The length argument passed to sysctl was the size

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 j...@jsg.id.au wrote: If it isn't going to be configure checks could someone merge the original patch in this thread? I committed commit 3492e88090d2d0c0bfbc934963b8772b45fc8880

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 j...@jsg.id.au 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:03PM +, Emil Velikov wrote

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 j...@jsg.id.au 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 j...@jsg.id.au wrote: If it isn't going

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 j...@jsg.id.au wrote: OpenBSD has ffs in libc but does not have ffsll so use the compiler builtin

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 j...@jsg.id.au 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

[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 j...@jsg.id.au --- Makefile.am | 2 +- src/gallium/targets/dri/Makefile.am | 6 +++--- src/gallium/targets

[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 j...@jsg.id.au --- src/mesa/main/errors.h | 1 + 1

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 <j...@jsg.id.au> 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

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

2015-10-10 Thread Jonathan Gray
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. v2: use AC_CHECK_PROG Signed-off-by: Jonathan Gray <j...@jsg.id.au> CC: "10.6 11.0" <mesa-sta...@lists.freedesktop.org> --- config

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

2015-10-09 Thread Jonathan Gray
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. Signed-off-by: Jonathan Gray <j...@jsg.id.au> CC: "10.6 11.0" <mesa-sta...@lists.freedesktop.org> --- configure.ac | 3 +++ 1 file chan

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 j...@jsg.id.au wrote: On Fri, Aug 28, 2015 at 10:47:44AM +1000, Dave Airlie wrote: From: Dave Airlie airl...@redhat.com This code we broken by the tess merge, and I totally missed

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 airl...@redhat.com 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 mesa-sta...@lists.freedesktop.org Signed-off-by:

Re: [Mesa-dev] [PATCH 3/3] nir: rename nir_lower_samplers.c{pp,}

2015-09-19 Thread Jonathan Gray
On Fri, Sep 18, 2015 at 10:52:35AM -0700, Jason Ekstrand wrote: > On Sep 18, 2015 12:40 PM, "Emil Velikov" wrote: > > > > Thanks for the review/testing guys. > > > > Just noticed that some typos/strange wording > > > > On 17 September 2015 at 16:25, Emil Velikov

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: use pkg-config for libelf

2015-12-05 Thread Jonathan Gray
On Tue, Dec 01, 2015 at 04:56:54PM +, Emil Velikov wrote: > Hi Jonathan, > > On 23 November 2015 at 03:24, Jonathan Gray <j...@jsg.id.au> wrote: > > Use PKG_CHECK_MODULES to get the flags to link libelf. > > > > Signed-off-by: Jonathan Gray <j...@jsg.

[Mesa-dev] [PATCH] configure: check for python2.7 for PYTHON2

2015-12-05 Thread Jonathan Gray
Check for a 'python2.7' binary, 'python' and 'python2' are not provided by the OpenBSD python 2.7.x packages. Signed-off-by: Jonathan Gray <j...@jsg.id.au> Cc: "11.0 11.1" <mesa-sta...@lists.freedesktop.org> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 d

[Mesa-dev] [PATCH] configure.ac: fix test for SSE4.1 assembler support

2015-12-08 Thread Jonathan Gray
optimised out the configure test would incorrectly pass when the compiler supported the intrinsics and the assembler didn't support the instructions. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91806 Signed-off-by: Jonathan Gray <j...@jsg.id.au> Cc: "11.0 11.1" <mesa-sta...@li

[Mesa-dev] [PATCH v2] configure.ac: use pkg-config for libelf

2015-12-08 Thread Jonathan Gray
Use PKG_CHECK_MODULES to get the flags to link libelf v2: keep AC_CHECK_LIB as a fallback for elfutils provided libelf that doesn't install a pkg-config file. Signed-off-by: Jonathan Gray <j...@jsg.id.au> Reviewed-by: Michel D�nzer <michel.daen...@amd.com> Tested-by: Michel D�nzer

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: fix test for SSE4.1 assembler support

2015-12-09 Thread Jonathan Gray
On Wed, Dec 09, 2015 at 01:39:30PM +0200, Oded Gabbay wrote: > On Wed, Dec 9, 2015 at 1:09 PM, Emil Velikov <emil.l.veli...@gmail.com> wrote: > > On 9 December 2015 at 05:37, Jonathan Gray <j...@jsg.id.au> wrote: > >> Change the __m128i variables to be volatile so g

Re: [Mesa-dev] [Mesa-stable] [PATCH] configure.ac: fix test for SSE4.1 assembler support

2015-12-13 Thread Jonathan Gray
On Sat, Dec 12, 2015 at 06:41:56PM +, Emil Velikov wrote: > On 10 December 2015 at 08:42, Oded Gabbay <oded.gab...@gmail.com> wrote: > > On Wed, Dec 9, 2015 at 8:30 PM, Matt Turner <matts...@gmail.com> wrote: > >> On Tue, Dec 8, 2015 at 9:37 PM, Jonath

[Mesa-dev] [PATCH] loader: add a libdrm case for loader_get_device_name_for_fd

2015-12-20 Thread Jonathan Gray
Use dev_node_from_fd() with HAVE_LIBDRM to provide an implmentation of loader_get_device_name_for_fd() for non-linux systems that use libdrm but don't have udev or sysfs. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- src/loader/loader.c | 26 +- 1 file chang

[Mesa-dev] [PATCH] configure.ac: use pkg-config for libelf

2015-11-22 Thread Jonathan Gray
Use PKG_CHECK_MODULES to get the flags to link libelf. Signed-off-by: Jonathan Gray <j...@jsg.id.au> Cc: "11.0 11.1" <mesa-sta...@lists.freedesktop.org> --- configure.ac | 4 +--- src/gallium/drivers/radeon/Makefile.am | 2 +- src/gallium/targets/

Re: [Mesa-dev] [PATCH] configure.ac: use pkg-config for libelf

2015-11-22 Thread Jonathan Gray
On Mon, Nov 23, 2015 at 02:24:45PM +1100, Jonathan Gray wrote: > Use PKG_CHECK_MODULES to get the flags to link libelf. This should also include the part that uses cflags If there is any interest in it going in I'll post another diff with this included: diff --git a/src/gallium/drivers/rad

  1   2   3   >