[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 --- 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/glx/dri2_glx.c

[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 --- src/mesa/drivers/dri/common/megadriver_stub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[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 --- 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 > > --- > Hi Jonathan > > While the summary covers what the patch does, the *ahem* commit message > fails to explain why it'

[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 --- 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/nouveau

[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 --- 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/Makefile.am index

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 wrote: > > drm headers may be installed in a different directory > > I'm curious -- how can this happen? Looking at Makefile.am from >

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 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 wrote: > >> > drm headers m

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 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 wrote: > >> > On Thu, Mar 20,

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

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

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

[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 Reviewed-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 2 -- 1 file

[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 --- src/egl/drivers/dri2/platform_drm.c | 6 +- 1

[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 --- configure.ac | 21 - 1 file

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 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 f2u(float)???: > > tes

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 > > > --- > > > src/mesa/main/compiler.h | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletio

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 wrote: > > > On Sat, Dec 13, 2014 at 09:09:27PM +1100, Timothy Arceri wrote: > > >> On

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

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 > > > > > > The upcoming shader cache uses the SHA-1 algorithm for cryptographic > > > naming. The

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

2015-01-05 Thread Jonathan Gray
escape extension (fix for > OpenBSD) > AX_PROG_FLEX: Also accept gflex. > > Signed-off-by: Vinson Lee Reviewed-by: Jonathan Gray 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 tha

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2019-01-12 Thread Jonathan Gray
On Fri, Jan 11, 2019 at 02:11:28PM -0800, Matt Turner wrote: > From: Gert Wollny > > Since Meson will eventually be the only build system deprecate autotools > now. It can still be used by invoking configure with the flag > --enable-autotools > > NAKed-by: Ilia Mirkin > Acked-by: Eric Engestr

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2019-01-17 Thread Jonathan Gray
On Mon, Jan 14, 2019 at 03:46:35PM +0200, Eero Tamminen wrote: > Hi, > > On 13.1.2019 9.44, Jonathan Gray wrote: > ...> As we can not depend on python to build Mesa in OpenBSD I will have to > > go back to maintaining a local Mesa build system if autotools is removed. &g

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2019-01-17 Thread Jonathan Gray
On Thu, Jan 17, 2019 at 05:05:41PM -0500, Rob Clark wrote: > On Thu, Jan 17, 2019 at 3:56 PM Jonathan Gray wrote: > > > > On Mon, Jan 14, 2019 at 03:46:35PM +0200, Eero Tamminen wrote: > > > Hi, > > > > > > On 13.1.2019 9.44, Jonathan Gray wrote: > >

Re: [Mesa-dev] [PATCH] intel: Add more PCI Device IDs for Coffee Lake and Ice Lake.

2019-02-17 Thread Jonathan Gray
Compared to linux and libdrm Mesa is missing a VLV and ICL id. 0x0f30 ff049b6ce21d2814451afd4a116d001712e0116b drm/i915: bind driver to ValleyView chipsets 0x8A70 d55cb4fa2cf0105bfb16b60a2846737b91fdc173 drm/i915/icl: Add the ICL PCI IDs The Intel Media SDK describes these as /* VLV */

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 > wrote: > > > With the only C++ f

[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 CC: "10.6 11.0" --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/config

[Mesa-dev] [PATCH v2] 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. v2: use AC_CHECK_PROG Signed-off-by: Jonathan Gray CC: "10.6 11.0" --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --

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

2016-01-26 Thread Jonathan Gray
; last GPLv2 licensed version) however they now ship 4.9.3. > > I suspect they ship 4.9.3 in ports but 4.2.1 in the base system, and > they'll want to build Mesa with 4.2.1 because Mesa is part of the base > system. (Excuse the potentially incorrect terminology. I've n

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

2016-01-26 Thread Jonathan Gray
On Tue, Jan 26, 2016 at 07:51:06PM -0500, Ilia Mirkin wrote: > On Tue, Jan 26, 2016 at 7:35 PM, Jonathan Gray wrote: > > I would be interested to hear specifics as to what post gcc 4.2.1 > > extensions/changes people are interested in using. > > Lack of C++11 has been a b

[Mesa-dev] [PATCH] egl/x11: authenticate before doing chipset id ioctls

2016-04-18 Thread Jonathan Gray
For systems without udev or sysfs that use drm ioctls in the loader drm authentication must take place earlier or the loader will fail "MESA-LOADER: failed to get param for i915". Patch from Mark Kettenis. Cc: "11.2 11.1" Signed-off-by: Mark Kettenis Signed-off-by: Jonatha

[Mesa-dev] [PATCH] i965/tiled_memcpy: don't unconditionally use __builtin_bswap32

2016-04-18 Thread Jonathan Gray
Use the defines Mesa configure sets to indicate presence of the bswap32 builtins. This lets i965 work on OpenBSD again after the changes that were made in 0a5d8d9af42fd77fce1492d55f958da97816961a. Signed-off-by: Jonathan Gray --- src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 15

Re: [Mesa-dev] [PATCH] configure.ac: fix the --disable-llvm-shared-libs build

2016-04-18 Thread Jonathan Gray
This patch is still required for master. On Sun, Feb 28, 2016 at 02:47:03PM +1100, Jonathan Gray wrote: > When building with --disable-llvm-shared-libs use llvm-config --libfiles > instead of of --libs so the full path to the .a files is used instead of > -lname. > > Otherwise

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

2016-04-18 Thread Jonathan Gray
Any objections to this? On Mon, Dec 21, 2015 at 04:39:55PM +1100, Jonathan Gray wrote: > 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-o

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

2016-04-19 Thread Jonathan Gray
On Tue, Apr 19, 2016 at 07:00:18PM +0100, Emil Velikov wrote: > On 19 April 2016 at 04:03, Jonathan Gray wrote: > > Any objections to this? > > > Absolutely none. I simply missed it. > > > On Mon, Dec 21, 2015 at 04:39:55PM +1100, Jonathan Gray wrote: > >> Use

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

2016-04-20 Thread Jonathan Gray
On Wed, Apr 20, 2016 at 01:33:24PM +0100, Emil Velikov wrote: > On 20 April 2016 at 03:27, Jonathan Gray wrote: > > On Tue, Apr 19, 2016 at 07:00:18PM +0100, Emil Velikov wrote: > >> On 19 April 2016 at 04:03, Jonathan Gray wrote: > >> > Any objections to this?

Re: [Mesa-dev] [PATCH v2] i965: add build rule for brw_nir_trig_workarounds.c on Android

2016-04-21 Thread Jonathan Gray
On Tue, Apr 19, 2016 at 11:09:13PM +0100, Emil Velikov wrote: > On 19 April 2016 at 20:51, Rob Herring wrote: > > Commit bfd17c76c126 ("i965: Port INTEL_PRECISE_TRIG=1 to NIR.") added a > > generated file brw_nir_trig_workarounds.c which broke the Android build. > > Add the necessary makefiles to

Re: [Mesa-dev] [PATCH 01/13] i965: Add a dependency on libisl

2016-04-22 Thread Jonathan Gray
It is worth noting that the isl code extensively requires designated initialisers on anonymous structs. It isn't clear to me when gcc introduced support for this but it isn't in 4.2. Would you accept patches to remove them? ___ mesa-dev mailing list mes

[Mesa-dev] [PATCH 1/3] configure.ac: search for and set PYTHON3

2016-04-22 Thread Jonathan Gray
src/intel/genxml/gen_pack_header.py requires python3. Signed-off-by: Jonathan Gray --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 6b00cf9..9459489 100644 --- a/configure.ac +++ b/configure.ac @@ -99,6 +99,7 @@ AM_PROG_CC_C_O AM_PROG_AS

[Mesa-dev] [PATCH 2/3] genxml: use PYTHON3

2016-04-22 Thread Jonathan Gray
Allows the build to work when the python3 binary is not "python3". Signed-off-by: Jonathan Gray --- src/intel/genxml/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am index 77b2f19..be3ad41 10

[Mesa-dev] [PATCH 3/3] genxml: avoid using GNU make extensions

2016-04-22 Thread Jonathan Gray
Avoid using % in target, a GNU make extension. Allows this to build on OpenBSD. Signed-off-by: Jonathan Gray --- src/intel/genxml/Makefile.am | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/intel/genxml/Makefile.am b/src/intel/genxml/Makefile.am index

[Mesa-dev] [PATCH] isl: remove ffs function that conflicts with system headers

2016-04-22 Thread Jonathan Gray
Remove a wrapper around __builtin_ffs that conflicts with system headers on OpenBSD and perhaps elsewhere: isl_priv.h:44: error: conflicting types for 'ffs' Signed-off-by: Jonathan Gray --- src/intel/isl/isl_priv.h | 5 - 1 file changed, 5 deletions(-) diff --git a/src

Re: [Mesa-dev] [PATCH 01/13] i965: Add a dependency on libisl

2016-04-22 Thread Jonathan Gray
On Fri, Apr 22, 2016 at 05:31:29PM +0100, Emil Velikov wrote: > On 22 April 2016 at 16:08, Jonathan Gray wrote: > > It is worth noting that the isl code extensively requires designated > > initialisers on anonymous structs. It isn't clear to me when gcc introduced > &g

Re: [Mesa-dev] [PATCH 01/13] i965: Add a dependency on libisl

2016-04-22 Thread Jonathan Gray
On Fri, Apr 22, 2016 at 10:50:33AM -0700, Jason Ekstrand wrote: > On Fri, Apr 22, 2016 at 10:15 AM, Jonathan Gray wrote: > > > On Fri, Apr 22, 2016 at 05:31:29PM +0100, Emil Velikov wrote: > > > On 22 April 2016 at 16:08, Jonathan Gray wrote: > > > > It

Re: [Mesa-dev] [PATCH 1/3] configure.ac: search for and set PYTHON3

2016-04-22 Thread Jonathan Gray
On Fri, Apr 22, 2016 at 11:09:52AM -0700, Kenneth Graunke wrote: > On Saturday, April 23, 2016 1:21:38 AM PDT Jonathan Gray wrote: > > src/intel/genxml/gen_pack_header.py requires python3. > > > > Signed-off-by: Jonathan Gray > > --- > > configure.ac | 2 ++

[Mesa-dev] [PATCH v2] isl: remove ffs function that conflicts with system headers

2016-04-23 Thread Jonathan Gray
Remove a wrapper around __builtin_ffs that conflicts with system headers on OpenBSD and perhaps elsewhere: isl_priv.h:44: error: conflicting types for 'ffs' v2: include strings.h to ensure prototype is found Signed-off-by: Jonathan Gray --- src/intel/isl/isl_priv.h | 6 +- 1 fi

[Mesa-dev] [PATCH v2] configure.ac: search for and set PYTHON3

2016-04-23 Thread Jonathan Gray
src/intel/genxml/gen_pack_header.py requires python3. v2: check for python3.5 as well Signed-off-by: Jonathan Gray Reviewed-by: Emil Velikov Reviewed-by: Kenneth Graunke --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 6b00cf9..2474078

[Mesa-dev] [PATCH v2] genxml: use PYTHON3

2016-04-23 Thread Jonathan Gray
Allows the build to work when the python3 binary is not "python3". v2: remove x bit from the script at Emil's suggestion Signed-off-by: Jonathan Gray Reviewed-by: Emil Velikov --- src/intel/genxml/Makefile.am| 4 +++- src/intel/genxml/gen_pack_header.py | 0 2 f

Re: [Mesa-dev] [PATCH v2] configure.ac: search for and set PYTHON3

2016-04-23 Thread Jonathan Gray
On Sat, Apr 23, 2016 at 01:09:43AM -0700, Kenneth Graunke wrote: > On Saturday, April 23, 2016 5:39:02 PM PDT Jonathan Gray wrote: > > src/intel/genxml/gen_pack_header.py requires python3. > > > > v2: check for python3.5 as well > > > > Signed-off-by: Jonathan Gr

Re: [Mesa-dev] [PATCH 00/25] Vulkan (build et al.) fixes

2016-04-24 Thread Jonathan Gray
On Thu, Apr 21, 2016 at 02:16:00PM +0100, Emil Velikov wrote: > Hi all, > > While tryting to get a tarball and things went a bit strange, thus I've > 'tweaked' the vulkan makefile and simplified things a fair bit. > > The series can be found in branch for-upstream/vulkan-makefile-cleanups > in

Re: [Mesa-dev] [PATCH v2] isl: remove ffs function that conflicts with system headers

2016-04-25 Thread Jonathan Gray
On Mon, Apr 25, 2016 at 03:14:57PM +0100, Emil Velikov wrote: > On 23 April 2016 at 15:36, Jason Ekstrand wrote: > > Reviewed-by: Jason Ekstrand > > > And pushed. Thanks Jason. > > > In general, we should be using mesa compat headers for this sort of thing > > rather than hand-rolling it. > > >

Re: [Mesa-dev] [PATCH v2] isl: remove ffs function that conflicts with system headers

2016-04-25 Thread Jonathan Gray
On Mon, Apr 25, 2016 at 04:36:44PM +0100, Emil Velikov wrote: > On 25 April 2016 at 16:07, Jonathan Gray wrote: > > On Mon, Apr 25, 2016 at 03:14:57PM +0100, Emil Velikov wrote: > >> On 23 April 2016 at 15:36, Jason Ekstrand wrote: > >> > Reviewed-by: Jason Ek

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

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

2014-09-26 Thread Jonathan Gray
rg Reviewed-by: Jonathan Gray > --- > 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

[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] 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: > >

Re: [Mesa-dev] [PATCH] mesa: Fix test for big-endian architecture in compiler.h

2016-02-15 Thread Jonathan Gray
On Fri, Feb 12, 2016 at 10:01:21AM +0100, Jochen Rollwagen wrote: > Hi, > > i think i found & fixed a bug in mesa concerning tests for big-endian > machines. The defines tested don't exist or are wrongly defined so the test > (probably) never fires. The gcc defines on my machine concerning big-end

Re: [Mesa-dev] [PATCH] mesa: Fix test for big-endian architecture in compiler.h

2016-02-16 Thread Jonathan Gray
On Tue, Feb 16, 2016 at 10:37:47AM +0200, Oded Gabbay wrote: > On Tue, Feb 16, 2016 at 9:23 AM, Jonathan Gray wrote: > > On Fri, Feb 12, 2016 at 10:01:21AM +0100, Jochen Rollwagen wrote: > >> Hi, > >> > >> i think i found & fixed a bug in mesa concerning

Re: [Mesa-dev] [PATCH] mesa: Fix test for big-endian architecture in compiler.h

2016-02-16 Thread Jonathan Gray
On Tue, Feb 16, 2016 at 08:13:45PM +1100, Jonathan Gray wrote: > On Tue, Feb 16, 2016 at 10:37:47AM +0200, Oded Gabbay wrote: > > On Tue, Feb 16, 2016 at 9:23 AM, Jonathan Gray wrote: > > > On Fri, Feb 12, 2016 at 10:01:21AM +0100, Jochen Rollwagen wrote: > > >> Hi,

Re: [Mesa-dev] [PATCH 1/2] gallium/os: Add CPU time functions

2016-02-18 Thread Jonathan Gray
On Fri, Feb 19, 2016 at 12:59:18AM +0100, Bas Nieuwenhuizen wrote: > Adds functions to query the elapsed CPU time of the current process > or thread. Implements Linux support only. > > To be used by the gallium HUD. Wouldn't this be better gated by a configure test? clock_gettime(2) is documente

[Mesa-dev] [PATCH] configure.ac: fix the --disable-llvm-shared-libs build

2016-02-27 Thread Jonathan Gray
;11.2 11.1" Signed-off-by: Jonathan Gray --- configure.ac | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6f970d7..3e2923f 100644 --- a/configure.ac +++ b/configure.ac @@ -2304,13 +2304,14 @@ if test "x$MESA_LLVM"

[Mesa-dev] [PATCH] automake: fix some occurrences of hardcoded -ldl and -lpthread

2015-11-22 Thread Jonathan Gray
Correct some occurrences of -ldl and -lpthread to use $(DLOPEN_LIBS) and $(PTHREAD_LIBS) respectively. Signed-off-by: Jonathan Gray Cc: "11.0 11.1" --- src/gallium/targets/opencl/Makefile.am | 2 +- src/mesa/drivers/dri/i965/Makefile.am | 3 ++- 2 files changed, 3 insertions(+), 2

[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 Cc: "11.0 11.1" --- configure.ac | 4 +--- src/gallium/drivers/radeon/Makefile.am | 2 +- src/gallium/targets/opencl/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 5

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/driver

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

2015-11-23 Thread Jonathan Gray
On Mon, Nov 23, 2015 at 07:52:44AM -0600, Jan Vesely wrote: > On Mon, 2015-11-23 at 14:24 +1100, Jonathan Gray wrote: > > Use PKG_CHECK_MODULES to get the flags to link libelf. > > This has been discussed before, and it does not work with elfutils: > http://lists.freedesktop.org

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 wrote: > > Use PKG_CHECK_MODULES to get the flags to link libelf. > > > > Signed-off-by: Jonathan Gray > > Cc: "

[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 Cc: "11.0 11.1" --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.

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

2015-12-08 Thread Jonathan Gray
s got 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 Cc: "11.0 11.1" --- configure.ac | 2 +

[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 Reviewed-by: Michel D�nzer Tested-by: Michel D�nzer Cc: "11.0 11.1" --

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 wrote: > > On 9 December 2015 at 05:37, Jonathan Gray wrote: > >> Change the __m128i variables to be volatile so gcc 4.9 won't optimise > >> all of th

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 wrote: > > On Wed, Dec 9, 2015 at 8:30 PM, Matt Turner wrote: > >> On Tue, Dec 8, 2015 at 9:37 PM, Jonathan Gray wrote: > >>> Change the __m128i variables t

[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 --- src/loader/loader.c | 26 +- 1 file changed, 25 insertions(

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 li

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

2014-08-30 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- 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/tests

[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 --- configure.ac | 18 ++ src/gallium/targets/dri/Makefile.am | 6 +- src/gallium/targets/vdpau/Makefile.am | 6 +- 3 files changed, 28 insertions

[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" Signed-off-by: Jonathan Gray --- config

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

2014-09-05 Thread Jonathan Gray
Signed-off-by: Jonathan Gray --- 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 \> (marks the end of the word) ec

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

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. > > > > _

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

2014-09-09 Thread Jonathan Gray
build on OpenBSD again. Signed-off-by: Jonathan Gray --- 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$enable_gallium_llvm&qu

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.

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: > > &g

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Jonathan Gray
On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: > On 6 June 2017 at 07:30, Chih-Wei Huang wrote: > > 2017-06-06 13:06 GMT+08:00 Chih-Wei Huang : > >> 2017-06-05 21:04 GMT+08:00 Emil Velikov : > >>> On 4 June 2017 at 04:31, Chih-Wei Huang wrote: > Android bionic is derived from

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Jonathan Gray
On Wed, Jun 07, 2017 at 10:30:49PM +0800, Chih-Wei Huang wrote: > 2017-06-07 21:54 GMT+08:00 Jonathan Gray : > > On Wed, Jun 07, 2017 at 02:45:15PM +0100, Emil Velikov wrote: > >> On 6 June 2017 at 07:30, Chih-Wei Huang wrote: > >> >>> These are are

Re: [Mesa-dev] [PATCH] Android: define PIPE_OS_BSD

2017-06-07 Thread Jonathan Gray
On Wed, Jun 07, 2017 at 11:18:53PM +0800, Chih-Wei Huang wrote: > 2017-06-07 22:47 GMT+08:00 Jonathan Gray : > > On Wed, Jun 07, 2017 at 10:30:49PM +0800, Chih-Wei Huang wrote: > >> 2017-06-07 21:54 GMT+08:00 Jonathan Gray : > >> > On Wed, Jun 07, 2017 at 02:45:

Re: [Mesa-dev] Fix __atomic* builtins detection for Clang

2017-05-12 Thread Jonathan Gray
On Sat, May 13, 2017 at 02:22:30AM +0200, Jan Beich wrote: > "int" isn't large enough and lack of builtins only manifests at link time. > This was breaking build on FreeBSD 11.0 i386 with Clang 3.8.0. You should be building with -march=i586 on i386 for CX8. The diff is wrong as it will break othe

Re: [Mesa-dev] Fix __atomic* builtins detection for Clang

2017-05-13 Thread Jonathan Gray
On Sat, May 13, 2017 at 09:01:49AM +0200, Jan Beich wrote: > Jonathan Gray writes: > > > On Sat, May 13, 2017 at 02:22:30AM +0200, Jan Beich wrote: > > > >> "int" isn't large enough and lack of builtins only manifests at link time. > >> This

Re: [Mesa-dev] [PATCH] util: import sha1 implementation from OpenBSD

2017-01-13 Thread Jonathan Gray
desktop.org/show_bug.cgi?id=94904 > Bugzilla [2]: https://bugs.freedesktop.org/show_bug.cgi?id=97967 > Cc: Mark Janes > Cc: Vinson Lee > Cc: Tapani P??lli > Cc: Jonathan Gray > Signed-off-by: Emil Velikov > --- > configure.ac | 161 +

Re: [Mesa-dev] [PATCH] util/u_atomic: provide 64bit atomics where they're missing

2017-03-29 Thread Jonathan Gray
On Wed, Mar 29, 2017 at 04:55:54PM -0700, Matt Turner wrote: > On Wed, Mar 29, 2017 at 4:13 PM, Grazvydas Ignotas wrote: > > There are still some distributions trying to support unfortunate people > > with old or exotic CPUs that don't have 64bit atomic operations. When > > compiling for such a ma

Re: [Mesa-dev] [PATCH v2] intel: genxml: fix out of tree builds

2017-03-31 Thread Jonathan Gray
On Fri, Mar 31, 2017 at 04:53:21PM +0100, Emil Velikov wrote: > On 31 March 2017 at 16:33, Lionel Landwerlin > wrote: > > On 31/03/17 16:21, Emil Velikov wrote: > >> > >> On 31 March 2017 at 14:40, Lionel Landwerlin > >> wrote: > >>> > >>> v2: use Emil's recommendation > >>> change rule to c

[Mesa-dev] [PATCH] configure.ac: pthread-stubs not present on OpenBSD

2018-02-19 Thread Jonathan Gray
pthread-stubs is no longer required on OpenBSD and has been removed. libpthread parts involved moved to libc. Signed-off-by: Jonathan Gray Cc: 17.3 18.0 --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 89c5e74127

Re: [Mesa-dev] [PATCH 02/14] vc4, vc5: add ETIME fallback define

2018-02-28 Thread Jonathan Gray
On Fri, Jan 19, 2018 at 12:51:30AM +0300, Greg V wrote: > On 01/18/2018 22:49, Dylan Baker wrote: > > Quoting Emil Velikov (2018-01-18 10:40:40) > > > On 18 January 2018 at 17:13, Dylan Baker wrote: > > > > I'm not sure how Emil feels about this (and the related patches) but I > > > > think it >

[Mesa-dev] [PATCH] util: use clock_gettime() on PIPE_OS_BSD

2018-02-28 Thread Jonathan Gray
OpenBSD, FreeBSD, NetBSD and DragonFlyBSD all have clock_gettime() so use it when PIPE_OS_BSD is defined. Signed-off-by: Jonathan Gray --- src/util/os_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/os_time.c b/src/util/os_time.c index 72dc7e49c0..ac488b2287

[Mesa-dev] [PATCH] gallium/util: use sockets on PIPE_OS_UNIX in u_network

2018-02-28 Thread Jonathan Gray
Instead of listing all the UNIX PIPE_OS platforms just use PIPE_OS_UNIX. Makes BSD sockets available on PIPE_OS_BSD. Signed-off-by: Jonathan Gray --- src/gallium/auxiliary/util/u_network.c | 9 +++-- src/gallium/auxiliary/util/u_network.h | 5 + 2 files changed, 4 insertions(+), 10

Re: [Mesa-dev] [PATCH] util: use clock_gettime() on PIPE_OS_BSD

2018-03-01 Thread Jonathan Gray
On Wed, Feb 28, 2018 at 08:22:57AM -0700, Brian Paul wrote: > On 02/28/2018 03:19 AM, Jonathan Gray wrote: > > OpenBSD, FreeBSD, NetBSD and DragonFlyBSD all have clock_gettime() > > so use it when PIPE_OS_BSD is defined. > > > > Signed-off-by: Jonathan Gray > >

[Mesa-dev] [PATCH] i965: remove uneeded asm/unistd.h include

2017-03-15 Thread Jonathan Gray
Fix the build on OpenBSD by removing an uneeded include for asm/unistd.h. Signed-off-by: Jonathan Gray --- src/mesa/drivers/dri/i965/brw_performance_query.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965

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

2017-03-15 Thread Jonathan Gray
% pattern rules are a GNU extension. As there is only one file here avoid patterns and globbing entirely to fix the build on non-GNU make. Signed-off-by: Jonathan Gray --- src/mesa/drivers/dri/i965/Makefile.am | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-16 Thread Jonathan Gray
On Thu, Mar 16, 2017 at 09:12:38PM -0700, Dylan Baker wrote: > quoting jason ekstrand (2017-03-16 19:03:15) > > on march 16, 2017 5:41:24 pm emil velikov wrote: > > > and meson is not a thing on neither bsd(s), solaris (and derivatives) nor > > > android :-\ > > > > i have trouble bringing mysel

[Mesa-dev] [PATCH] glapi: avoid using $< in non-suffix make rules

2017-03-16 Thread Jonathan Gray
Using $< in non-suffix make rules is a GNU extension. Explicitly use the name of the python script to fix the build on OpenBSD. Signed-off-by: Jonathan Gray --- src/mapi/glapi/gen/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapi/glapi/gen/Makefile

Re: [Mesa-dev] [PATCH] configure.ac: Use POSIX word boundary regex.

2017-03-17 Thread Jonathan Gray
On Fri, Mar 17, 2017 at 03:45:08PM +0900, Michel D??nzer wrote: > On 17/03/17 07:42 AM, Vinson Lee wrote: > > Fixes: fe56c745b8cb ("Convert sed(1) syntax to be compatible with FreeBSD > > and OpenBSD") > > Not sure how, since \> was already used (way) before that. Indeed FreeBSD and OpenBSD libc

<    1   2   3   >