[Mesa-dev] [PATCH] Suppress any "libGL:..." warnings when LIBGL_DEBUG == "quiet"

2014-08-26 Thread Johannes Obermayr
From: Stefan Dirsch Let's handle LIBGL_DEBUG env. variable in Mesa in a consistent way. Fixes: https://bugzilla.novell.com/show_bug.cgi?id=892896 --- To: mesa-dev@lists.freedesktop.org Cc: "10.3" openSUSE maintainers: Why can't you forward your applied u_* patches to upstream

[Mesa-dev] [PATCH] Fix zero-division in llvmpipe_texture_layout()

2014-06-07 Thread Johannes Obermayr
From: Takashi Iwai Fix the crash of "gnome-control-center info" invocation on QEMU where zero height is passed at init. Fixes: https://bugzilla.novell.com/show_bug.cgi?id=879462 Signed-off-by: Takashi Iwai --- To: mesa-dev@lists.freedesktop.org Cc: "10.2" Takashi: Please send also a proper pa

Re: [Mesa-dev] [PATCH 3/3] pipe-loader: add pipe loader for freedreno/msm

2014-02-10 Thread Johannes Obermayr
There should be one called pipe_freedreno and the pipe driver loader should support sth. like: if ((strcmp(dev->driver_name, "kgsl") == 0) || (strcmp(dev->driver_name, "msm") == 0)) dev->driver_name = "freedreno"; in pipe_loader_find_module ... _

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

2013-10-17 Thread Johannes Obermayr
Am Mittwoch, 16. Oktober 2013, 16:58:53 schrieb 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: > &g

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

2013-10-16 Thread Johannes Obermayr
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, 15. Oktober 2013, 12:19:40 schrieben Sie: > > >> On Tue, 15 Oct 2013 17:

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

2013-10-15 Thread Johannes Obermayr
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: > > > Alexander von Gluck IV writes: > > > > > > > * As discusse

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

2013-10-15 Thread Johannes Obermayr
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 > > API's such as the Haiku C++ libGL.so > > * -fno-rtti *can* be still set however > > instead of blindly forcing -

Re: [Mesa-dev] The long way to a faster build with shared libs and some fixes ...

2013-09-12 Thread Johannes Obermayr
radeonsi_dri.so master: Symbol table '.dynsym' contains 556 entries: after patch series: Symbol table '.dynsym' contains 153 entries: > > On Thu, Sep 12, 2013 at 2:41 PM, Johannes Obermayr > wrote: > > I see current situation is better: > >

Re: [Mesa-dev] The long way to a faster build with shared libs and some fixes ...

2013-09-12 Thread Johannes Obermayr
I see current situation is better: Symbol table '.dynsym' contains ... master: libdricore: 3675 i965_dri:398 after [PATCH 10/21]: classic drivers: libmesacore: 839 libmesadri: 348 total: 1187 i965_dri:397 gallium drivers: libgallium: 833 libmesacore

Re: [Mesa-dev] The long way to a faster build with shared libs and some fixes ...

2013-09-11 Thread Johannes Obermayr
or testing. > > Thanks, > Tom > > On Thu, Sep 12, 2013 at 12:32:38AM +0200, Johannes Obermayr wrote: > > [PATCH 01/21] ilo: Fix out-of-tree build. > > > > [PATCH 02/21] Suppress clang's warnings about unused CFLAGS and CXXFLAGS. > > > > [PAT

[Mesa-dev] [PATCH 21/21] clover: Force gcc and g++ to fix clang builds.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 6 ++ src/gallium/state_trackers/clover/Makefile.am | 8 2 files changed, 14 insertions(+) diff --git a/configure.ac b/configure.ac index 2381cf0..491b8c3 100644 --- a/configure.ac +++ b/configure.ac @@ -1989,6 +1989,12 @@ cxxflags=

[Mesa-dev] [PATCH 20/21] freedreno: One Makefile.am with a Makefile.sources is enough.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 2 -- src/gallium/drivers/freedreno/Makefile.am | 18 +++ src/gallium/drivers/freedreno/Makefile.sources | 43 ++ src/gallium/drivers/freedreno/a2xx/Makefile.am | 27 src/gallium/drivers/fre

[Mesa-dev] [PATCH 17/21] gbm: Get rid of libgbm_dri.la.

2013-09-11 Thread Johannes Obermayr
--- src/gbm/Makefile.am | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gbm/Makefile.am b/src/gbm/Makefile.am index 440d4e0..4859e7c 100644 --- a/src/gbm/Makefile.am +++ b/src/gbm/Makefile.am @@ -28,18 +28,15 @@ libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wa

[Mesa-dev] [PATCH 19/21] freedreno: Make print_sequence a macro to fix clang.

2013-09-11 Thread Johannes Obermayr
--- src/gallium/drivers/freedreno/a3xx/disasm-a3xx.c | 24 +++- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/freedreno/a3xx/disasm-a3xx.c b/src/gallium/drivers/freedreno/a3xx/disasm-a3xx.c index 4db095f..ed76a78 100644 --- a/src/gallium/d

[Mesa-dev] [PATCH 14/21] gallium/drivers: Build libs -shared.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 20 + src/gallium/drivers/Makefile.am | 28 +++- src/gallium/drivers/freedreno/Makefile.am| 10 ++--- src/gallium/drivers/freedreno/freedreno_screen.c | 2 ++ src/gallium/driver

