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

2013-10-01 Thread Alexander von Gluck
0-2012 Haiku, Inc. All Rights Reserved. + * Distributed under the terms of the MIT License. + * + * Authors: + * Brian Paul + * Philippe Houdoin + * Alexander von Gluck IV + */ + + +extern "C" { +#include "glapi/glapi.h" +#include "glapi

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

2013-10-13 Thread Alexander von Gluck
On Sun, 2013-10-13 at 12:36 -0700, Ian Romanick wrote: > On 10/13/2013 10:52 AM, Alexander von Gluck IV wrote: > > * 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 st

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

2013-10-15 Thread Alexander von Gluck
ber 2013, 16:57:20 schrieb Francisco Jerez: > >> > > Alexander von Gluck IV writes: > >> > > > >> > > > * As discussed on the mailing list, > >> > > > forced no-rtti breaks C++ public > >> > > > API's

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

2013-10-16 Thread Alexander von Gluck
On Wed, 2013-10-16 at 22:09 +0200, Johannes Obermayr wrote: > Am Dienstag, 15. Oktober 2013, 17:22:54 schrieb Alexander von Gluck: > > On Tue, 2013-10-15 at 15:05 -0700, Francisco Jerez wrote: > > > Johannes Obermayr writes: > > > > > > > Am Dienstag, 1

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

2013-10-16 Thread Alexander von Gluck
On Wed, 2013-10-16 at 18:34 -0400, Jan Vesely wrote: > On Wed, 2013-10-16 at 16:58 -0500, Alexander von Gluck wrote: > > On Wed, 2013-10-16 at 22:09 +0200, Johannes Obermayr wrote: > > > Am Dienstag, 15. Oktober 2013, 17:22:54 schrieb Alexander von Gluck: > > > > On

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

2013-10-16 Thread Alexander von Gluck
On Wed, 2013-10-16 at 15:20 -0700, Jose Fonseca wrote: > +# Match llvm --fno-rtti flag > +cxxflags = env.backtick('llvm-config --cxxflags').split() > +if '-fno-rtti' in cxxflags: > +env.Append(CXXFLAGS = ['-fno-rtti']) Ah, thats a good idea. I d

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

2013-10-16 Thread Alexander von Gluck
On Wed, 2013-10-16 at 18:32 -0500, Alexander von Gluck wrote: > > Jan Vesely wrote: > > > We've seen no other complaints on this issue, so likely it is > something > > > environmental on your end. (unless an older version of LLVM has an > > > issue.

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

2014-12-09 Thread Alexander von Gluck
* 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/auxili

Re: [Mesa-dev] [PATCH 1/2] mesa: Don't use rtasm for Haiku swrast

2013-01-07 Thread Alexander von Gluck
On 2013-01-07 02:48, Brian Paul wrote: On 01/06/2013 03:14 PM, Alex wrote: * We have a symbol conflict as rtasm in Mesa collides with rtasm in gallium. * As us linking gallium and mesa together is an edge case, lets just omit the rtasm code from Mesa as we should be going llvmpipe s

[Mesa-dev] Willing to take Haiku support Patches? (Was: DEATH to old drivers!)

2011-12-19 Thread Alexander von Gluck
Good afternoon! The Haiku OS project (not-for-profit organization, founded in 2001) has found ourselves in a weird spot, we have a working Mesa software render library based on a *heavily* modified Mesa 7.4.4. http://cgit.haiku-os.org/haiku/tree/src/libs/mesa However as you can imagine, updatin

Re: [Mesa-dev] Willing to take Haiku support Patches? (Was: DEATH to old drivers!)

2011-12-19 Thread Alexander von Gluck
On Mon, 19 Dec 2011 11:44:51 -0700, Brian Paul wrote: On Mon, Dec 19, 2011 at 11:18 AM, Alexander von Gluck wrote: Good afternoon! The Haiku OS project (not-for-profit organization, founded in 2001) has found ourselves in a weird spot, we have a working Mesa software render library based on

Re: [Mesa-dev] Willing to take Haiku support Patches? (Was: DEATH to old drivers!)

2011-12-20 Thread Alexander von Gluck
On Mon, 19 Dec 2011 11:44:51 -0700, Brian Paul wrote: On Mon, Dec 19, 2011 at 11:18 AM, Alexander von Gluck wrote: Good afternoon! The Haiku OS project (not-for-profit organization, founded in 2001) has found ourselves in a weird spot, we have a working Mesa software render library based on

[Mesa-dev] [PATCH] Add initial Haiku build support

2011-12-21 Thread Alexander von Gluck
pport for a new architecture, you can # start with this: diff --git a/configs/haiku b/configs/haiku new file mode 100644 index 000..12f958e --- /dev/null +++ b/configs/haiku @@ -0,0 +1,66 @@ +# Configuration for Haiku +# Written by Alexander von Gluck IV +# +# Based on th

Re: [Mesa-dev] [PATCH] Add initial Haiku build support

2011-12-23 Thread Alexander von Gluck
On Thu, 22 Dec 2011 09:45:01 +0100, Maarten Lankhorst wrote: Hey Alexander, On 12/21/2011 07:16 PM, Alexander von Gluck wrote: * Doesn't reintroduce legacy drivers * Adds Haiku mklib code * Removes some broken PIPE_OS_HAIKU defines * Removes an NDEBUG ifdef in link_uniforms.cpp, there

[Mesa-dev] [PATCH 3/4] build: Haiku build fixes, BeOS code removal

2011-12-23 Thread Alexander von Gluck
* Use generic pthread barrier on Haiku. * Re-add debug_printf define for Haiku. * Add mapi headers to r300 build (to not rely on makedepend?) * Remove NDEBUG define of union, as the union is used regardless of NDEFINE setting. * Remove BeOS reference to not building GLU as BeOS is no longer a

[Mesa-dev] [PATCH 1/4] mklib: Add Haiku build support

2011-12-23 Thread Alexander von Gluck
--- bin/mklib | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/bin/mklib b/bin/mklib index 70bd1a2..93dd989 100755 --- a/bin/mklib +++ b/bin/mklib @@ -959,6 +959,43 @@ case $ARCH in fi ;; + 'Haiku') +

