Re: Moving code around, post classic

2021-12-07 Thread Alexander von Gluck IV
December 6, 2021 5:51 PM, "Dylan Baker" wrote: > 4. What to do about the src/loader, src/glx, src/egl, src/mapi, > src/glapi > > These are all part of OpenGL, but not really part of gallium, but if > we don't move src/gallium/* to src/ does it make sense to leave them > in the root? > You can

Re: [Mesa-dev] Rust drivers in Mesa

2020-10-15 Thread Alexander von Gluck IV
October 1, 2020 8:36 PM, "Alyssa Rosenzweig" wrote: > Hi all, > > Recently I've been thinking about the potential for the Rust programming > language in Mesa. Rust bills itself a safe system programming language > with comparable performance to C [0], which is a naturally fit for > graphics driv

[Mesa-dev] [PATCH 2/2] util/u_thread: Fix build under Haiku

2020-01-08 Thread Alexander von Gluck IV
From: X512 --- src/util/u_thread.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/util/u_thread.h b/src/util/u_thread.h index 6fc89099fec..5bb06608fc9 100644 --- a/src/util/u_thread.h +++ b/src/util/u_thread.h @@ -40,6 +40,10 @@ #endif #endif +#ifdef __HAIKU__

[Mesa-dev] [PATCH 1/2] haiku/hgl: Fix build via header reordering

2020-01-08 Thread Alexander von Gluck IV
--- src/gallium/state_trackers/hgl/hgl_context.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/hgl/hgl_context.h b/src/gallium/state_trackers/hgl/hgl_context.h index c5995f1cd2b..e2ebfbad4bc 100644 --- a/src/gallium/state_trackers/hgl/hgl_con

Re: [Mesa-dev] [PATCH 1/2] haiku/hgl: Fix build via header reordering

2020-01-08 Thread Alexander von Gluck IV
Oh.. lol. I just realized mesa is doing PR's now in gitlab and i'm being old-fashion. January 8, 2020 7:04 PM, "Alexander von Gluck IV" wrote: > --- > src/gallium/state_trackers/hgl/hgl_context.h | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-)

[Mesa-dev] [PATCH] haiku: Fix hgl dispatch build. Tested under meson/scons.

2019-03-30 Thread Alexander von Gluck IV
--- src/hgl/GLDispatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hgl/GLDispatcher.h b/src/hgl/GLDispatcher.h index 8aaf58a6237..7a4bcd33299 100644 --- a/src/hgl/GLDispatcher.h +++ b/src/hgl/GLDispatcher.h @@ -15,7 +15,7 @@ #include #include -#include "glhead

[Mesa-dev] [PATCH 2/2] egl/drivers/haiku: Fix reference to disp vs dpy

2018-12-27 Thread Alexander von Gluck IV
--- src/egl/drivers/haiku/egl_haiku.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index a9c5cf8d29..d4b046c79b 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_hai

[Mesa-dev] [PATCH 1/2] egl/egldevice: Fix broken reference to dev->device without LIBDRM

