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

[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

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

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

2013-05-21 Thread Alexander von Gluck IV
-softpipe/haiku-softpipe.c new file mode 100644 index 000..d0a427b --- /dev/null +++ b/src/gallium/targets/haiku-softpipe/haiku-softpipe.c @@ -0,0 +1,65 @@ +/** + * + * Copyright 2013 Alexander von Gluck IV kallis...@unixzen.com

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

2012-06-07 Thread Alexander von Gluck IV
* Our binary compatibility is targeted to Pentimum or higher, these changes ensure we keep proper optimizations * Fixes strange if statement '! windows or debug or True' --- scons/gallium.py |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/scons/gallium.py

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

2012-06-07 Thread Alexander von Gluck IV
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 '! windows or debug or True' --- scons/gallium.py |9 - 1 files

[Mesa-dev] Odd error while compiling Haiku softpipe wrapper code

2012-11-24 Thread Alexander von Gluck IV
I'm working on some wrapper code for Haiku softpipe driver, and I stumbled across the following strange build error when including sp_context.h: (Mesa 9.0) In file included from ../../../../generated/build_packages/mesa-9.0-x86-gcc4-2012-11-17/src/gallium/drivers/softpipe/sp_context.h:36:0,

Re: [Mesa-dev] Odd error while compiling Haiku softpipe wrapper code

2012-11-26 Thread Alexander von Gluck IV
On 2012-11-24 5:38 pm, Alexander von Gluck IV wrote: I'm working on some wrapper code for Haiku softpipe driver, and I stumbled across the following strange build error when including sp_context.h: (Mesa 9.0) In file included from ../../../../generated/build_packages/mesa-9.0-x86-gcc4-2012-11

Re: [Mesa-dev] [PATCH 1/3] build: Require X11 pkg-config files

2012-12-12 Thread Alexander von Gluck IV
On Tue, 14 Aug 2012 12:59:42 -0700 Matt Turner matts...@gmail.com wrote: Cc: Jeremy Huddleston jerem...@apple.com --- Jeremy, does OS X ship the pkg-config files? Haiku doesn't... Mesa should have a path to properly handle a system not having X11 installed. ( Mesa *is* the only open source GL

[Mesa-dev] [PATCH] scons: Ensure platform map is consistent

2012-02-06 Thread Alexander von Gluck IV
* This matches 5481b5a and makes sure the platform translation maps match --- scons/gallium.py |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index eed89cf..443e801 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -165,8

[Mesa-dev] [PATCH] scons: Ensure platform map is consistent

2012-02-06 Thread Alexander von Gluck IV
* This matches 5481b5a and makes sure the platform translation maps match --- scons/gallium.py |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index eed89cf..443e801 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -165,8

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

2013-10-04 Thread Alexander von Gluck IV
philippe.houd...@free.fr + * Alexander von Gluck IV kallis...@unixzen.com + */ + + +extern C { +#include glapi/glapi.h +#include glapi/glapi_priv.h + +/* + * NOTE: this file portion implements C-based dispatch of the OpenGL entrypoints + * (glAccum, glBegin, etc). + * This code

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

[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

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

2013-10-04 Thread Alexander von Gluck IV
@@ -/** - * - * Copyright 2013 Alexander von Gluck IV kallis...@unixzen.com - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the - * Software), to deal in the Software without restriction

[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

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

2013-10-04 Thread Alexander von Gluck IV
@@ +/* + * 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.h + +#include GLView.h

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 bri...@vmware.com wrote: The series look OK to me. Do you want to add/update any docs/ files? Reviewed-by: Brian Paul bri...@vmware.com Do you need me to push this for you? Nah, I can push it. I'll see if I can add anything meaningful to

[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

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

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

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 curroje...@riseup.net wrote: Kenneth Graunke kenn...@whitecape.org 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 breaks everything on our end

[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 johannesoberm...@gmx.de wrote: Am Montag, 14. Oktober 2013, 16:57:20 schrieb Francisco Jerez: Alexander von Gluck IV kallis...@unixzen.com writes: * As discussed on the mailing list, forced no-rtti breaks C++ public API's

[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

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 johannesoberm...@gmx.de wrote: Am Montag, 14. Oktober 2013, 16:57:20 schrieb Francisco Jerez: Alexander von Gluck IV kallis...@unixzen.com 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-15 Thread Alexander von Gluck IV
: Alexander von Gluck IV kallis...@unixzen.com writes: * 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

[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 johannesoberm...@gmx.de 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

[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

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

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 bri...@vmware.com 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 +++

[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

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

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 airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com 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

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

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 kallis...@unixzen.com 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

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 bri...@vmware.com 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 kallis...@unixzen.com wrote: * This is pretty small and upkeep should be minimal. Can you combine

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 kenn...@whitecape.org wrote: On 11/13/2013 08:47 AM, Alexander von Gluck IV wrote: On Wed, 13 Nov 2013 08:38:59 -0700 Brian Paul bri...@vmware.com wrote: On 11/12/2013 10:49 PM, Alexander von Gluck IV wrote: On Tue, Nov 12, 2013 at 11

[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

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 kallis...@unixzen.com 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

[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

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

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 kallis...@unixzen.com 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 emil.l.veli...@gmail.com 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

[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

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

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 emil.l.veli...@gmail.comwrote: + case PIPE_CAP_ACCELERATED: + return 0; + case PIPE_CAP_VIDEO_MEMORY: { + /* XXX: Do we want to

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 ian.d.roman...@intel.com No driver uses them. They will just be annoying in future patches. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/mesa/drivers/dri/i915/intel_context.c | 15 ++-

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 ian.d.roman...@intel.com No driver uses them. They will just be annoying in future patches. Signed-off-by: Ian Romanick ian.d.roman

[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. We fix this by looking

[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

Re: [Mesa-dev] [PATCH 10/19] auxiliary/os: introduce os_get_total_physical_memory helper function

2014-08-18 Thread Alexander von Gluck IV
On , Emil Velikov wrote: Cc: Alexander von Gluck IV kallis...@unixzen.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/auxiliary/os/os_misc.c | 64 ++ src/gallium/auxiliary/os/os_misc.h | 7 + 2 files changed, 71 insertions

[Mesa-dev] [PATCH 3/3] gallium/target: Add needed mesautil lib to haiku-softpipe

2014-08-19 Thread Alexander von Gluck IV
--- src/gallium/targets/haiku-softpipe/SConscript |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/SConscript b/src/gallium/targets/haiku-softpipe/SConscript index 0381d05..c730fde 100644 ---

[Mesa-dev] [PATCH 1/3] haiku/swrast: Add missing src include search path for missing util/macros.h

2014-08-19 Thread Alexander von Gluck IV
--- src/mesa/drivers/haiku/swrast/SConscript |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/haiku/swrast/SConscript b/src/mesa/drivers/haiku/swrast/SConscript index aef7300..2c25f72 100644 --- a/src/mesa/drivers/haiku/swrast/SConscript +++

[Mesa-dev] [PATCH 2/3] gallium/aux: Fill in Haiku get process name code

2014-08-19 Thread Alexander von Gluck IV
--- src/gallium/auxiliary/os/os_process.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c index 3e060b9..a626228 100644 --- a/src/gallium/auxiliary/os/os_process.c +++

[Mesa-dev] [PATCH 2/2] gallium/targets: Haiku, Fix some improper type warnings

2014-08-21 Thread Alexander von Gluck IV
--- .../targets/haiku-softpipe/GalliumFramebuffer.cpp |2 +- .../targets/haiku-softpipe/SoftwareRenderer.cpp|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp

[Mesa-dev] [PATCH 1/2] gallium/targets: Clean up Haiku softpipe renderer visual

2014-08-21 Thread Alexander von Gluck IV
* Drop creating gl_config first as it's only really used to create the state tracker visual. --- .../targets/haiku-softpipe/GalliumContext.cpp | 196 ++-- .../targets/haiku-softpipe/GalliumContext.h|2 + 2 files changed, 96 insertions(+), 102 deletions(-) diff

Re: [Mesa-dev] [PATCH 1/2] gallium/targets: Clean up Haiku softpipe renderer visual

2014-08-21 Thread Alexander von Gluck IV
On , Alexander von Gluck IV wrote: * Drop creating gl_config first as it's only really used to create the state tracker visual. --- .../targets/haiku-softpipe/GalliumContext.cpp | 196 ++-- .../targets/haiku-softpipe/GalliumContext.h|2 + 2 files changed

[Mesa-dev] Haiku GLTeapot, an example of llvmpipe rendering calls

2014-08-24 Thread Alexander von Gluck IV
I have a feeling the Haiku gallium softpipe driver is doing a lot of extra work resulting in some performance hits. In this example, I have tracing enabled and am running the simple GLTeapot Be demo. http://unixzen.com/patchwork/glteapot-log.txt The terminology should be easy to follow.

Re: [Mesa-dev] [PATCH] glsl: Correct string.h to strings.h

2014-08-27 Thread Alexander von Gluck IV
On , Kenneth Graunke wrote: On Wednesday, August 27, 2014 11:35:06 AM Alexander von Gluck IV wrote: * IEEE Std 1003.1-2001 placed strcasecmp() in strings.h. * On a lot of platforms, strcasecmp is in strings.h and string.h * Technically strcasecmp should be only in strings.h * Haiku decided

[Mesa-dev] [PATCH] glsl: Add strings.h on non-MSC platforms

2014-08-27 Thread Alexander von Gluck IV
* IEEE Std 1003.1-2001 placed strcasecmp() in strings.h. * ISO C99 doesn't mention strcase* in string.h * On all platforms I could find, strcasecmp is in strings.h and string.h as a compatibility layer for software written pre-2001 POSIX * Technically strcasecmp should be only in strings.h and

[Mesa-dev] [PATCH 1/2] gallium/targets: Haiku softpipe, perform better framebuffer validation

2014-08-27 Thread Alexander von Gluck IV
* Check for back left attachment as well * Set and act on pipe format none --- .../targets/haiku-softpipe/GalliumFramebuffer.cpp | 20 +--- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumFramebuffer.cpp

[Mesa-dev] [PATCH 2/2] gallium/targets: Break haiku state_tracker out to own directory

2014-08-27 Thread Alexander von Gluck IV
@@ +/** + * + * Copyright 2009 Artur Wyszynski harak...@gmail.com + * Copyright 2013 Alexander von Gluck IV kallis...@unixzen.com + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * Software), to deal in the Software without

Re: [Mesa-dev] [PATCH 3/4] targets/haiku-softpipe: explicitly prefix sw/hgl header

2014-08-28 Thread Alexander von Gluck IV
On , Emil Velikov wrote: Cc: Alexander von Gluck IV kallis...@unixzen.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/targets/haiku-softpipe/GalliumContext.cpp | 2 +- src/gallium/targets/haiku-softpipe/SConscript | 2 +- 2 files changed, 2 insertions(+), 2

Re: [Mesa-dev] [PATCH 2/2] gallium/targets: Break haiku state_tracker out to own directory

2014-08-28 Thread Alexander von Gluck IV
On , Emil Velikov wrote: On 28/08/14 01:31, Alexander von Gluck IV wrote: Hi Alex, Does that mean that we'll get non-softpipe hgl drivers soon :P Maybe! I'm mostly cleaning all of this up in preperation for work on a haiku-intel target on my github. Not sure if it will go anywhere, but I

[Mesa-dev] [PATCH 2/2] st/hgl: Move st_visual create/destroy into hgl state_tracker

2014-08-29 Thread Alexander von Gluck IV
--- src/gallium/state_trackers/hgl/hgl.c | 103 +++- src/gallium/state_trackers/hgl/hgl_context.h |4 + .../targets/haiku-softpipe/GalliumContext.cpp | 102 +-- .../targets/haiku-softpipe/GalliumContext.h|2 - 4 files

[Mesa-dev] [PATCH 1/2] st/hgl: Move st_manager create/destroy into hgl state_tracker

2014-08-29 Thread Alexander von Gluck IV
--- src/gallium/state_trackers/hgl/hgl.c | 50 +++- src/gallium/state_trackers/hgl/hgl_context.h |5 ++ .../targets/haiku-softpipe/GalliumContext.cpp | 32 ++--- 3 files changed, 58 insertions(+), 29 deletions(-) diff --git

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

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

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

[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

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

2014-12-09 Thread Alexander von Gluck IV
From: Adrien Destugues pulkoma...@gmail.com * 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 ---

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 kallist...@gmail.com 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

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

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

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle adrian.arroyoca...@gmail.com --- 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

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

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- 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

[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 adrian.arroyoca...@gmail.com --- 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

[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 adrian.arroyoca...@gmail.com * 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

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

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov emil.l.veli...@gmail.com 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

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

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- 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 ---

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

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

[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 adrian.arroyoca...@gmail.com --- include/EGL/eglplatform.h | 10 ++- src/SConscript |3 +- src/egl/drivers/dri2/SConscript | 24 + src/egl/drivers/dri2/platform_haiku.cpp | 42

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

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle adrian.arroyoca...@gmail.com * 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

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

2014-12-22 Thread Alexander von Gluck IV
From: Adrián Arroyo Calle adrian.arroyoca...@gmail.com * 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

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

2014-12-22 Thread Alexander von Gluck IV
From: Emil Velikov emil.l.veli...@gmail.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- 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

[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 adrian.arroyoca...@gmail.com --- 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

[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

[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

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

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

[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

[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

[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
/src/gallium/winsys/sw/hgl/hgl_sw_winsys.c @@ -1,7 +1,7 @@ /** * * Copyright 2009 Artur Wyszynski harak...@gmail.com - * Copyright 2013 Alexander von Gluck IV kallis...@unixzen.com + * Copyright 2013-2014 Alexander von Gluck

  1   2   >