[Mesa-dev] [PATCH 2/2] haiku/winsys: fix dt prototype args

2017-02-22 Thread Alexander von Gluck IV
From: Jerome Duval --- src/gallium/winsys/sw/hgl/hgl_sw_winsys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.c b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.c index 89dd547..f7bc907 100644 --- a/src/gallium/winsys/sw/hgl/hgl_sw_winsy

[Mesa-dev] [PATCH 1/2] haiku: build fixes around debug defines

2017-02-22 Thread Alexander von Gluck IV
From: Jerome Duval --- src/gallium/auxiliary/util/u_debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index 7da7f53..63940b7 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gall

[Mesa-dev] [PATCH 1/2] egl/dri2: Fix include path of u_atomic.h introduced e7e29189

2015-08-07 Thread Alexander von Gluck IV
This was causing a failure to build on SCons due to a missing -Isrc/egl. Instead of adding in that path, lets just -Isrc/ and include "utils/u_atomic.h". --- src/egl/Makefile.am | 1 + src/egl/SConscript | 1 + src/egl/drivers/dri2/egl_dri2.c | 2 +- 3 files changed, 3 ins

[Mesa-dev] [PATCH 2/2] egl/scons: Fix every platform getting dri and haiku added e7e29189

2015-08-07 Thread Alexander von Gluck IV
--- src/egl/SConscript | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/egl/SConscript b/src/egl/SConscript index 1b2a427..00761e8 100644 --- a/src/egl/SConscript +++ b/src/egl/SConscript @@ -15,14 +15,17 @@ env.Append(CPPPATH = [ # parse Makefile.sourc

Re: [Mesa-dev] [PATCH 2/2] egl/scons: Fix every platform getting dri and haiku added e7e29189

2015-08-07 Thread Alexander von Gluck IV
On 2015-08-07 14:49, Emil Velikov wrote: Ouch seems like a git rebase slip, as I was nuking the final dri scons target around the same time. On 07/08/15 19:19, Alexander von Gluck IV wrote:> --- src/egl/SConscript | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) d

[Mesa-dev] [PATCH] egl/SCons: Fix Haiku build. Haiku is the only OS EGL builds on with SCons

2015-08-18 Thread Alexander von Gluck IV
--- src/egl/SConscript |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/egl/SConscript b/src/egl/SConscript index 1b2a427..b05da84 100644 --- a/src/egl/SConscript +++ b/src/egl/SConscript @@ -1,6 +1,7 @@

Re: [Mesa-dev] Mesa 11.0.0 release candidate 2

2015-08-31 Thread Alexander von Gluck IV
Good afternoon, One more cherry pick for 11.0: 5abbd1caccf4653ac1a8760de68d8ed101c814d8 egl: scons: fix the haiku build, do not build the dri2 backend Fixes the scons build after support for scons building egl + dri2 was dropped. -- Alex On 2015-08-31 10:05, Emil Velikov wrote: The second

Re: [Mesa-dev] [PATCH 2/4] glapi/hgl: remove the final user of _glapi_check_table()

2016-09-02 Thread Alexander von Gluck IV
August 30 2016 8:53 AM, "Emil Velikov" wrote: > On 25 August 2016 at 16:58, Emil Velikov wrote: > >> From: Emil Velikov >> >> The symbol is a no-op since, the EXTRA_DEBUG macro is not set in the >> build. Unused by !Haiku people/platforms since 2010 (commit >> a73c6540d9a7f6e26d8568ba2fc522cb

[Mesa-dev] [PATCH] gallium/util: Fix debug_printf under Haiku

2016-07-16 Thread Alexander von Gluck IV
--- src/gallium/auxiliary/util/u_debug.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index 7da7f53..7dc4ce8 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary/util/u_

Re: [Mesa-dev] [PATCH] gallium/util: Fix debug_printf under Haiku

2016-07-18 Thread Alexander von Gluck IV
July 18 2016 3:29 AM, "Nicolai Hähnle" wrote: > A comment further up in the same file says > > /* Haiku provides debug_printf in libroot with OS.h */ > > Is that no longer true? > > Nicolai > > On 16.07.2016 16:27, Alexander von Gluck IV wrote: &g

Re: [Mesa-dev] [PATCH] gallium/util: Fix debug_printf under Haiku

2016-07-18 Thread Alexander von Gluck IV
July 18 2016 9:20 AM, "Emil Velikov" wrote: > On 18 July 2016 at 14:39, Alexander von Gluck IV > wrote: > >> July 18 2016 3:29 AM, "Nicolai Hähnle" wrote: >>> A comment further up in the same file says >>> >>> /* Haiku provides d

Re: [Mesa-dev] [PATCH] gallium/util: Fix debug_printf under Haiku

2016-07-18 Thread Alexander von Gluck IV
July 18 2016 1:10 PM, "Emil Velikov" wrote: > On 18 July 2016 at 16:28, Alexander von Gluck IV > wrote: > >> July 18 2016 9:20 AM, "Emil Velikov" wrote: >>> On 18 July 2016 at 14:39, Alexander von Gluck IV >>> wrote: >>> >&

[Mesa-dev] [PATCH 1/6] haiku: Build Haiku's libGL from within Mesa

2013-10-04 Thread Alexander von Gluck IV
ors: + * Brian Paul + * Philippe Houdoin + * Alexander von Gluck IV + */ + + +extern "C" { +#include "glapi/glapi.h" +#include "glapi/glapi_priv.h" + +/* + * NOTE: this file portion implements C-based dispatch of the OpenGL entrypoints + * (glAccum,

[Mesa-dev] [PATCH 3/6] haiku: Correct Haiku softpipe library

2013-10-04 Thread Alexander von Gluck IV
* Use LoadableModule vs SharedLibrary --- src/gallium/targets/haiku-softpipe/SConscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SConscript index 0a99976..6e12dc4 100644 --- a/src/gallium

[Mesa-dev] [PATCH 5/6] haiku: Clean up code, use target-helpers

2013-10-04 Thread Alexander von Gluck IV
* Thanks for the help xexaxo! --- src/gallium/targets/haiku-softpipe/GalliumContext.cpp | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumContext.cpp b/src/gallium/targets/haiku-softpipe/GalliumContext.cpp index 1c08fb1

[Mesa-dev] [PATCH 4/6] haiku: Drop haiku-softpipe.c; fix extern C

2013-10-04 Thread Alexander von Gluck IV
c b/src/gallium/targets/haiku-softpipe/haiku-softpipe.c deleted file mode 100644 index d0a427b..000 --- a/src/gallium/targets/haiku-softpipe/haiku-softpipe.c +++ /dev/null @@ -1,65 +0,0 @@ -/** - * - * Copyright 2013 Alexander von Gluck IV - * - * Permission is hereby granted, free of charge, to any person obtain

[Mesa-dev] [PATCH 6/6] haiku: Ensure correct libraries are referenced.

2013-10-04 Thread Alexander von Gluck IV
--- scons/gallium.py | 2 ++ src/gallium/targets/haiku-softpipe/SConscript | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scons/gallium.py b/scons/gallium.py index 2e341e9..5b20f3f 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -506,6 +50

[Mesa-dev] [PATCH 2/6] haiku: Add first Haiku renderer (softpipe)

2013-10-04 Thread Alexander von Gluck IV
0,0 +1,528 @@ +/* + * Copyright 2012, Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Artur Wyszynski, harak...@gmail.com + * Alexander von Gluck IV, kallis...@unixzen.com + */ + + +#include "GalliumContext

Re: [Mesa-dev] [PATCH 1/6] haiku: Build Haiku's libGL from within Mesa

2013-10-04 Thread Alexander von Gluck IV
On Fri, 04 Oct 2013 13:31:11 -0600 Brian Paul wrote: > The series look OK to me. Do you want to add/update any docs/ files? > > Reviewed-by: Brian Paul > > Do you need me to push this for you? > Nah, I can push it. I'll see if I can add anything meaningful to the docs. Thanks! -- Alex

[Mesa-dev] [PATCH 1/2] haiku: Remove common directory search path

2013-10-09 Thread Alexander von Gluck IV
* /boot/common no longer exists in Haiku as of a few days ago (and this is undefined) --- src/gallium/targets/libgl-haiku/GLRendererRoster.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/targets/libgl-haiku/GLRendererRoster.cpp b/src/gallium/targets/libgl-haiku/GLRendererRo

[Mesa-dev] [PATCH 2/2] haiku: Fix llvmpipe and clean up tracing

2013-10-09 Thread Alexander von Gluck IV
* Fix LLVM library and defines * Only enable tracing when scons build=debug --- src/gallium/targets/haiku-softpipe/GalliumContext.cpp | 3 +-- src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp | 3 +-- src/gallium/targets/haiku-softpipe/SConscript | 5 +++-- src/gallium/tar

[Mesa-dev] RFC: LLVM, -fno-rtti, and Haiku

2013-10-10 Thread Alexander von Gluck IV
In llvm.py -fno-rtti is always a build flag if LLVM present >= 3.2 This breaks everything on our end (missing rtti related symbols) in our C++ libGL.so as Haiku uses dynamic casts. We build our LLVM packages with rtti (REQUIRES_RTTI=1). Not 100% sure why we're forcing no-rtti if LLVM >= 3.2. "l

Re: [Mesa-dev] RFC: LLVM, -fno-rtti, and Haiku

2013-10-11 Thread Alexander von Gluck IV
On Fri, 11 Oct 2013 09:50:08 -0700 Francisco Jerez wrote: > Kenneth Graunke writes: > > > On 10/10/2013 04:27 PM, Alexander von Gluck IV wrote: > >> > >> In llvm.py -fno-rtti is always a build flag if LLVM present >= 3.2 > >> > >> This

[Mesa-dev] [PATCH] build: remove forced -fno-rtti

2013-10-13 Thread Alexander von Gluck IV
* As discussed on the mailing list, forced no-rtti breaks C++ public API's such as the Haiku C++ libGL.so * -fno-rtti *can* be still set however instead of blindly forcing -fno-rtti, we can rely on the llvm-config --cppflags output. If the system llvm is built without rtti (default),

Re: [Mesa-dev] [PATCH] build: remove forced -fno-rtti

2013-10-15 Thread Alexander von Gluck IV
On Tue, 15 Oct 2013 17:04:26 +0200 Johannes Obermayr wrote: > Am Montag, 14. Oktober 2013, 16:57:20 schrieb Francisco Jerez: > > Alexander von Gluck IV writes: > > > > > * As discussed on the mailing list, > > > forced no-rtti breaks C++ public > > &

[Mesa-dev] [PATCH] scons: Fix build when rtti is disabled

2013-10-15 Thread Alexander von Gluck IV
* The rtti fix actually dug up a bug in the scons build scripts. * Autotools took the LLVM cpp and cxx flags, while scons only took the cpp flags. * This grabs the cxx flags and applies them where needed. * I'm going to run over this and clean things up further, however this fixes the build whe

Re: [Mesa-dev] [PATCH] build: remove forced -fno-rtti

2013-10-15 Thread Alexander von Gluck IV
On Tue, 15 Oct 2013 17:04:26 +0200 Johannes Obermayr wrote: > Am Montag, 14. Oktober 2013, 16:57:20 schrieb Francisco Jerez: > > Alexander von Gluck IV writes: > > > > > * As discussed on the mailing list, > > > forced no-rtti breaks C++ public > > &

Re: [Mesa-dev] [PATCH] build: remove forced -fno-rtti

2013-10-15 Thread Alexander von Gluck IV
On Tue, 15 Oct 2013 19:51:19 +0200 Johannes Obermayr wrote: > Am Dienstag, 15. Oktober 2013, 12:19:40 schrieben Sie: > > On Tue, 15 Oct 2013 17:04:26 +0200 > > Johannes Obermayr wrote: > > > Am Montag, 14. Oktober 2013, 16:57:20 schrieb Francisco Jerez: > > >

[Mesa-dev] [PATCH] scons: Simplified fix of llvm cxxflags

2013-10-16 Thread Alexander von Gluck IV
* Based on ideas of Jose Fonseca * A rework of ce8eadb6e8 --- scons/llvm.py | 5 + 1 file changed, 5 insertions(+) diff --git a/scons/llvm.py b/scons/llvm.py index c1c3736..8388d8e 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -190,6 +190,11 @@ def generate(env): pass

Re: [Mesa-dev] [PATCH] build: remove forced -fno-rtti

2013-10-17 Thread Alexander von Gluck IV
On Thu, 17 Oct 2013 18:11:07 +0200 Johannes Obermayr wrote: > > Simply make llvm devs to push this fix to all branches (again my words: "Sth. > like [...]): Yeah, I can't make anyone do anything... you have to ask them nicely. > diff --git a/tools/llvm-config/CMakeLists.txt > b/tools/llvm-con

[Mesa-dev] [PATCH] scons: Fix Haiku missing library

2013-10-20 Thread Alexander von Gluck IV
* The softpipe add-on needs libtranslation due to the use of BTranslatorRoster --- scons/gallium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scons/gallium.py b/scons/gallium.py index 5b20f3f..be3c3e7 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -507,7 +507,7

[Mesa-dev] [PATCH 2/2] haiku-softpipe: Minor cleanup and color space fixes

2013-10-28 Thread Alexander von Gluck IV
* Use more consistant data sources * Fix improper color space assignments * Remove unnecessary comments and code * Drop unnecessary round_up function (this was leftover from moving winsys code out of renderer) --- .../targets/haiku-softpipe/GalliumContext.cpp | 27 ..

[Mesa-dev] [PATCH 1/2] winsys: Correct Haiku winsys display target code

2013-10-28 Thread Alexander von Gluck IV
* Instead of assuming the displaytarget is the same stride / colorspace as the destination, lets actually check the source bitmap. * Fixes random stride issues in rendering --- src/gallium/winsys/sw/hgl/bitmap_wrapper.cpp | 20 src/gallium/winsys/sw/hgl/bitmap_wrapper.h

[Mesa-dev] [PATCH] target/haiku-softpipe: Fix viewport issues

2013-11-04 Thread Alexander von Gluck IV
* Call mesa viewport call on winndow resize * Add initial postprocessing code * Pass hgl_context to private statetracker as it is more useful than GalliumContext * Use Lock and Unlock functions to standardize GalliumContext locking * Create texture resources in texture validation --- .../targe

Re: [Mesa-dev] [PATCH] target/haiku-softpipe: Fix viewport issues

2013-11-04 Thread Alexander von Gluck IV
On Mon, Nov 4, 2013 at 1:05 PM, Alexander von Gluck IV wrote: * Call mesa viewport call on winndow resize * Add initial postprocessing code * Pass hgl_context to private statetracker as it is more useful than GalliumContext * Use Lock and Unlock functions to standardize GalliumContext

Re: [Mesa-dev] [PATCH 3/5] mesa: remove __QUICKDRAW__ tests

2013-11-04 Thread Alexander von Gluck IV
On Mon, Nov 4, 2013 at 6:48 PM, Brian Paul wrote: --- include/GL/gl.h |2 +- include/GL/osmesa.h |5 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/GL/gl.h b/include/GL/gl.h index 0efa6ef..31a2813 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -69

[Mesa-dev] [PATCH] mesa: Remove last BEOS checks

2013-11-04 Thread Alexander von Gluck IV
* Goodbye BeOS, we hardly knew thee * As BeOS was gcc2 only, there was little chance of this being useful. * Doesn't effect Haiku in any meaningful way --- include/GL/gl.h |8 scons/gallium.py |2 -- 2 files changed, 10 deletions(-) diff --git a/include/GL/gl.h b/include/GL/gl

[Mesa-dev] [RFC] Haiku viewport / framebuffer invalidation

2013-11-11 Thread Alexander von Gluck IV
I've been banging my head against a wall for a while now on this. So the Haiku applications that call glViewport(.. for window resizes,etc never actually execute the Driver's Viewport call. (aka ctx->Driver.Viewport: http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/targets/haiku-softpipe/Gal

Re: [Mesa-dev] [PATCH] mesa/swrast: fix inverted front buffer rendering with old-school swrast

2013-11-12 Thread Alexander von Gluck IV
On Tue, Nov 12, 2013 at 8:56 PM, Dave Airlie wrote: From: Dave Airlie I've no idea when this broke, but we have some people who wanted it fixed, so here's my attempt. A quick side note, we saw the same issue in Haiku ~Mesa 9.1.1.  (Suddenly the swrast render was inverted vertically) We s

[Mesa-dev] [PATCH] mesa: Add haiku swrast driver

2013-11-12 Thread Alexander von Gluck IV
* This is pretty small and upkeep should be minimal. * Currently fully working. --- src/mesa/drivers/SConscript |3 + src/mesa/drivers/haiku/swrast/SConscript| 28 + src/mesa/drivers/haiku/swrast/SoftwareRast.cpp | 707 +++ src/mesa/drivers

Re: [Mesa-dev] [PATCH] mesa: Add haiku swrast driver

2013-11-12 Thread Alexander von Gluck IV
On Tue, Nov 12, 2013 at 11:46 PM, Alexander von Gluck IV wrote: * This is pretty small and upkeep should be minimal. * Currently fully working. --- src/mesa/drivers/SConscript |3 + src/mesa/drivers/haiku/swrast/SConscript| 28 + src/mesa/drivers/haiku

Re: [Mesa-dev] [PATCH] mesa: Add haiku swrast driver

2013-11-13 Thread Alexander von Gluck IV
On Wed, 13 Nov 2013 08:38:59 -0700 Brian Paul wrote: > On 11/12/2013 10:49 PM, Alexander von Gluck IV wrote: > > On Tue, Nov 12, 2013 at 11:46 PM, Alexander von Gluck IV > > wrote: > >> * This is pretty small and upkeep > >> should be minimal. > > Ca

Re: [Mesa-dev] [PATCH] mesa: Add haiku swrast driver

2013-11-13 Thread Alexander von Gluck IV
On Wed, 13 Nov 2013 11:33:44 -0800 Kenneth Graunke wrote: > On 11/13/2013 08:47 AM, Alexander von Gluck IV wrote: > > On Wed, 13 Nov 2013 08:38:59 -0700 > > Brian Paul wrote: > > > >> On 11/12/2013 10:49 PM, Alexander von Gluck IV wrote: > >>> On Tu

[Mesa-dev] [PATCH] haiku/swrast: Inherit gl_config, fix flush

2013-11-13 Thread Alexander von Gluck IV
* Inherit gl_context so we always have access to it * Thanks curro for the idea. * Last Haiku cannidate for 10.0.0 --- src/mesa/drivers/haiku/swrast/SoftwareRast.cpp | 56 +++- src/mesa/drivers/haiku/swrast/SoftwareRast.h |3 +- 2 files changed, 27 insertions(+), 32 del

Re: [Mesa-dev] [PATCH] haiku/swrast: Inherit gl_config, fix flush

2013-11-13 Thread Alexander von Gluck IV
On Wed, Nov 13, 2013 at 5:56 PM, Alexander von Gluck IV wrote: * Inherit gl_context so we always have access to it * Thanks curro for the idea. * Last Haiku cannidate for 10.0.0 --- src/mesa/drivers/haiku/swrast/SoftwareRast.cpp | 56 +++- src/mesa/drivers/haiku/swrast

[Mesa-dev] [PATCH] mapi: Add better visibility checks

2013-11-17 Thread Alexander von Gluck IV
* gl.h ensures gcc is 4.x or later before using hidden visibility. This change matches that behaviour and ensures better compatibility for older gcc versions. --- src/mapi/glapi/glapi.h |2 +- src/mapi/u_compiler.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/

[Mesa-dev] [PATCH] docs: Add Haiku mention to the release notes

2013-11-17 Thread Alexander von Gluck IV
* Not mentioning Haiku Gallium work at this time as it is still unstable. --- docs/relnotes/10.0.html |2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/relnotes/10.0.html b/docs/relnotes/10.0.html index eabe77f..2665ced 100644 --- a/docs/relnotes/10.0.html +++ b/docs/relnotes/10.0.ht

Re: [Mesa-dev] [PATCH] mapi: Add better visibility checks

2013-11-19 Thread Alexander von Gluck IV
On Sun, 17 Nov 2013 12:11:41 -0600 Alexander von Gluck IV wrote: > * gl.h ensures gcc is 4.x or later before using > hidden visibility. This change matches that behaviour > and ensures better compatibility for older gcc versions. > --- > src/mapi/glapi/glapi.h |2

Re: [Mesa-dev] [PATCH] mapi: Add better visibility checks

2013-11-19 Thread Alexander von Gluck IV
On Tue, Nov 19, 2013 at 2:55 PM, Emil Velikov wrote: On 17/11/13 18:11, Alexander von Gluck IV wrote: * gl.h ensures gcc is 4.x or later before using hidden visibility. This change matches that behaviour and ensures better compatibility for older gcc versions. Hi Alexander, AFAICS

[Mesa-dev] Haiku using the Wayland state_tracker?

2013-03-26 Thread Alexander von Gluck IV
I've been hitting several brick walls working on the Haiku GL stuff. (mostly due to things being too complex for the time I have available) Given all the recent publicity for Wayland, I decided to look into the wl_shm stuff. From my point of view wl_shm looks *extremely* simple. Does anyone

Re: [Mesa-dev] Haiku using the Wayland state_tracker?

2013-03-27 Thread Alexander von Gluck IV
On 03/27/2013 2:37 am, Pekka Paalanen wrote: On Tue, 26 Mar 2013 16:47:15 -0500 Alexander von Gluck IV wrote: I've been hitting several brick walls working on the Haiku GL stuff. (mostly due to things being too complex for the time I have available) Given all the recent publicit

[Mesa-dev] [PATCH] Haiku: Add in public GL kit headers

2013-12-16 Thread Alexander von Gluck IV
* These make up the base of what C++ GL Haiku applications use for 3D rendering. * Not placed in includes/GL to prevent Haiku headers from getting installed on non-Haiku systems --- include/HaikuGL/GLRenderer.h | 76 + include/HaikuGL/GLView.h | 193 +++

[Mesa-dev] [PATCH] haiku: Fix missing HaikuGL header paths

2013-12-31 Thread Alexander von Gluck IV
--- src/gallium/targets/haiku-softpipe/SConscript | 1 + src/gallium/targets/libgl-haiku/SConscript| 1 + src/mesa/drivers/haiku/swrast/SConscript | 1 + 3 files changed, 3 insertions(+) diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SCon

[Mesa-dev] [PATCH] haiku: change atomic int to non-volatile

2014-01-22 Thread Alexander von Gluck IV
* Our atomic calls changed recently and no longer want atomic int pointers to be volatile --- include/HaikuGL/GLRenderer.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/HaikuGL/GLRenderer.h b/include/HaikuGL/GLRenderer.h index 7ffcc34..a27ee81 100644 ---

[Mesa-dev] [PATCH] haiku: Add missing u_memory.h for FREE()

2014-05-20 Thread Alexander von Gluck IV
--- .../targets/haiku-softpipe/GalliumContext.cpp |1 + .../targets/haiku-softpipe/GalliumFramebuffer.cpp |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumContext.cpp b/src/gallium/targets/haiku-softpipe/GalliumContext.cp

[Mesa-dev] [PATCH] mesa: Make Haiku use mmap vs simple malloc for exec memory

2013-04-26 Thread Alexander von Gluck IV
* Haiku recently got DEP support which can result in the OS locking down execution in non-exec flagged memory. --- src/mesa/main/execmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c index bb9c70a..5f31966 100644 --- a/src

[Mesa-dev] [PATCH 1/3] Mesa: Use mmap on Haiku for executable memory vs malloc

2013-04-29 Thread Alexander von Gluck IV
* Haiku now has DEP enabled by default. --- src/mesa/main/execmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/execmem.c b/src/mesa/main/execmem.c index bb9c70a..5f31966 100644 --- a/src/mesa/main/execmem.c +++ b/src/mesa/main/execmem.c @@ -37,7 +37,7 @@

[Mesa-dev] [PATCH 2/3] Mapi: Use mmap on Haiku for executable memory vs malloc

2013-04-29 Thread Alexander von Gluck IV
* Haiku now has DEP enabled by default. --- src/mapi/u_execmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/u_execmem.c b/src/mapi/u_execmem.c index f268028..b6751ed 100644 --- a/src/mapi/u_execmem.c +++ b/src/mapi/u_execmem.c @@ -47,7 +47,7 @@ static unsigned int

[Mesa-dev] [PATCH 3/3] Gallium: Use mmap on Haiku for executable memory vs malloc

2013-04-29 Thread Alexander von Gluck IV
* Haiku now has DEP enabled by default. --- src/gallium/auxiliary/rtasm/rtasm_execmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c index fbdb974..8f7cc20 100644 --- a/src/gallium/aux

[Mesa-dev] [PATCH] Haiku: Add Gallium winsys and target code

2013-05-21 Thread Alexander von Gluck IV
] + +module = env.StaticLibrary( +target ='swpipe_haiku.a', +source = softpipe_sources, +SHLIBPREFIX = '', +) diff --git a/src/gallium/targets/haiku-softpipe/haiku-softpipe.c b/src/gallium/targets/haiku-softpipe/haiku-softpipe.c new file mode 100644 index 000..d0a427b

Re: [Mesa-dev] [PATCH 24/25] gallium/softpipe/llvmpipe: handle query_renderer caps

2014-02-22 Thread Alexander von Gluck IV
On Sat, 2014-02-22 at 15:33 +, Emil Velikov wrote: > On 22/02/14 13:52, Brian Paul wrote: > > On Fri, Feb 21, 2014 at 8:04 PM, Emil Velikov > > wrote: > >> + case PIPE_CAP_ACCELERATED: > >> + return 0; > >> + case PIPE_CAP_VIDEO_MEMORY: { > >> + /* XXX: Do we want to return the f

Re: [Mesa-dev] [PATCH 03/40] mesa: Eliminate parameters to dd_function_table::Viewport

2014-03-16 Thread Alexander von Gluck IV
On 01/10/2014 07:40 PM, Ian Romanick wrote: > From: Ian Romanick > > No driver uses them. They will just be annoying in future patches. > > Signed-off-by: Ian Romanick > --- > src/mesa/drivers/dri/i915/intel_context.c | 15 ++- > src/mesa/drivers/dri/i965/brw_context.c| 7 +-

Re: [Mesa-dev] [PATCH 03/40] mesa: Eliminate parameters to dd_function_table::Viewport

2014-03-18 Thread Alexander von Gluck IV
On 03/17/2014 10:15 AM, Brian Paul wrote: > On 03/16/2014 02:52 PM, Alexander von Gluck IV wrote: >> On 01/10/2014 07:40 PM, Ian Romanick wrote: >>> From: Ian Romanick >>> >>> No driver uses them. They will just be annoying in future patches.

[Mesa-dev] [PATCH] haiku: Fix build through scons corrections and viewport fixes

2014-03-22 Thread Alexander von Gluck IV
* Add HAVE_PTHREAD, we do have pthread support wrappers now for non-native Haiku threaded applications. * Viewport changed behavior recently breaking the build. We fix this by looking at the gl_context ViewportArray (Thanks Brian for the idea) --- scons/gallium.py

Re: [Mesa-dev] [PATCH] haiku: Fix build through scons corrections and viewport fixes

2014-03-24 Thread Alexander von Gluck IV
On 03/24/2014 04:59 PM, Ian Romanick wrote: > On 03/22/2014 03:58 PM, Alexander von Gluck IV wrote: >> * Add HAVE_PTHREAD, we do have pthread support wrappers now for >> non-native Haiku threaded applications. >> * Viewport changed behavior recently breaking the build

[Mesa-dev] [PATCH] gallium/aux: Avoid redefining MAX

2014-12-09 Thread Alexander von Gluck IV
* Can be redefined on some platforms through u_debug.h --- src/gallium/auxiliary/cso_cache/cso_hash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.c b/src/gallium/auxiliary/cso_cache/cso_hash.c index e04d8ed..2a3f361 100644 --- a/src/gallium/auxil

[Mesa-dev] [PATCH] gallium/aux: Avoid redefining MAX

2014-12-09 Thread Alexander von Gluck IV
* Can be redefined on some platforms through u_debug.h --- src/gallium/auxiliary/cso_cache/cso_hash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.c b/src/gallium/auxiliary/cso_cache/cso_hash.c index e04d8ed..2a3f361 100644 --- a/src/gallium/aux

[Mesa-dev] [PATCH] gallium/aux: Avoid redefining MAX

2014-12-09 Thread Alexander von Gluck IV
* Can be redefined on some platforms through u_debug.h --- src/gallium/auxiliary/cso_cache/cso_hash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.c b/src/gallium/auxiliary/cso_cache/cso_hash.c index e04d8ed..2a3f361 100644 --- a/src/gallium/auxil

[Mesa-dev] [PATCH 1/2] gallium/target: Haiku softpipe

2014-12-09 Thread Alexander von Gluck IV
* Use print macro to fix warning on 64-bit systems --- src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp b/src/gallium/targets/haiku-softpipe/SoftwareRenderer.cpp inde

[Mesa-dev] [PATCH 2/2] hgl: traverse add-on entries

2014-12-09 Thread Alexander von Gluck IV
From: Adrien Destugues * Allow using symlinks to add-ons when developing. --- src/hgl/GLRendererRoster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hgl/GLRendererRoster.cpp b/src/hgl/GLRendererRoster.cpp index d29f7ec..9e5d847 100644 --- a/src/hgl/GLRendererRos

Re: [Mesa-dev] [PATCH] gallium/aux: Avoid redefining MAX

2014-12-09 Thread Alexander von Gluck IV
On , Matt Turner wrote: On Tue, Dec 9, 2014 at 1:21 PM, Alexander von Gluck wrote: * Can be redefined on some platforms through u_debug.h I think this is now the fourth copy of this message I've received? ___ mesa-dev mailing list mesa-dev@lists.fre

[Mesa-dev] [PATCH] mesa/drivers: Add missing mesautil lib to Haiku swrast

2014-12-10 Thread Alexander von Gluck IV
* Resolves missing util_format_linear_to_srgb_8unorm_table symbol. --- src/mesa/drivers/haiku/swrast/SConscript | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/haiku/swrast/SConscript b/src/mesa/drivers/haiku/swrast/SConscript index 2c25f72..907325e 100644 --- a/src/mesa/driv

[Mesa-dev] [PATCH 02/12] egl: More functions for Haiku

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle --- src/egl/drivers/dri2/egl_dri2.h | 13 src/egl/drivers/dri2/platform_haiku.cpp | 117 +-- 2 files changed, 123 insertions(+), 7 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h in

[Mesa-dev] [PATCH 04/12] egl_dri2/haiku: whitespace cleanup

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_haiku.cpp | 102 +++--- 1 files changed, 51 insertions(+), 51 deletions(-) diff --git a/src/egl/drivers/dri2/platform_haiku.cpp b/src/egl/drivers/dri2/platform_haiku.cpp index 77b88a9..dc

[Mesa-dev] [PATCH 09/12] egl: Adding Haiku configs, not stable yet

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle --- src/egl/drivers/dri2/egl_dri2.c |7 ++ src/egl/drivers/dri2/platform_haiku.cpp | 172 +-- src/egl/main/SConscript | 14 ++- src/egl/main/egldisplay.c |4 + 4 files changed, 160 insertions(+

[Mesa-dev] [PATCH 11/12] Haiku: Remove DRI2 code as it doesn't support Haiku yet.

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle * EGL on Haiku now working --- src/SConscript |5 +- src/egl/drivers/dri2/egl_dri2.c |5 - src/egl/drivers/dri2/egl_dri2.h |5 - src/egl/drivers/dri2/platform_haiku.cpp | 300 -- src/egl/drivers/h

[Mesa-dev] [PATCH 06/12] egl_dri2: a ton of blob

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov Attempt to get a egl_dri2 SConscript - Drop going into the gallium egl-static - Promote the main library to a shared one. - Convert libEGL_Haiku into a conv. library - shove a demo platform_x11. - s/HAVE_EGL_PLATFORM_HAIKU/HAVE_HAIKU_PLATFORM/ - A ton of extra crap all ove

[Mesa-dev] [PATCH 07/12] egl: scons: link against libloader

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/main/SConscript |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/egl/main/SConscript b/src/egl/main/SConscript index 08cc42e..6582621 100644 --- a/src/egl/main/SConscript +++ b/src/egl/main/SConscript @@ -30,

[Mesa-dev] [PATCH 03/12] egl_dri2: fix plafrom_haiku includes

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov Drop the gralloc_drm which is android specific header and remove the leading .. in the loader inclusion. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_haiku.cpp |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/pl

[Mesa-dev] [PATCH 01/12] egl: add void library, we need to implement driver on platform_haiku.cpp

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle --- include/EGL/eglplatform.h | 10 ++- src/SConscript |3 +- src/egl/drivers/dri2/SConscript | 24 + src/egl/drivers/dri2/platform_haiku.cpp | 42 +++ src/egl/main/

[Mesa-dev] [PATCH 10/12] egl: Improve configuration creation for Haiku.

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle * Creates a configuration, but it does not work --- src/egl/drivers/dri2/platform_haiku.cpp | 51 ++- 1 files changed, 50 insertions(+), 1 deletions(-) diff --git a/src/egl/drivers/dri2/platform_haiku.cpp b/src/egl/drivers/dri2/platform_h

[Mesa-dev] [PATCH 08/12] egl: Resolve Haiku build issues

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle * Builds perfect and it loads the driver. * It still reports EGL_NOT_INITIALIZED --- src/egl/drivers/dri2/SConscript |8 +++- src/egl/drivers/dri2/platform_haiku.cpp |4 src/egl/main/SConscript |4 ++-- src/egl/main/egldispla

[Mesa-dev] [PATCH 05/12] egl_dri2/haiku: coding style fixes

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.h |4 ++-- src/egl/drivers/dri2/platform_haiku.cpp | 27 --- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/

[Mesa-dev] [PATCH 12/12] Works if we disable the EGL_BAD_SURFACE error

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle --- src/egl/drivers/haiku/egl_haiku.cpp | 175 +-- src/egl/main/eglapi.c |2 + 2 files changed, 87 insertions(+), 90 deletions(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp

[Mesa-dev] [PATCH 2/4] egl: Clean up Haiku visual creation

2014-12-22 Thread Alexander von Gluck IV
* Only create one struct * 'final' also is a language conflict * Some style cleanup --- src/egl/drivers/haiku/egl_haiku.cpp | 96 +-- 1 files changed, 47 insertions(+), 49 deletions(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_

[Mesa-dev] [PATCH 3/4] egl/dri2: Fix build of dri2 egl driver with SCons

2014-12-22 Thread Alexander von Gluck IV
* egl/dri2 was missing a SConscript * Problem caught by Adrián Arroyo Calle --- src/egl/drivers/dri2/SConscript | 40 +++ 1 files changed, 40 insertions(+), 0 deletions(-) create mode 100644 src/egl/drivers/dri2/SConscript diff --git a/src/egl/drivers/dri2/S

[Mesa-dev] [PATCH 4/4] egl/haiku: Clean up SConscript whitespace

2014-12-22 Thread Alexander von Gluck IV
--- src/egl/drivers/haiku/SConscript | 25 - 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/egl/drivers/haiku/SConscript b/src/egl/drivers/haiku/SConscript index 2c38599..9dd2f70 100644 --- a/src/egl/drivers/haiku/SConscript +++ b/src/egl/drivers/hai

[Mesa-dev] [PATCH 1/4] egl: Add Haiku code and support

2014-12-22 Thread Alexander von Gluck IV
* This is the cleaned up work of the Haiku GCI student Adrián Arroyo Calle adrian.arroyoca...@gmail.com * Several patches were consolidated to prevent unnecessary touching of non-related code --- include/EGL/eglplatform.h | 10 +- src/SConscript |4 + src/e

[Mesa-dev] [PATCH] egl: Fix non-dri SCons builds re #87657

2014-12-24 Thread Alexander von Gluck IV
* Revert change to egl main producing Shared Libraries * Check for dri before including dri code --- src/SConscript |3 ++- src/egl/main/SConscript | 17 +++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/SConscript b/src/SConscript index eb4cd3c..

[Mesa-dev] [PATCH 2/2] gallium/target: Drop no longer needed Haiku viewport override

2014-12-26 Thread Alexander von Gluck IV
* Drop no longer needed mesa headers * Haiku LLVM pipe working with LLVM 3.5.0 on x86_64 --- .../targets/haiku-softpipe/GalliumContext.cpp | 31 +--- 1 files changed, 1 insertions(+), 30 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumContext.cpp b/src/

[Mesa-dev] [PATCH 1/2] gallium/st: Clean up Haiku depth mapping, fix colorspace errors

2014-12-26 Thread Alexander von Gluck IV
--- src/gallium/state_trackers/hgl/hgl.c | 48 + 1 files changed, 19 insertions(+), 29 deletions(-) diff --git a/src/gallium/state_trackers/hgl/hgl.c b/src/gallium/state_trackers/hgl/hgl.c index 4d7c479..0b30290 100644 --- a/src/gallium/state_trackers/hgl/hgl.c

[Mesa-dev] [PATCH] gallium/state_tracker: Rewrite Haiku's state tracker

2014-12-31 Thread Alexander von Gluck IV
quot;%s: Can't allocate bitmap of %dx%d\n", __func__, fWidth, fHeight); @@ -358,8 +354,6 @@ SoftwareRenderer::_AllocateBitmap() TRACE("%s: New bitmap size: %" B_PRId32 " x %" B_PRId32 "\n", __func__, fBitmap->

[Mesa-dev] [PATCH 1/2] state_trackers/hgl: Fix missing include path

2015-09-26 Thread Alexander von Gluck IV
--- src/gallium/state_trackers/hgl/SConscript |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/hgl/SConscript b/src/gallium/state_trackers/hgl/SConscript index 82a0ce0..d2389c8 100644 --- a/src/gallium/state_trackers/hgl/SConscript +++ b/src/gall

[Mesa-dev] [PATCH 2/2] egl: Fix missing Haiku include path

2015-09-26 Thread Alexander von Gluck IV
--- src/egl/SConscript |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/egl/SConscript b/src/egl/SConscript index f8102db..8f8b11a 100644 --- a/src/egl/SConscript +++ b/src/egl/SConscript @@ -8,6 +8,7 @@ env = env.Clone() env.Append(CPPPATH = [ '#/include', +

[Mesa-dev] [PATCH 2/2] glapi/hgl: Drop extern "C" as it was added to glapi

2015-05-13 Thread Alexander von Gluck IV
--- src/hgl/GLDispatcher.cpp |5 +++-- src/hgl/GLDispatcher.h |4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hgl/GLDispatcher.cpp b/src/hgl/GLDispatcher.cpp index 46b91d5..a1e9053 100644 --- a/src/hgl/GLDispatcher.cpp +++ b/src/hgl/GLDispatcher.cpp @@ -1,6 +1

[Mesa-dev] [PATCH 1/2] glapi: Add extern "C" to glapi_priv.h

2015-05-13 Thread Alexander von Gluck IV
* The Haiku glapi has a C++ wrapper around the dispatch code. --- src/mapi/glapi/glapi_priv.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/mapi/glapi/glapi_priv.h b/src/mapi/glapi/glapi_priv.h index 50f710e..337913a 100644 --- a/src/mapi/glapi/glapi_priv.h

[Mesa-dev] [PATCH 1/2] egl: Add needed extern "C" for C++ access

2015-05-13 Thread Alexander von Gluck IV
* Haiku's egl driver is C++ due to the interface natively being C++ --- src/egl/main/eglapi.h | 10 ++ src/egl/main/eglarray.h|8 src/egl/main/eglcompiler.h |8 src/egl/main/eglconfig.h |8 src/egl/main/eglcontext.h |8 src/

[Mesa-dev] [PATCH 2/2] egl/haiku: Drop extern "C". No longer needed

2015-05-13 Thread Alexander von Gluck IV
--- src/egl/drivers/haiku/egl_haiku.cpp |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 4cf2ccb..4d9888d 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_haiku

Re: [Mesa-dev] [PATCH 2/2] egl/haiku: Drop extern "C". No longer needed

2015-05-14 Thread Alexander von Gluck IV
On , Brian Paul wrote: On 05/13/2015 04:14 PM, Alexander von Gluck IV wrote: --- src/egl/drivers/haiku/egl_haiku.cpp |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 4cf2ccb..4d9888d

[Mesa-dev] [PATCH 1/5] gallium/aux: Add needed extern "C" wrappers

2015-05-14 Thread Alexander von Gluck IV
--- src/gallium/auxiliary/os/os_thread.h|7 +++ src/gallium/auxiliary/postprocess/postprocess.h |9 + src/gallium/auxiliary/util/u_tests.h|8 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/os/os_thread.

  1   2   >