[Mesa-dev] [PATCH 18/21] i915: Conditionally build an i915g driver instead of two i915 drivers.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 5 + src/gallium/targets/dri-i915/Makefile.am | 15 +++ src/gallium/targets/dri-i915/target.c| 2 +- src/gallium/targets/egl-static/Makefile.am | 4 +++- src/gallium/targets/egl-static/egl.c | 2 +- src/ga

[Mesa-dev] [PATCH 15/21] vdpau, xvmc: Add install-data-hooks to remove unneccessary symlinks.

2013-09-11 Thread Johannes Obermayr
libvdpau_*.so.1 and libXvMC*.so libs are dlopened by wrappers. So only those libs should be installed. --- src/gallium/targets/vdpau-nouveau/Makefile.am | 5 + src/gallium/targets/vdpau-r300/Makefile.am | 5 + src/gallium/targets/vdpau-r600/Makefile.am | 5 + src/gallium/targe

[Mesa-dev] [PATCH 16/21] glx: Get rid of libglx.la.

2013-09-11 Thread Johannes Obermayr
--- src/glx/Makefile.am | 15 --- src/glx/tests/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am index b855be9..1914467 100644 --- a/src/glx/Makefile.am +++ b/src/glx/Makefile.am @@ -19,7 +19,7 @@ # FR

[Mesa-dev] [PATCH 13/21] Makefile.am: s:-no-undefined:-Wl, --no-undefined to make it work.

2013-09-11 Thread Johannes Obermayr
--- src/gallium/targets/dri-freedreno/Makefile.am | 2 +- src/gallium/targets/dri-i915/Makefile.am | 2 +- src/gallium/targets/dri-ilo/Makefile.am| 2 +- src/gallium/targets/dri-nouveau/Makefile.am| 2 +- src/gallium/targets/dri-r300/Makefile.am | 2 +- src/gallium/ta

[Mesa-dev] [PATCH 11/21] Install all internal shared libs to $(libdir)/mesa-$VERSION.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 12 +--- src/egl/drivers/dri2/egl_dri2.c| 4 --- src/gallium/auxiliary/Makefile.am | 14 +- src/gallium/drivers/llvmpipe/Makefile.am | 2 +- src/gallium/targets/egl-static/Makefile.am | 6 ++-

[Mesa-dev] [PATCH 12/21] Also do it for egl_gallium.so, pipe_*.so and gbm_gallium_drm.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 7 --- src/egl/main/Makefile.am | 2 +- src/gallium/state_trackers/clover/Makefile.am | 2 +- src/gallium/targets/egl-static/Makefile.am| 3 +-- src/gallium/targets/gbm/Makefile.am | 6 ++ src/galli

[Mesa-dev] [PATCH 08/21] Drop last parts of compatibility for the old Mesa build system.

2013-09-11 Thread Johannes Obermayr
--- src/egl/main/Makefile.am | 7 --- src/gallium/targets/dri-freedreno/Makefile.am | 7 --- src/gallium/targets/dri-i915/Makefile.am | 6 -- src/gallium/targets/dri-ilo/Makefile.am| 7 --- src/gallium/targets/dri-nouveau/Makefile.am| 6

[Mesa-dev] [PATCH 06/21] Drop support for --enable-static / --disable-shared.

2013-09-11 Thread Johannes Obermayr
--- configure.ac | 100 ++- src/egl/main/Makefile.am | 3 +- src/gallium/targets/egl-static/Makefile.am | 2 +- src/gallium/targets/gbm/Makefile.am | 2 +- src/gallium/targets/opencl/Makefile.am |

[Mesa-dev] The long way to a faster build with shared libs and some fixes ...

2013-09-11 Thread Johannes Obermayr
[PATCH 01/21] ilo: Fix out-of-tree build. [PATCH 02/21] Suppress clang's warnings about unused CFLAGS and CXXFLAGS. [PATCH 03/21] configure.ac: Save user {C,CXX}FLAGS and append them at end. [PATCH 04/21] radeon: Build and use libradeon the right way. Link libradeon only once in eg

[Mesa-dev] [PATCH 05/21] gallium/targets: Make use of prebuilt libdricommon.la.

2013-09-11 Thread Johannes Obermayr
--- src/gallium/targets/dri-freedreno/Makefile.am | 10 +++--- src/gallium/targets/dri-i915/Makefile.am | 7 ++- src/gallium/targets/dri-ilo/Makefile.am | 7 ++- src/gallium/targets/dri-nouveau/Makefile.am | 7 ++- src/gallium/targets/dri-r300/Makefile.am | 7

[Mesa-dev] [PATCH 04/21] radeon: Build and use libradeon the right way.

2013-09-11 Thread Johannes Obermayr
Better build system integration for: http://cgit.freedesktop.org/mesa/mesa/commit/?id=91a160b http://cgit.freedesktop.org/mesa/mesa/commit/?id=5b2855b The EGL runtime issue should be fixed now. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64810 --- configure.ac

[Mesa-dev] [PATCH 01/21] ilo: Fix out-of-tree build.

2013-09-11 Thread Johannes Obermayr
--- src/gallium/drivers/ilo/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/ilo/Makefile.am b/src/gallium/drivers/ilo/Makefile.am index 10b3da3..33f2045 100644 --- a/src/gallium/drivers/ilo/Makefile.am +++ b/src/gallium/drivers/ilo/Makefile.am @

[Mesa-dev] [PATCH 03/21] configure.ac: Save user {C, CXX}FLAGS and append them at end.