2018-12-27 Thread Alexander von Gluck IV
--- src/egl/main/egldevice.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/egl/main/egldevice.c b/src/egl/main/egldevice.c index 4878039be0..96042f4c5c 100644 --- a/src/egl/main/egldevice.c +++ b/src/egl/main/egldevice.c @@ -211,7 +211,11 @@ _eglDeviceSupports(_EGLDe

[Mesa-dev] [PATCH] gallium/auxiliary: Extern "c" fixes.

2018-07-27 Thread Alexander von Gluck IV
Used by C++ code such as Haiku's renderer. --- src/gallium/auxiliary/driver_ddebug/dd_public.h | 8 src/gallium/auxiliary/driver_noop/noop_public.h | 8 .../auxiliary/target-helpers/inline_debug_helper.h | 9 - 3 files changed, 24 insertions(+), 1

Re: [Mesa-dev] [PATCH 3/3] meson: Only GLX_USE_TLS when glx is in use

2018-02-19 Thread Alexander von Gluck IV
February 19, 2018 3:00 PM, "Emil Velikov" wrote: > On 19 February 2018 at 18:40, Alexander von Gluck IV >> Thanks to Dylan for figuring this one out. >> >> This was discussed previously on the ML >> " >> This can be applied to all GLX implementati

Re: [Mesa-dev] [PATCH 3/3] meson: Only GLX_USE_TLS when glx is in use

2018-02-19 Thread Alexander von Gluck IV
February 19, 2018 12:25 PM, "Alexander von Gluck IV" wrote: > --- > meson.build | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/meson.build b/meson.build > index 6fc7ec7fc9..54572a5bb8 100644 > --- a/meson.build > +++ b/meson.build

[Mesa-dev] [PATCH 1/3] hgl: Correct glheader.h context inline with glx

2018-02-19 Thread Alexander von Gluck IV
--- src/hgl/GLDispatcher.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hgl/GLDispatcher.h b/src/hgl/GLDispatcher.h index 8aaf58a623..7a4bcd3329 100644 --- a/src/hgl/GLDispatcher.h +++ b/src/hgl/GLDispatcher.h @@ -15,7 +15,7 @@ #include #include -#include "glheader

[Mesa-dev] [PATCH 2/3] haiku-softpipe: Build fix, drop un-needed flip

2018-02-19 Thread Alexander von Gluck IV
--- .../targets/haiku-softpipe/GalliumContext.cpp | 25 -- 1 file changed, 25 deletions(-) diff --git a/src/gallium/targets/haiku-softpipe/GalliumContext.cpp b/src/gallium/targets/haiku-softpipe/GalliumContext.cpp index 0356f65417..3922fa61b2 100644 --- a/src/gallium/tar

[Mesa-dev] [PATCH 3/3] meson: Only GLX_USE_TLS when glx is in use

2018-02-19 Thread Alexander von Gluck IV
--- meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 6fc7ec7fc9..54572a5bb8 100644 --- a/meson.build +++ b/meson.build @@ -331,7 +331,6 @@ if with_egl and not (with_platform_drm or with_platform_surfaceless) endif endif -pre

[Mesa-dev] [PATCH] meson: Add Haiku platform support v4

2018-02-16 Thread Alexander von Gluck IV
--- include/meson.build| 8 + meson.build| 16 +++--- src/egl/meson.build| 36 +++--- src/gallium/meson.build| 9 ++ src/gallium/state_trackers/hgl/meso

Re: [Mesa-dev] [PATCH] meson: Add Haiku platform support v3

2018-02-16 Thread Alexander von Gluck IV
andwidth. > There's a couple of comments inline, but nothing major. > > On 16 February 2018 at 00:32, Alexander von Gluck IV > wrote: > >> --- a/meson.build >> +++ b/meson.build >> >> gl_priv_libs = [] >> -if dep_thread.found() >> +i

Re: [Mesa-dev] [PATCH] meson: Add Haiku platform support

2018-02-15 Thread Alexander von Gluck IV
February 15, 2018 6:36 PM, "Dylan Baker" wrote: > Quoting Alexander von Gluck IV (2018-02-15 16:04:37) > >> I'm actually not 100% sure here. I have missing symbols at link without both >> included. More investigation needed on my part. > > That may be my

[Mesa-dev] [PATCH] meson: Add Haiku platform support v3

2018-02-15 Thread Alexander von Gluck IV
--- include/meson.build| 8 + meson.build| 18 +++ src/egl/meson.build| 34 - src/gallium/meson.build| 9 ++ src/gallium/state_trackers/hgl/meso

Re: [Mesa-dev] [PATCH] meson: Add Haiku platform support

2018-02-15 Thread Alexander von Gluck IV
February 15, 2018 5:37 PM, "Dylan Baker" wrote: > Quoting Alexander von Gluck IV (2018-02-15 13:12:40) > >> --- >> include/meson.build | 8 + >> meson.build | 18 +++--- >> src/egl/meson.build | 33 + >> src/gallium/meson.bui

Re: [Mesa-dev] [PATCH] meson: Add Haiku platform support v2

2018-02-15 Thread Alexander von Gluck IV
February 15, 2018 3:22 PM, "Alexander von Gluck IV" wrote: > --- > include/meson.build | 8 + > meson.build | 18 +++--- > src/egl/meson.build | 35 +- > src/gallium/meson.build | 9 + > src/gallium/state_trackers/hgl/meson.build | 41 +++

[Mesa-dev] [PATCH] meson: Add Haiku platform support v2

2018-02-15 Thread Alexander von Gluck IV
--- include/meson.build| 8 + meson.build| 18 +++--- src/egl/meson.build| 35 +- src/gallium/meson.build| 9 + src/gallium/state_trackers/hgl/meson.bui

[Mesa-dev] [PATCH] meson: Add Haiku platform support

2018-02-15 Thread Alexander von Gluck IV
--- include/meson.build| 8 + meson.build| 18 +++--- src/egl/meson.build| 33 + src/gallium/meson.build| 9 + src/gallium/state_trackers/hgl/meson.buil

[Mesa-dev] [PATCH 2/2] c11/haiku: Define missing timespec_get on Haiku

2017-11-12 Thread Alexander von Gluck IV
--- include/c11/threads_posix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h index 7bf6a0f6ef..2d7ac1326d 100644 --- a/include/c11/threads_posix.h +++ b/include/c11/threads_posix.h @@ -382,7 +382,7 @@ tss_set(tss_t ke

[Mesa-dev] [PATCH 1/2] egl/haiku: Correct invalid void* conversion in calloc

2017-11-12 Thread Alexander von Gluck IV
--- src/egl/drivers/haiku/egl_haiku.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 237cebf056..287760661e 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_hai

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

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

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

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

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

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

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

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

[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

Re: [Mesa-dev] [PATCH] mesa/driver/haiku: Drop Mesa swrast renderer

2015-05-18 Thread Alexander von Gluck IV
On , Emil Velikov wrote: Hi Alexander, On 17 May 2015 at 13:49, Alexander von Gluck IV wrote: This just created extra upkeep and the push to move extern C's into mesa code would mean a large number of extern's in core Mesa driver interfaces. The Haiku Gallium renderers are mostly

[Mesa-dev] [PATCH] mesa/driver/haiku: Drop Mesa swrast renderer

2015-05-17 Thread Alexander von Gluck IV
* Copyright 2006-2012, Haiku, Inc. All rights reserved. - * Distributed under the terms of the MIT License. - * - * Authors: - * Jérôme Duval, ko...@users.berlios.de - * Philippe Houdoin, philippe.houd...@free.fr - * Artur Wyszynski, harak...@gmail.com - * Ale

[Mesa-dev] Drop Haiku swrast code?

2015-05-16 Thread Alexander von Gluck IV
Good morning, I'm pondering dropping the Haiku software rasterization code. (src/mesa/drivers/haiku/swrast/) The Haiku extern "C" gallium changes are complete and llvmpipe is once again compiling + working. The Mesa based swrast code however doesn't have a C state_tracker to hide C++ code behi

[Mesa-dev] [PATCH 5/5] target/haiku-softpipe: Move api init into st code

2015-05-15 Thread Alexander von Gluck IV
We also reduce the amount of need-to-know information about st_api to require one less extern "C" in st_manager.h --- .../targets/haiku-softpipe/GalliumContext.cpp | 23 +++ .../targets/haiku-softpipe/GalliumContext.h|6 + 2 files changed, 10 insertions(+), 1

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

2015-05-15 Thread Alexander von Gluck IV
--- src/gallium/auxiliary/postprocess/postprocess.h |9 + src/gallium/auxiliary/util/u_tests.h|8 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/postprocess/postprocess.h b/src/gallium/auxiliary/postprocess/postprocess.h

[Mesa-dev] [PATCH 2/5] gallium/drivers: Add extern "C" wrappers to public entry

2015-05-15 Thread Alexander von Gluck IV
--- src/gallium/drivers/llvmpipe/lp_public.h |8 src/gallium/drivers/rbug/rbug_public.h |8 src/gallium/drivers/softpipe/sp_public.h |8 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_public.h b/src/gallium/

[Mesa-dev] [PATCH 4/5] st/hgl: Move st_api creation to st and extern "C" it

2015-05-15 Thread Alexander von Gluck IV
..1e804c0 100644 --- a/src/gallium/state_trackers/hgl/hgl.c +++ b/src/gallium/state_trackers/hgl/hgl.c @@ -7,8 +7,7 @@ * Alexander von Gluck IV, kallis...@unixzen.com */ - -#include "GLView.h" +#include "hgl_context.h" #include @@ -17,8 +16,9 @@ #include "u

[Mesa-dev] [PATCH 3/5] winsys/hgl: Add needed extern "C" to hgl winsys

2015-05-15 Thread Alexander von Gluck IV
--- src/gallium/winsys/sw/hgl/hgl_sw_winsys.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h index bdcddfb..a81f890 100644 --- a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h +++ b/sr

Re: [Mesa-dev] [PATCH 5/5] gallium/targets: Move api init into st code

2015-05-15 Thread Alexander von Gluck IV
can-do. I actually think I spotted one more extern "C" reduction I can do. Thanks! -- Alex On , Brian Paul wrote: Let's play it safe. Update your patch series and re-post it to the list for a final review, please. -Brian On 05/14/2015 06:01 PM, Alexander von Gluck I

Re: [Mesa-dev] [PATCH 5/5] gallium/targets: Move api init into st code

2015-05-14 Thread Alexander von Gluck IV
ndo it) Thanks! -- Alex On , Brian Paul wrote: In the past, you used the prefix "target/haiku-softpipe:" on changes to this code. I'd suggest using that again here. With these changes, Reviewed-by: Brian Paul On 05/14/2015 04:39 PM, Alexander von Gluck IV wrote: We also red

[Mesa-dev] [PATCH 4/5] gallium/st: Move st_api creation to st and extern "C" it

2015-05-14 Thread Alexander von Gluck IV
..1e804c0 100644 --- a/src/gallium/state_trackers/hgl/hgl.c +++ b/src/gallium/state_trackers/hgl/hgl.c @@ -7,8 +7,7 @@ * Alexander von Gluck IV, kallis...@unixzen.com */ - -#include "GLView.h" +#include "hgl_context.h" #include @@ -17,8 +16,9 @@ #include "u

[Mesa-dev] [PATCH 2/5] gallium/drivers: Add extern "C" wrappers to public entry

2015-05-14 Thread Alexander von Gluck IV
--- src/gallium/drivers/llvmpipe/lp_public.h |8 src/gallium/drivers/rbug/rbug_public.h |8 src/gallium/drivers/softpipe/sp_public.h |8 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_public.h b/src/gallium/

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

[Mesa-dev] [PATCH 5/5] gallium/targets: Move api init into st code

2015-05-14 Thread Alexander von Gluck IV
We also reduce the amount of need-to-know information about st_api to require one less extern "C" in st_manager.h --- .../targets/haiku-softpipe/GalliumContext.cpp | 23 +++ .../targets/haiku-softpipe/GalliumContext.h|5 +--- 2 files changed, 10 insertions(+), 18

[Mesa-dev] [PATCH 3/5] gallium/winsys: Add needed extern "C" to hgl winsys

2015-05-14 Thread Alexander von Gluck IV
--- src/gallium/winsys/sw/hgl/hgl_sw_winsys.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h b/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h index bdcddfb..a81f890 100644 --- a/src/gallium/winsys/sw/hgl/hgl_sw_winsys.h +++ b/sr

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

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

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 mes

[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

[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

[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] 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 a/src/gallium/st

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

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 anywh

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 Signed-off-by: Emil Velikov --- src/gallium/targets/haiku-softpipe/GalliumContext.cpp | 2 +- src/gallium/targets/haiku-softpipe/SConscript | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/targets

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

2014-08-27 Thread Alexander von Gluck IV
p new file mode 100644 index 000..ef81edc --- /dev/null +++ b/src/gallium/state_trackers/hgl/bitmap_wrapper.cpp @@ -0,0 +1,146 @@ +/********** + * + * Copyright 2009 Artur Wyszynski + * Copyright 2013 Alexander von Gluck IV + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this so

[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 b/src/gallium/ta

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

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 to

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

2014-08-27 Thread Alexander von Gluck IV
* 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 to stop providing strcasecmp in string.h as it is a crutch to code looking in the wrong place. --- src/gl

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

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 ch

[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

[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 b/src/gallium/targets/haiku-softpipe/GalliumFram

[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 +++ b/src/mesa/dri

  1   2   3   >