[Mesa-dev] [PATCH 2/4] makefile: Add Haiku makefile build support

2011-12-23 Thread Alexander von Gluck
# PIC is the default for these OSes. ;; mingw*|os2*|pw32*) diff --git a/configs/haiku b/configs/haiku new file mode 100644 index 000..12f958e --- /dev/null +++ b/configs/haiku @@ -0,0 +1,66 @@ +# Configuration for Haiku +# Written by Alexander von Gluck IV +# +# Bas

[Mesa-dev] [PATCH 4/4] glu: Fix build of static GLU libraries

2011-12-23 Thread Alexander von Gluck
* Several platforms try to build static libGLU.a however, the libGLU makefile only will build a shared .so * Haiku links libGLU into libGL, so this makes the process easier --- configs/haiku|3 +++ src/glu/sgi/Makefile | 10 +- 2 files changed, 12 insertions(+), 1 deletio

Re: [Mesa-dev] [PATCH 1/4] mklib: Add Haiku build support

2011-12-24 Thread Alexander von Gluck
On 24.12.2011 07:29, Brian Paul wrote: On Fri, Dec 23, 2011 at 4:24 PM, Alexander von Gluck wrote: ---  bin/mklib |   37 +  1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/bin/mklib b/bin/mklib index 70bd1a2..93dd989 100755 --- a/bin/mklib

Re: [Mesa-dev] [PATCH 2/4] makefile: Add Haiku makefile build support

2011-12-24 Thread Alexander von Gluck
On 24.12.2011 07:30, Brian Paul wrote: On Fri, Dec 23, 2011 at 4:24 PM, Alexander von Gluck wrote: ---  Makefile      |    1 +  acinclude.m4  |    2 +-  configs/haiku |   66 +  3 files changed, 68 insertions(+), 1 deletions(-)  create

Re: [Mesa-dev] [PATCH 4/4] glu: Fix build of static GLU libraries

2011-12-24 Thread Alexander von Gluck
On 24.12.2011 07:35, Brian Paul wrote: On Fri, Dec 23, 2011 at 4:25 PM, Alexander von Gluck wrote: * Several platforms try to build static libGLU.a  however, the libGLU makefile only will build a shared .so * Haiku links libGLU into libGL, so this makes the process easier ---  configs/haiku