2013-09-11 Thread Johannes Obermayr
This way the user has the privilege of last decision and so the option to build an optimized debug build again. --- configure.ac | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d280e38..e3d323d 100644 --- a/configure.ac +++ b/c

[Mesa-dev] [PATCH 02/21] Suppress clang's warnings about unused CFLAGS and CXXFLAGS.

2013-09-11 Thread Johannes Obermayr
Reviewed-by: Kenneth Graunke --- configure.ac | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index ca9228c..d280e38 100644 --- a/configure.ac +++ b/configure.ac @@ -1969,6 +1969,12 @@ dnl Restore LDFLAGS and CPPFLAGS LDFLAGS="$_SAVE_LDFLAGS" CPPFLAGS="$_SA

[Mesa-dev] [PATCH 2/2] wayland-egl.pc requires wayland.pc.

2013-09-10 Thread Johannes Obermayr
From: Torsten Duwe Mesa provides the wayland-egl libs and the pkgconfig file, but the headers originate from the wayland package. Ensure everything matches, by requiring application builds to look at the wayland headers as well. Signed-off-by: Torsten Duwe Signed-off-by: Johannes Obermayr

[Mesa-dev] [PATCH 1/2] st/gbm: Add $(WAYLAND_CFLAGS) for HAVE_EGL_PLATFORM_WAYLAND.

2013-09-10 Thread Johannes Obermayr
--- src/gallium/state_trackers/gbm/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/gbm/Makefile.am b/src/gallium/state_trackers/gbm/Makefile.am index 70c5f77..b113d0d 100644 --- a/src/gallium/state_trackers/gbm/Makefile.am +++ b/src/gallium/state_tracker

[Mesa-dev] [PATCH] Move nv30, nv50 and nvc0 to nouveau.

