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
---
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
..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
---
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/
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
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
..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
---
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
---
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/
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
---
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
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
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 insulated via the C-based Haiku state tracker.
As any future hardware support in Haiku will be gallium
based, l
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
On , Emil Velikov wrote:
Cc: Alexander von Gluck IV
Signed-off-by: Emil Velikov
---
src/gallium/auxiliary/os/os_misc.c | 64
++
src/gallium/auxiliary/os/os_misc.h | 7 +
2 files changed, 71 insertions(+)
The Haiku portion of this patch looks good
---
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
--- a/src/gallium/targets/haiku-softpipe/SConscrip
---
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
---
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
+++ b/src/gallium/auxili
---
.../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
* 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
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
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
* 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
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
* 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
* 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
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
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
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
---
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
---
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
---
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
---
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
---
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
---
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
---
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
---
.../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
---
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
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
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
---
include/meson.build| 8 +
meson.build| 18 +++---
src/egl/meson.build| 33 +
src/gallium/meson.build| 9 +
src/gallium/state_trackers/hgl/meson.buil
---
include/meson.build| 8 +
meson.build| 18 +++---
src/egl/meson.build| 35 +-
src/gallium/meson.build| 9 +
src/gallium/state_trackers/hgl/meson.bui
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 +++
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
---
include/meson.build| 8 +
meson.build| 18 +++
src/egl/meson.build| 34 -
src/gallium/meson.build| 9 ++
src/gallium/state_trackers/hgl/meso
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
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
---
include/meson.build| 8 +
meson.build| 16 +++---
src/egl/meson.build| 36 +++---
src/gallium/meson.build| 9 ++
src/gallium/state_trackers/hgl/meso
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
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
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(-)
---
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
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__
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
---
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
On Tue, 14 Aug 2012 12:59:42 -0700
Matt Turner wrote:
> Cc: Jeremy Huddleston
> ---
> 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 project
in town... lets keep a le
* 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 +16
* 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 +16
* 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 b/sco
>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 chan
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,
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-20
101 - 162 of 162 matches
Mail list logo