[Mesa-dev] [PATCH 3/6] glsl: always define data_end union as we always use it on line 369

2011-12-27 Thread Alexander von Gluck
--- src/glsl/link_uniforms.cpp |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index c7de480..fc1c1f7 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -336,9 +336,7 @@ link_assign_uniform

[Mesa-dev] [PATCH 6/6] mklib: tab cleanup, no functional change

2011-12-27 Thread Alexander von Gluck
--- bin/mklib |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/mklib b/bin/mklib index 510ac91..56e0b36 100755 --- a/bin/mklib +++ b/bin/mklib @@ -986,7 +986,7 @@ case $ARCH in # remove temporary extracted .o files rm

[Mesa-dev] [PATCH 5/6] mesa: fpclassify is available on Haiku

2011-12-27 Thread Alexander von Gluck
--- src/mesa/main/querymatrix.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c index eaedf7c..2843d55 100644 --- a/src/mesa/main/querymatrix.c +++ b/src/mesa/main/querymatrix.c @@ -73,7 +73,7 @@ fpclassify(doubl

[Mesa-dev] [PATCH 1/6] gallium: use Mesa pthread_barrier_t on Haiku, as it is incomplete under Haiku

2011-12-27 Thread Alexander von Gluck
--- src/gallium/auxiliary/os/os_thread.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/os/os_thread.h b/src/gallium/auxiliary/os/os_thread.h index d830129..3e1c273 100644 --- a/src/gallium/auxiliary/os/os_thread.h +++ b/src/gallium/auxiliary/os

[Mesa-dev] [PATCH 4/6] glu: remove BeOS define as BeOS is not longer a target platform

2011-12-27 Thread Alexander von Gluck
--- src/glu/sgi/Makefile |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/src/glu/sgi/Makefile b/src/glu/sgi/Makefile index c8b29ed..94427e2 100644 --- a/src/glu/sgi/Makefile +++ b/src/glu/sgi/Makefile @@ -124,12 +124,7 @@ OBJECTS = $(C_OBJECTS) $(CC_OBJECTS) #

[Mesa-dev] [PATCH 2/6] gallium: include mapi headers which are utilized. fixes no-makedepend Haiku build

2011-12-27 Thread Alexander von Gluck
--- src/gallium/drivers/r300/Makefile |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r300/Makefile b/src/gallium/drivers/r300/Makefile index 5f56fc4..3e3a765 100644 --- a/src/gallium/drivers/r300/Makefile +++ b/src/gallium/drivers/r300/Makefile @@

Re: [Mesa-dev] [PATCH 2/6] gallium: include mapi headers which are utilized. fixes no-makedepend Haiku build

2011-12-27 Thread Alexander von Gluck
On 27.12.2011 10:31, Brian Paul wrote: On Tue, Dec 27, 2011 at 8:40 AM, Alexander von Gluck wrote: ---  src/gallium/drivers/r300/Makefile |    1 +  1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r300/Makefile b/src/gallium/drivers/r300/Makefile index

Re: [Mesa-dev] [PATCH 3/6] glsl: always define data_end union as we always use it on line 369

2011-12-28 Thread Alexander von Gluck
On 28.12.2011 13:51, Ian Romanick wrote: On Dec 27, 2011, at 8:35 AM, Brian Paul wrote: On Tue, Dec 27, 2011 at 8:41 AM, Alexander von Gluck wrote: --- src/glsl/link_uniforms.cpp |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src

[Mesa-dev] [PATCH] glsl: fix usage of potentially undefined data_end union

2011-12-29 Thread Alexander von Gluck
--- src/glsl/link_uniforms.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index c7de480..b331db7 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -365,9 +365,9 @@ link_assign_uniform

[Mesa-dev] [PATCH] gallium: use Haiku provided debug_printf in OS.h

2011-12-29 Thread Alexander von Gluck
--- src/gallium/auxiliary/util/u_debug.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index b5ea405..448d799 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliar

[Mesa-dev] [PATCH] gallium: use Haiku provided debug_printf in OS.h

2011-12-30 Thread Alexander von Gluck
--- src/gallium/auxiliary/util/u_debug.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index b5ea405..3aa6aaf 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary

[Mesa-dev] [PATCH] gallium: use Haiku provided debug_printf in OS.h

2012-01-03 Thread Alexander von Gluck
--- src/gallium/auxiliary/util/u_debug.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index b5ea405..3aa6aaf 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary

[Mesa-dev] Haiku Mesa status

2012-01-03 Thread Alexander von Gluck
Good morning! I really appreciate Mesa being open to accepting the Haiku patches. The Haiku support is close to done. Given the current patches applied (plus a few small tweaks mentioned below), Mesa (and a few Gallium drivers!) build under Haiku. Here is whats left for the basic build...

[Mesa-dev] [PATCH] mesa/main: fix incorrect use of _mesa_ffsll. _mesa_ffsll may or may not be defined on GNUC

2012-01-03 Thread Alexander von Gluck
--- src/mesa/main/arrayobj.c |2 +- src/mesa/main/imports.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 4b3e07b..29bfed8 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -303,7 +303

Re: [Mesa-dev] [PATCH] mesa/main: fix incorrect use of _mesa_ffsll. _mesa_ffsll may or may not be defined on GNUC

2012-01-04 Thread Alexander von Gluck
On 03.01.2012 16:54, Brian Paul wrote: On Tue, Jan 3, 2012 at 1:49 PM, Alexander von Gluck wrote: ---  src/mesa/main/arrayobj.c |    2 +-  src/mesa/main/imports.h  |    2 +-  2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c

[Mesa-dev] [PATCH] mesa: fix situations where ffs or ffsl may not be defined

2012-01-04 Thread Alexander von Gluck
--- src/mesa/main/imports.h | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index b7e8743..522ffeb 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -568,13 +568,19 @@ _mesa_init_sqrt_t

[Mesa-dev] [PATCH] mesa: fix situations where ffs or ffsl may not be defined

2012-01-09 Thread Alexander von Gluck
--- src/mesa/main/imports.h | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index b7e8743..522ffeb 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -568,13 +568,19 @@ _mesa_init_sqrt_t

Re: [Mesa-dev] [PATCH] mesa: fix situations where ffs or ffsl may not be defined

2012-01-10 Thread Alexander von Gluck
On 10.01.2012 21:53, Brian Paul wrote: On Mon, Jan 9, 2012 at 2:39 PM, Alexander von Gluck wrote: ---  src/mesa/main/imports.h |   16  1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index b7e8743..522ffeb

[Mesa-dev] [PATCH] mesa: Make ffs/ffsl conditions match popcount ones.

2012-01-10 Thread Alexander von Gluck
- Ensure mesa code uses the _mesa_ffs(l) functions consistantly instead of jumping around between ffs and _mesa_ffs - This makes ffs/ffsl behave more like the popcount code - Better detects and handles edge cases of missing ffs/ffsl - Use builtin ffs/ffsl more often as it may provide perfor

Re: [Mesa-dev] [PATCH] mesa: remove _mesa_ffs(), implement ffs() for non-GNU platforms

2012-01-11 Thread Alexander von Gluck
On 11.01.2012 15:19, Brian Paul wrote: On 01/11/2012 02:14 PM, Kenneth Graunke wrote: On 01/11/2012 12:50 PM, Brian Paul wrote: Call ffs() and ffsll() everywhere. Define our own ffs(), ffsll() functions when the platform doesn't have them. Looks great, Brian. Thanks! Reviewed-by: Kenneth Gra

Re: [Mesa-dev] [PATCH] mesa: remove _mesa_ffs(), implement ffs() for non-GNU platforms

2012-01-11 Thread Alexander von Gluck
On 11.01.2012 14:50, Brian Paul wrote: Call ffs() and ffsll() everywhere. Define our own ffs(), ffsll() functions when the platform doesn't have them. --- src/mesa/main/imports.c | 11 ++- diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 2469e42.

Re: [Mesa-dev] [PATCH] mesa: remove _mesa_ffs(), implement ffs() for non-GNU platforms

2012-01-11 Thread Alexander von Gluck
On 11.01.2012 21:11, Brian Paul wrote: On 01/11/2012 08:06 PM, Alexander von Gluck wrote: On 11.01.2012 14:50, Brian Paul wrote: Call ffs() and ffsll() everywhere. Define our own ffs(), ffsll() functions when the platform doesn't have them. --- src/mesa/main/imports.c | 11 ++-

[Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Alexander von Gluck
Enables building stock Mesa under the Haiku operating system. --- common.py |2 +- scons/gallium.py |2 ++ src/SConscript |5 +++-- src/gallium/SConscript | 14 ++ src/glu/sgi/SConscript | 16 +++- 5 files changed, 27 insertions(

Re: [Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Alexander von Gluck
is no llvm / clang in Haiku (yet) so it doesn't build :) -- Alexander von Gluck On 16.01.2012 12:53, Jose Fonseca wrote: Looks good. What's preventing src/gallium/drivers/llvmpipe and src/gallium/drivers/svga from building on haiku? These pipe drivers should be fairly portable (unlik

Re: [Mesa-dev] [PATCH] scons: Add Haiku build support

2012-01-16 Thread Alexander von Gluck
Should I commit this for you? If you approve :) -- Alexander von Gluck On 16.01.2012 13:31, Jose Fonseca wrote: - Original Message - svga is close, however there is a type conflict. Haiku defines uint32, uint8, etc by default... the svga gallium driver defines them as well. I think

[Mesa-dev] [PATCH] scons: Don't set visibility to hidden on Haiku

2012-01-16 Thread Alexander von Gluck
The Haiku swrast driver is out of tree and this causes issues. --- scons/gallium.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index 5a0c6fe..86adc3e 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -350,7 +350,7 @@ def g

[Mesa-dev] [PATCH 1/2] scons: Add Haiku build support

2012-01-17 Thread Alexander von Gluck
Enables building stock Mesa under the Haiku operating system. --- common.py |2 +- scons/gallium.py |2 ++ src/SConscript |5 +++-- src/gallium/SConscript | 14 ++ src/glu/sgi/SConscript | 16 +++- 5 files changed, 27 insertions(

[Mesa-dev] [PATCH 2/2] scons: Don't set visibility to hidden on Haiku

2012-01-17 Thread Alexander von Gluck
The Haiku swrast driver is out of tree. --- scons/gallium.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index 5a0c6fe..86adc3e 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -350,7 +350,7 @@ def generate(env):

Re: [Mesa-dev] [PATCH] Always build shared glapi

2012-01-17 Thread Alexander von Gluck
On 17.01.2012 14:15, Matt Turner wrote: On Wed, Jan 11, 2012 at 6:37 PM, Matt Turner wrote: --- No one on IRC knows why an unshared glapi is useful. Does anyone have a use-case for this? If not, we can drop it to simplify automake work. Okay to commit? Anyone tested it? Haiku uses all sta

[Mesa-dev] Gallium issue on Haiku scons build, duplicate rtasm, assertion error.

2012-01-20 Thread Alexander von Gluck
Quick question, I noticed that Mesa and gallium both implement rtasm... src/gallium/auxiliary/rtasm/rtasm_x86sse.c: p->need_emms = 1; src/gallium/auxiliary/rtasm/rtasm_x86sse.c: assert(p->need_emms); src/gallium/auxiliary/rtasm/rtasm_x86sse.c: p->need_emms = 0; src/gallium/auxiliary/rtasm/r

[Mesa-dev] [PATCH 1/5] scons: Remove Haiku one-offs for gallium drivers

2012-01-22 Thread Alexander von Gluck
--- src/gallium/SConscript |9 ++--- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/gallium/SConscript b/src/gallium/SConscript index 8efd04c..ae94637 100644 --- a/src/gallium/SConscript +++ b/src/gallium/SConscript @@ -14,18 +14,13 @@ SConscript('auxiliary/SConscript'

[Mesa-dev] [PATCH 2/5] gallium: llvmpipe. Remove symbol conflict on Haiku

2012-01-22 Thread Alexander von Gluck
--- src/gallium/drivers/llvmpipe/lp_rast.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 873c261..efa5024 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/dri

[Mesa-dev] [PATCH 3/5] gallium: svga. Fix typedef conflicts on Haiku

2012-01-22 Thread Alexander von Gluck
--- src/gallium/drivers/svga/include/svga_types.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/svga/include/svga_types.h b/src/gallium/drivers/svga/include/svga_types.h index 7fd9bab..7a99f34 100644 --- a/src/gallium/drivers/svga/include/svga_t

[Mesa-dev] [PATCH 4/5] mesa: Don't use newlocale on Haiku

2012-01-22 Thread Alexander von Gluck
--- src/mesa/main/imports.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index bbc6ac6..82713a1 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -764,7 +764,7 @@ float _mesa_strtof( const char *s,

[Mesa-dev] [PATCH 5/5] glsl: Don't use newlocale on Haiku

2012-01-22 Thread Alexander von Gluck
--- src/glsl/strtod.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/glsl/strtod.c b/src/glsl/strtod.c index ff34591..a876e13 100644 --- a/src/glsl/strtod.c +++ b/src/glsl/strtod.c @@ -44,7 +44,8 @@ double glsl_strtod(const char *s, char **end) { -#if defined(_G

[Mesa-dev] scons tnl bug, rfc on removing mesa rtasm.

2012-01-23 Thread Alexander von Gluck
So I've been digging through the assertion error I am getting under Haiku and have finally found the issue... The Mesa tnl depends on the Mesa rtasm header (mesa/x86/rtasm/x86sse.h), however scons never compiles mesa/x86/rtasm/x86sse.c into libmesa. As x86/rtasm/x86sse.c is never compiled in,

[Mesa-dev] [PATCH 1/2] mesa: Remove tnl Mesa rtasm dependency

2012-01-23 Thread Alexander von Gluck
- Mesa tnl used the Mesa rtasm headers, however it was using the gallium rtasm symbols causing heap corruption. (seen especially on scons builds as Mesa rtasm wasn't even compiled). - Mesa tnl updated to use Gallium rtasm. --- src/mesa/sources.mak|1 - src/mesa/tnl/t_vertex_sse.

[Mesa-dev] [PATCH 2/2] mesa: Remove rtasm as it is no longer used

2012-01-23 Thread Alexander von Gluck
--- src/mesa/x86/rtasm/x86sse.c | 1203 --- src/mesa/x86/rtasm/x86sse.h | 256 - 2 files changed, 0 insertions(+), 1459 deletions(-) delete mode 100644 src/mesa/x86/rtasm/x86sse.c delete mode 100644 src/mesa/x86/rtasm/x86sse.h diff --git a/src

Re: [Mesa-dev] scons tnl bug, rfc on removing mesa rtasm.

2012-01-23 Thread Alexander von Gluck
On 23.01.2012 14:44, Jose Fonseca wrote: I don't think that one should introduce a dependency between Mesa and Gallium as each should be built without the other. The right way to do this is to move rtasm to side by side w/ MEsa & gallium (e.g., src/rtasm), and have Mesa and Gallium both depen

[Mesa-dev] Thoughts on Haiku's OpenGL implementation (hardware rendering)

2012-07-27 Thread Alexander von Gluck
renderer (gcc2) A wrapper arround Mesa 7.8.2 (last version of mesa I could get compiled on gcc2) I know we need a ring buffer in the driver to manage dataflow to the card, any thoughts where the state tracker would fit in? -- Alexander von Gluck __

Re: [Mesa-dev] Thoughts on Haiku's OpenGL implementation (hardware rendering)

2012-07-27 Thread Alexander von Gluck
On 27.07.2012 09:10, Alexander von Gluck wrote: I'm trying to get together a solid plan for Haiku's OpenGL kit. It should be kept in mind that we indend to keep Mesa upstream code minimal to keep from Haiku code suffering the same state as BeOS code :) Currently we are using

Re: [Mesa-dev] [PATCH] scons: Fix Haiku binary compatibility

2012-06-11 Thread Alexander von Gluck
On 11.06.2012 14:04, Jose Fonseca wrote: - Original Message - From 44fa55d3f49884c824306504943ca2a1382601f0 Mon Sep 17 00:00:00 2001 * Our binary compatibility is targeted to Pentimum or higher, these changes ensure we keep proper optimizations * Fixes strange if statement '! window

Re: [Mesa-dev] [PATCH] scons: Fix Haiku binary compatibility

2012-06-11 Thread Alexander von Gluck
On 11.06.2012 14:32, Alexander von Gluck wrote: On 11.06.2012 14:04, Jose Fonseca wrote: - Original Message - From 44fa55d3f49884c824306504943ca2a1382601f0 Mon Sep 17 00:00:00 2001 * Our binary compatibility is targeted to Pentimum or higher, these changes ensure we keep proper

[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

  1   2   3   >