2013-09-05 Thread Johannes Obermayr
It only builds one libnouveau library, a bit faster compile times on -jX and all things which go into it are better structured Am Dienstag, 20. August 2013, 23:27:59 schrieb Johannes Obermayr an Christoph Bumiller: > Hallo Christoph, > > anbei der Patch zur Umstrukturierung (entpackt

[Mesa-dev] [PATCH] swrast: Fix crash in sPriv->swrast_loader->getImage().

2013-09-01 Thread Johannes Obermayr
From: Egbert Eich When glXBindTexImageEXT is called and SWrast is used there will be a crash when sPriv->swrast_loader->getImage() is called from swrastSetTexBuffer2(). Reason: no memory has been allocated for the destination thus texImage->Data is NULL. Call ctx->Driver.TexImage2D() to initializ

Re: [Mesa-dev] [PATCH 1/2] build libgallium shared by default.

2013-03-20 Thread Johannes Obermayr
Am Dienstag, 19. März 2013, 21:36:47 schrieb Andreas Boll: > 2013/3/19 Johannes Obermayr : > > Am Montag, 18. März 2013, 15:38:31 schrieb Maarten Lankhorst: > >> This is one of the 2 patches used in ubuntu for decreasing size of mesa > >> build. > >> > &g

Re: [Mesa-dev] [PATCH 1/2] build libgallium shared by default.

2013-03-19 Thread Johannes Obermayr
Am Montag, 18. März 2013, 15:38:31 schrieb Maarten Lankhorst: > This is one of the 2 patches used in ubuntu for decreasing size of mesa build. > > The other one is more hacky, and links libmesagallium into libgallium, > and then links libgallium against libdricore too for minimal duplication. >

Re: [Mesa-dev] [PATCH 2/3] configure.ac: Force use of LLVM shared libs with --enable-opencl

2013-01-21 Thread Johannes Obermayr
Am Freitag, 18. Januar 2013, 17:58:27 schrieben Sie: > From: Tom Stellard > > If we build clover with LLVM static libraries, then clover and also each > pipe_*.so driver that is built will contain their own static copy of > LLVM. The recent automake changes have uncovered a problem where > the p

[Mesa-dev] [PATCHv2] xmlpool: Fix out-of-tree builds.

2013-01-12 Thread Johannes Obermayr
--- I found more on gallium ... --- src/gallium/state_trackers/dri/drm/Makefile.am |1 + src/gallium/state_trackers/dri/sw/Makefile.am |1 + src/gallium/targets/dri-i915/Makefile.am|1 + src/gallium/targets/dri-nouveau/Makefile.am |1 + src/gallium/targets/dri-r300/M

Re: [Mesa-dev] [PATCH 04/11] Drop last parts of compatibility for the old Mesa build system.

2013-01-12 Thread Johannes Obermayr
Am Samstag, 12. Januar 2013, 17:42:17 schrieb Andreas Boll: > 2013/1/12 Kenneth Graunke : > > On 01/11/2013 06:23 PM, Johannes Obermayr wrote: > >> > >> diff --git a/src/egl/main/Makefile.am b/src/egl/main/Makefile.am > >> index ca5257a..61192d6 100644

[Mesa-dev] [PATCH] xmlpool: Fix out-of-tree builds.

2013-01-12 Thread Johannes Obermayr
--- src/mesa/drivers/dri/common/xmlpool/Makefile.am |2 +- src/mesa/drivers/dri/i915/Makefile.am |1 + src/mesa/drivers/dri/i965/Makefile.am |1 + src/mesa/drivers/dri/r200/Makefile.am |1 + src/mesa/drivers/dri/radeon/Makefile.am |1 + 5 D

[Mesa-dev] [PATCH] nv50/nvc0: Build codegen in nv50.

2013-01-12 Thread Johannes Obermayr
This is required to make libnv50 independent of libnvc0. --- src/gallium/drivers/nv50/Makefile.sources | 12 +++- src/gallium/drivers/nv50/nv50_miptree.c| 32 ++-- src/gallium/drivers/nv50/nv50_resource.h |3 +- src/gallium/drivers/nvc0/Ma

Re: [Mesa-dev] [PATCH 05/11] gallium/auxiliary: Build libgallium shared.

2013-01-12 Thread Johannes Obermayr
Am Samstag, 12. Januar 2013, 13:34:34 schrieb Chia-I Wu: > On Sat, Jan 12, 2013 at 10:23 AM, Johannes Obermayr > wrote: > > diff --git a/src/gallium/auxiliary/Makefile.am > > b/src/gallium/auxiliary/Makefile.am > > index a4eee47..21b3c6b 100644 > > --- a/src

[Mesa-dev] [PATCH 11/11] r200: Fix probable thinko in r200EmitArrays

2013-01-11 Thread Johannes Obermayr
From: Adam Jackson Effectively this path would always assert. Move the break statement to the (probable) intended place. Note: This is a candidate for the stable branches. Signed-off-by: Adam Jackson --- src/mesa/drivers/dri/r200/r200_maos_arrays.c |3 ++- 1 Datei geändert, 2 Zeilen hinz

[Mesa-dev] [PATCH 10/11] radeon, clover: Make it compile on LLVM >= r171366.

2013-01-11 Thread Johannes Obermayr
--- src/gallium/drivers/r600/Makefile.am |3 ++- src/gallium/drivers/r600/llvm_wrapper.cpp |4 src/gallium/drivers/radeon/radeon_llvm_emit.cpp | 10 -- src/gallium/state_trackers/clover/llvm/invocation.cpp | 16 +--- 4 Dateien

[Mesa-dev] [PATCH 09/11] gtest: Build it only for 'make check'.

2013-01-11 Thread Johannes Obermayr
--- src/gtest/Makefile.am |2 +- 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/src/gtest/Makefile.am b/src/gtest/Makefile.am index 7defa34..4188c6b 100644 --- a/src/gtest/Makefile.am +++ b/src/gtest/Makefile.am @@ -22,7 +22,7 @@ AM_CFLAGS = $(DEFINES) -I$(top_src

[Mesa-dev] [PATCH 08/11] tests: AM_CPPFLAGS must include $(top_srcdir) instead of $(top_builddir).

2013-01-11 Thread Johannes Obermayr
--- src/glsl/tests/Makefile.am |9 + src/glx/tests/Makefile.am | 10 +- src/mapi/shared-glapi/tests/Makefile.am|6 +++--- src/mesa/main/tests/hash_table/Makefile.am |2 +- 4 Dateien geändert, 14 Zeilen hinzugefügt(+), 13 Zeilen ent

[Mesa-dev] [PATCH 06/11] configure.ac: Save user {C,CXX}FLAGS and append them at end.

2013-01-11 Thread Johannes Obermayr
This way the user has the privilege of last decision and so the option to build an optimized debug build again. --- configure.ac | 14 -- 1 Datei geändert, 12 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/configure.ac b/configure.ac index 10b306e..5bbcf05 100644 --- a/co

[Mesa-dev] [PATCH 07/11] Clang should warn only about unused CFLAGS and CXXFLAGS on debug builds.

2013-01-11 Thread Johannes Obermayr
--- configure.ac |6 ++ 1 Datei geändert, 6 Zeilen hinzugefügt(+) diff --git a/configure.ac b/configure.ac index 5bbcf05..3893570 100644 --- a/configure.ac +++ b/configure.ac @@ -1994,6 +1994,12 @@ dnl Restore LDFLAGS and CPPFLAGS LDFLAGS="$_SAVE_LDFLAGS" CPPFLAGS="$_SAVE_CPPFLAGS" +d

[Mesa-dev] [PATCH 05/11] gallium/auxiliary: Build libgallium shared.

2013-01-11 Thread Johannes Obermayr
--- src/gallium/auxiliary/Makefile.am | 14 +++--- src/gallium/drivers/llvmpipe/Makefile.am | 10 +- src/gallium/drivers/radeon/Makefile.am |3 ++- src/gallium/targets/dri-i915/Makefile.am |2 +- src/gallium/targets/dri-nouveau/Makefile.

[Mesa-dev] [PATCH 04/11] Drop last parts of compatibility for the old Mesa build system.

2013-01-11 Thread Johannes Obermayr
--- src/Makefile.am|3 --- src/egl/main/Makefile.am |7 --- src/gallium/targets/dri-i915/Makefile.am |6 -- src/gallium/targets/dri-nouveau/Makefile.am|6 -- src/gallium/targets/dri-r300/Makefile.am |

[Mesa-dev] [PATCH 03/11] mesa/dricore: Drop compatibility for the old Mesa build system and -avoid-version.

2013-01-11 Thread Johannes Obermayr
--- configure.ac|1 + src/mesa/libdricore/Makefile.am | 23 --- 2 Dateien geändert, 9 Zeilen hinzugefügt(+), 15 Zeilen entfernt(-) diff --git a/configure.ac b/configure.ac index 72df83c..10b306e 100644 --- a/configure.ac +++ b/configure.ac @@ -945,6 +

[Mesa-dev] [PATCH 02/11] glapi/gen: remove an obsolete comment from Makefile.am

2013-01-11 Thread Johannes Obermayr
From: Andreas Boll --- src/mapi/glapi/gen/Makefile.am |5 - 1 Datei geändert, 5 Zeilen entfernt(-) diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am index 46b2127..f869d28 100644 --- a/src/mapi/glapi/gen/Makefile.am +++ b/src/mapi/glapi/gen/Makefile.am @@ -1,8

[Mesa-dev] [PATCH 01/11] Remove hacks for static Makefiles

2013-01-11 Thread Johannes Obermayr
From: Matt Turner v2: Andreas Boll - don't remove compatibility with scripts for the old build system v3: Andreas Boll - remove more obsolete hacks v4: Andreas Boll - add a previously removed TOP variable to fix vgapi build --- src/gallium/auxiliary/Makefile.am |

[Mesa-dev] [PATCH] targets/dri-swrast: Force c++ linker in all cases.

2013-01-10 Thread Johannes Obermayr
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59226 --- src/gallium/targets/dri-swrast/Makefile.am | 10 ++ 1 Datei geändert, 2 Zeilen hinzugefügt(+), 8 Zeilen entfernt(-) diff --git a/src/gallium/targets/dri-swrast/Makefile.am b/src/gallium/targets/dri-swrast/Makefile.am index 8

[Mesa-dev] [PATCH] nv50/codegen/nv50_ir.cpp: #include on -DNDEBUG.

2012-12-30 Thread Johannes Obermayr
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=58879 --- On debug builds it is included: nv50_ir.cpp:23 -> nv50_ir.h:33 -> nv50_ir_util.h:33 -> --- src/gallium/drivers/nv50/codegen/nv50_ir.cpp |4 1 Datei geändert, 4 Zeilen hinzugefügt(+) diff --git a/src/gallium/drivers/nv50/codeg

Re: [Mesa-dev] [PATCH] configure.ac: Save user {C, CXX}FLAGS and append them at end.

2012-12-23 Thread Johannes Obermayr
Am Samstag, 22. Dezember 2012, 16:34:48 schrieben Sie: > On Sat, Dec 22, 2012 at 10:47 AM, Johannes Obermayr > wrote: > > Am Samstag, 22. Dezember 2012, 09:21:33 schrieb Matt Turner: > >> On Sat, Dec 22, 2012 at 9:16 AM, Johannes Obermayr > >> wrote: > >> &

Re: [Mesa-dev] [PATCH] configure.ac: Save user {C, CXX}FLAGS and append them at end.

2012-12-22 Thread Johannes Obermayr
Am Samstag, 22. Dezember 2012, 09:21:33 schrieb Matt Turner: > On Sat, Dec 22, 2012 at 9:16 AM, Johannes Obermayr > wrote: > > This way the user has the privilege of last decision and so the option to > > build an optimized debug build again. > > --- > >

[Mesa-dev] [PATCH] configure.ac: Save user {C,CXX}FLAGS and append them at end.

2012-12-22 Thread Johannes Obermayr
This way the user has the privilege of last decision and so the option to build an optimized debug build again. --- configure.ac | 14 -- 1 Datei geändert, 12 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/configure.ac b/configure.ac index 759cbaa..d3d9d62 100644 --- a/co

Re: [Mesa-dev] [RFC] Merge automake branch

2012-12-22 Thread Johannes Obermayr
Am Samstag, 22. Dezember 2012, 02:12:55 schrieb Michel Dänzer: > On Sam, 2012-12-22 at 01:06 +0100, Johannes Obermayr wrote: > > Am Samstag, 22. Dezember 2012, 00:31:16 schrieb Michel Dänzer: > > > On Fre, 2012-12-21 at 22:43 +0100, Johannes Obermayr wrote: > > > >

Re: [Mesa-dev] [RFC] Merge automake branch

2012-12-21 Thread Johannes Obermayr
Am Samstag, 22. Dezember 2012, 00:31:16 schrieb Michel Dänzer: > On Fre, 2012-12-21 at 22:43 +0100, Johannes Obermayr wrote: > > Am Freitag, 21. Dezember 2012, 16:48:59 schrieb Michel Dänzer: > > > On Fre, 2012-12-21 at 06:31 +0100, Johannes Obermayr wrote: > > > >

Re: [Mesa-dev] [RFC] Merge automake branch

2012-12-21 Thread Johannes Obermayr
Am Freitag, 21. Dezember 2012, 16:48:59 schrieb Michel Dänzer: > On Fre, 2012-12-21 at 06:31 +0100, Johannes Obermayr wrote: > > > > Please pull the code from: > > git://github.com/jobermayr/mesa.git branch: master > > > > To view it online: >

Re: [Mesa-dev] [PATCH automake] Support LLVM >= 3.2 on radeonsi and opencl.

2012-12-21 Thread Johannes Obermayr
is based on AMDGPU (because it is git) before it will be pushed to R600 on LLVM svn trunk. IMHO changing the development model will cause a change of the warning message. > On 20 Dec 2012 19:58, "Johannes Obermayr" wrote: > > > --- > > Because Tom's LLVM 3.2 git re

[Mesa-dev] [RFC] Merge automake branch

2012-12-20 Thread Johannes Obermayr
Maya calendar will reach its end soon and Mesa should be prepared to start in a new epoch ;-) Please pull the code from: git://github.com/jobermayr/mesa.git branch: master To view it online: https://github.com/jobermayr/mesa Following changes since automake-gallium6: - link shared libgallium a

[Mesa-dev] [PATCH automake] Support LLVM >= 3.2 on radeonsi and opencl.

2012-12-20 Thread Johannes Obermayr
--- Because Tom's LLVM 3.2 git repository uses AMDGPU and LLVM 3.3 trunk uses R600 we must adapt Mesa a bit to support both. This patch works only for automake branch because it requires LLVM_VERSION_INT from: http://cgit.freedesktop.org/~mattst88/mesa/commit/?h=automake-gallium6&id=b772e110a2d7

[Mesa-dev] [PATCH automake] gallium/drivers/radeon: Build it as module to fix egl_gallium.so.

2012-12-19 Thread Johannes Obermayr
Otherwise egl_gallium.so fails to load for all drivers if we build r600 and radeonsi together. --- Now we should be able to merge automake branch :) --- src/gallium/drivers/radeon/Makefile.am |9 + 1 Datei geändert, 9 Zeilen hinzugefügt(+) diff --git a/src/gallium/drivers/radeon/Make

[Mesa-dev] [PATCH automake] pipe-loader: Install pipe_* to $(libdir)/gallium-pipe.

2012-12-05 Thread Johannes Obermayr
--- This patch is necessary because gbm and clover use same pipe_*. In current automake they are installed only in $(libdir)/gbm and clover searches in $(libdir)/opencl and of course this cannot work. The build is triggered by src/gallium/targets/gbm/Makefile.am:23 or src/gallium/targets/opencl

[Mesa-dev] [PATCHv2 automake] egl-static: Fix linking.

2012-12-04 Thread Johannes Obermayr
--- v2: Only add -Wl,--allow-multiple-definition because r300 does not set NEED_RADEON_GALLIUM. With all my patches applied automake build succeeds with: ./autogen.sh --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin

[Mesa-dev] [PATCHv2 automake] pipe-loader: Fix some undefined symbols.

2012-12-04 Thread Johannes Obermayr
--- v2: galahad is conditional --- src/gallium/drivers/radeon/Makefile.am |5 +++-- src/gallium/targets/pipe-loader/Makefile.am |7 +++ 2 Dateien geändert, 10 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/src/gallium/drivers/radeon/Makefile.am b/src/gallium/drivers/ra

[Mesa-dev] [PATCH automake] egl-static: Fix linking.

2012-12-04 Thread Johannes Obermayr
--- With all my patches applied automake build succeeds with: ./autogen.sh --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdi

[Mesa-dev] [PATCH automake] pipe-loader: Fix some undefined symbols.

2012-12-04 Thread Johannes Obermayr
--- src/gallium/drivers/radeon/Makefile.am |5 +++-- src/gallium/targets/pipe-loader/Makefile.am |3 +++ 2 Dateien geändert, 6 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/src/gallium/drivers/radeon/Makefile.am b/src/gallium/drivers/radeon/Makefile.am index cbad5b7..adb5

[Mesa-dev] [PATCH] clover: Install CL headers.

2012-12-04 Thread Johannes Obermayr
Note: This is a candidate for the stable branches. --- v2: remove trailing \ in last line. --- src/gallium/state_trackers/clover/Makefile.am | 10 ++ 1 Datei geändert, 10 Zeilen hinzugefügt(+) diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clove

[Mesa-dev] [PATCH] clover: Install CL headers.

2012-12-04 Thread Johannes Obermayr
Note: This is a candidate for the stable branches. --- src/gallium/state_trackers/clover/Makefile.am | 10 ++ 1 Datei geändert, 10 Zeilen hinzugefügt(+) diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am index c37d010..f068164 100

[Mesa-dev] [PATCH automake] Add -I$(top_srcdir)/include to GALLIUM_CFLAGS.

2012-12-03 Thread Johannes Obermayr
--- src/gallium/Automake.inc |1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc index ccdb7e0..fabc2af 100644 --- a/src/gallium/Automake.inc +++ b/src/gallium/Automake.inc @@ -1,4 +1,5 @@ GALLIUM_CFLAGS = \ + -I$(top_srcdir)/

[Mesa-dev] [PATCH automake after merge] llvmpipe: Fix build after *_soa removal.

2012-12-03 Thread Johannes Obermayr
--- src/gallium/drivers/llvmpipe/Makefile.am | 10 +- 1 Datei geändert, 1 Zeile hinzugefügt(+), 9 Zeilen entfernt(-) diff --git a/src/gallium/drivers/llvmpipe/Makefile.am b/src/gallium/drivers/llvmpipe/Makefile.am index df40186..36d8c22 100644 --- a/src/gallium/drivers/llvmpipe/Makefil

[Mesa-dev] [PATCHv2 automake] gallium/auxiliary: Add possibility to build libgallium shared.

2012-12-03 Thread Johannes Obermayr
--- configure.ac |7 +++ src/gallium/auxiliary/Makefile.am |8 src/gallium/targets/opencl/Makefile.am |2 +- 3 Dateien geändert, 16 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/configure.ac b/configure.ac index 02aaa64..316d200 10

[Mesa-dev] [PATCH automake] gallium/auxiliary: Add possibility to build libgallium shared.

2012-12-03 Thread Johannes Obermayr
--- configure.ac |7 +++ src/gallium/auxiliary/Makefile.am |8 2 Dateien geändert, 15 Zeilen hinzugefügt(+) diff --git a/configure.ac b/configure.ac index 241b480..e4021b7 100644 --- a/configure.ac +++ b/configure.ac @@ -729,6 +729,13 @@ fi AC_SUBST([SHA

[Mesa-dev] [PATCH automake] gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.

2012-12-03 Thread Johannes Obermayr
Contrary to old build system automake fails without LLVM_CXXFLAGS. --- configure.ac |7 ++- src/gallium/auxiliary/Makefile.am |6 ++ 2 Dateien geändert, 12 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/configure.ac b/configure.ac index e64f643..241b4

[Mesa-dev] [PATCH 9.0 branch] gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.

2012-11-30 Thread Johannes Obermayr
Note: This is a candidate for the stable branches. --- src/gallium/auxiliary/Makefile |5 + 1 Datei geändert, 5 Zeilen hinzugefügt(+) diff --git a/src/gallium/auxiliary/Makefile b/src/gallium/auxiliary/Makefile index 3ba3f9c..72208f1 100644 --- a/src/gallium/auxiliary/Makefile +++ b/src/g

[Mesa-dev] [PATCH] gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.

2012-11-30 Thread Johannes Obermayr
Also remove the recently added and overloaded LLVM_CXXFLAGS from CXXFLAGS. Note: This is a candidate for the stable branches. --- src/gallium/auxiliary/Makefile |6 +- 1 Datei geändert, 5 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/src/gallium/auxiliary/Makefile b/src/gallium

[Mesa-dev] [PATCH libclc] Make libclc more Linux FHS conform.

2012-11-29 Thread Johannes Obermayr
- First introducing a versioning scheme - Add --libexecdir, --includedir and --pkgconfigdir and prefill them as well as --prefix - Build all targets by default - Create clc.pc and install it in $pkgconfigdir - Use clang++ instead of c++ - Rename builtins.bc to built_libs/$triple.bc and install the

[Mesa-dev] [PATCH mesa] clover: Adapt libclc's INCLUDEDIR and LIBEXECDIR to make use of the new introduced libclc.pc.

2012-11-29 Thread Johannes Obermayr
--- configs/current.in|3 ++- configure.ac | 15 --- src/gallium/state_trackers/clover/Makefile.am |3 ++- src/gallium/state_trackers/clover/llvm/invocation.cpp |4 ++-- 4 Dateien geänder

[Mesa-dev] [PATCH] Remove -O., -g and -Wall from LLVM_C{PP,XX}FLAGS.

2012-11-26 Thread Johannes Obermayr
--- configure.ac |6 +++--- 1 Datei geändert, 3 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-) diff --git a/configure.ac b/configure.ac index f484dc4..006f4fa 100644 --- a/configure.ac +++ b/configure.ac @@ -1658,7 +1658,7 @@ if test "x$enable_gallium_llvm" = xyes; then if test "x$LLVM_CO

Re: [Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-11-26 Thread Johannes Obermayr
Am Dienstag, 20. November 2012, 12:44:48 schrieb Johannes Obermayr: > Am Dienstag, 20. November 2012, 06:41:22 schrieb Dave Airlie: > > > $ llvm-config --cxxflags > > > > > > -I/usr/include -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 > > > -fstack-p

Re: [Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-11-20 Thread Johannes Obermayr
Am Dienstag, 20. November 2012, 06:41:22 schrieb Dave Airlie: > > $ llvm-config --cxxflags > > > > -I/usr/include -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 > > -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC > > -fvisibility-inlines-hidden -O2 -g -D_GNU_SOURCE -Wall -

Re: [Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-11-19 Thread Johannes Obermayr
b/src/gallium/auxiliary/Makefile > > @@ -13,6 +13,7 @@ C_SOURCES += \ > > $(GALLIVM_SOURCES) > > CPP_SOURCES += \ > > $(GALLIVM_CPP_SOURCES) > > +CXXFLAGS += $(LLVM_CXXFLAGS) > > endif > > > > >From d68f14daefb9ff4884277170f5c073f

[Mesa-dev] [PATCH] glsl/builtin_compiler/Makefile.am: Make sure GLSL_SRCDIR is defined before AM_CFLAGS.

2012-11-02 Thread Johannes Obermayr
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56685 --- src/glsl/builtin_compiler/Makefile.am |4 ++-- 1 Datei geändert, 2 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/src/glsl/builtin_compiler/Makefile.am b/src/glsl/builtin_compiler/Makefile.am index 72032b5..22ccf60 10

[Mesa-dev] [PATCH] glsl/builtin_compiler: Fix build by -I $(top_srcdir)/include.

2012-11-02 Thread Johannes Obermayr
BUG: 56664 --- src/glsl/builtin_compiler/Makefile.am |1 + 1 Datei geändert, 1 Zeile hinzugefügt(+) diff --git a/src/glsl/builtin_compiler/Makefile.am b/src/glsl/builtin_compiler/Makefile.am index eeac424..72032b5 100644 --- a/src/glsl/builtin_compiler/Makefile.am +++ b/src/glsl/builtin_comp

[Mesa-dev] [PATCH] gallium/auxiliary: Fix build with newer LLVM.

2012-10-27 Thread Johannes Obermayr
rtti was removed from more llvm libraries. Thanks to d0k for the hint via IRC #llvm on irc.oftc.net --- src/gallium/auxiliary/Makefile |4 1 Datei geändert, 4 Zeilen hinzugefügt(+) diff --git a/src/gallium/auxiliary/Makefile b/src/gallium/auxiliary/Makefile index 3ba3f9c..690b7f5 100644

[Mesa-dev] [PATCH] Set OSMESA_VERSION=8.

2012-09-01 Thread Johannes Obermayr
VERSION_NUMBER is not required anymore. So it will be removed. --- configure.ac |8 src/mesa/drivers/osmesa/Makefile.am |4 ++-- src/mesa/drivers/osmesa/osmesa.pc.in |2 +- 3 Dateien geändert, 7 Zeilen hinzugefügt(+), 7 Zeilen entfernt(-) diff --git a

[Mesa-dev] [PATCH] osmesa: Create a symlinked .so.8

2012-09-01 Thread Johannes Obermayr
--- src/mesa/drivers/osmesa/Makefile.am |8 1 Datei geändert, 8 Zeilen hinzugefügt(+) diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am index db1d14f..0696036 100644 --- a/src/mesa/drivers/osmesa/Makefile.am +++ b/src/mesa/drivers/osmesa/Makefile

Re: [Mesa-dev] [PATCH] Make it possible to install gl.pc and osmesa.pc together.

2012-07-09 Thread Johannes Obermayr
Am Montag, 9. Juli 2012, 09:45:56 schrieb Eric Anholt: > osmesa didn't install gl.pc in the past as far as I can see, and I don't > think it should -- it's not a normal GL implementation, so you want to > be specifically looking for osmesa in your pkgconfig checks. Mesa-demos require gl.pc (line 2

Re: [Mesa-dev] [PATCH] Make it possible to install gl.pc and osmesa.pc together.

2012-07-09 Thread Johannes Obermayr
Am Sonntag, 8. Juli 2012, 19:41:33 schrieb Kenneth Graunke: > On 07/08/2012 03:12 PM, Johannes Obermayr wrote: > > --- > > configure.ac |1 + > > src/mesa/Makefile.am |9 ++--- > > 2 files changed, 7 insertions(+), 3 deletions(-) > > It

[Mesa-dev] [PATCH] Make it possible to install gl.pc and osmesa.pc together.

2012-07-08 Thread Johannes Obermayr
--- configure.ac |1 + src/mesa/Makefile.am |9 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 46265a2..00279f4 100644 --- a/configure.ac +++ b/configure.ac @@ -2126,6 +2126,7 @@ AC_SUBST([GALLIUM_MAKE_DIRS]) AM_CONDITI

Re: [Mesa-dev] [libdrm PATCH 3/4] nouveau/nouveau.c: Fix two memory leaks.

2012-06-28 Thread Johannes Obermayr
Am Donnerstag, 28. Juni 2012, 23:06:10 schrieb Marcin Slusarz: > On Thu, Jun 28, 2012 at 09:51:57PM +0200, Johannes Obermayr wrote: > > --- > > nouveau/nouveau.c |2 ++ > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > diff --git a/nouveau/nouvea

[Mesa-dev] [libdrm PATCH 4/4] xf86drm.c: Make more code UDEV unrelevant and fix a memory leak.

2012-06-28 Thread Johannes Obermayr
--- xf86drm.c | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 6ea068f..798f1fd 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -255,6 +255,7 @@ static int drmMatchBusID(const char *id1, const char *id2, int pci_domain_ok) return 0

[Mesa-dev] [libdrm PATCH 3/4] nouveau/nouveau.c: Fix two memory leaks.

2012-06-28 Thread Johannes Obermayr
--- nouveau/nouveau.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c index 5aa4107..e91287f 100644 --- a/nouveau/nouveau.c +++ b/nouveau/nouveau.c @@ -95,6 +95,7 @@ nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev

[Mesa-dev] [libdrm PATCH 2/4] libkms/nouveau.c: Fix a memory leak and cleanup code a bit.

2012-06-28 Thread Johannes Obermayr
--- libkms/nouveau.c | 20 +++- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/libkms/nouveau.c b/libkms/nouveau.c index 0e24a15..4cbca96 100644 --- a/libkms/nouveau.c +++ b/libkms/nouveau.c @@ -94,14 +94,18 @@ nouveau_bo_create(struct kms_driver *kms, if

[Mesa-dev] [libdrm PATCH 1/4] libkms/intel.c: Fix a memory leak and a dead assignment as well as cleanup code a bit.

2012-06-28 Thread Johannes Obermayr
--- libkms/intel.c | 23 --- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/libkms/intel.c b/libkms/intel.c index 8b8249b..7bf1f76 100644 --- a/libkms/intel.c +++ b/libkms/intel.c @@ -93,14 +93,18 @@ intel_bo_create(struct kms_driver *kms, if (!bo)

[Mesa-dev] [PATCH] gallivm: Fix potential buffer overflowing in strncat.

2012-06-28 Thread Johannes Obermayr
--- src/gallium/auxiliary/gallivm/lp_bld_printf.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c index 16ef25a..35e9197 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_pr

Re: [Mesa-dev] [PATCH] mesa: more const qualifiers to match the latest glext.h glext.h

2012-06-27 Thread Johannes Obermayr
With the second patch this issue remains (gcc on openSUSE_12.1): gcc -c -I../../../include -I../../../src/mapi -I../../../src/mesa -DMAPI_MODE_BRIDGE -DMAPI_ABI_HEADER=\"glapi/glapi_mapi_tmp.h\" -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-un

[Mesa-dev] [PATCH] tgsi: Fix conflict with fortify printf redirect in glibc.

2012-03-05 Thread Johannes Obermayr
Fixes clang error: tgsi/tgsi_dump.c:72:12: error: no member named '__printf_chk' in 'struct dump_ctx' ctx->printf( ctx, "%u", e ); ~~~ ^ /usr/include/bits/stdio2.h:109:3: note: expanded from macro 'printf' __printf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__) ^

  1   2   >