[Mesa-dev] Re:cant compile with llvmpipe enabled

2010-05-03 Thread yaiba . kurogane
Ok. I removed "-Wl,--as-needed" and now compilation went smooth.However when I enable gles1 and gles2 and add es state tracker I got something like this: mklib: Making Linux shared library: libGL.so.1.2 mklib: Installing libGL.so.1.2 libGL.so.1 libGL.so in ../../lib make[2]: Opuszczenie katal

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Brian Paul
On Mon, May 3, 2010 at 6:47 PM, Maxim Levitsky wrote: > Note that not git tip of mesa makes compiz abort on: > > compiz: main/buffers.c:371: _mesa_drawbuffers: Assertion `mask[output] != ~0u' You may have to do a 'make clean' because of a stale dependency. -Brian ___

Re: [Mesa-dev] [RFC] Convert mesa to automake/libtool

2010-05-03 Thread Eric Anholt
On Mon, 3 May 2010 15:15:25 -0700, Dan Nicholson wrote: > On Mon, May 3, 2010 at 2:04 PM, Brian Paul wrote: > > So anyway, I just checked out Eric's git tree and the automake branch. > > I ran "./autogen.sh": > > > > $ ./autogen.sh > > autoreconf: Entering directory `.' > > autoreconf: configure.

[Mesa-dev] [Bug 27612] Mesa 7.8.1 does not compile against libdrm 2.4.20

2010-05-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27612 --- Comment #1 from Vinson Lee 2010-05-03 18:00:27 PDT --- The build is probably picking up /usr/include/drm/i915_drm.h over /usr/include/libdrm/i915_drm.h, and /usr/include/drm/i915_drm.h doesn't have I915_MADV_DONTNEED. This is likely fixed by

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Maxim Levitsky
On Tue, 2010-05-04 at 02:10 +0300, Maxim Levitsky wrote: > On Mon, 2010-05-03 at 16:48 -0600, Brian Paul wrote: > > Maxim Levitsky wrote: > > > On Mon, 2010-05-03 at 15:18 -0600, Brian Paul wrote: > > >> Maxim Levitsky wrote: > > >>> On Mon, 2010-05-03 at 13:11 -0600, Brian Paul wrote: > >

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Maxim Levitsky
On Mon, 2010-05-03 at 16:48 -0600, Brian Paul wrote: > Maxim Levitsky wrote: > > On Mon, 2010-05-03 at 15:18 -0600, Brian Paul wrote: > >> Maxim Levitsky wrote: > >>> On Mon, 2010-05-03 at 13:11 -0600, Brian Paul wrote: > Xavier Chantry wrote: > > On Sun, May 2, 2010 at 3:16 PM, Marek O

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Brian Paul
Maxim Levitsky wrote: On Mon, 2010-05-03 at 15:18 -0600, Brian Paul wrote: Maxim Levitsky wrote: On Mon, 2010-05-03 at 13:11 -0600, Brian Paul wrote: Xavier Chantry wrote: On Sun, May 2, 2010 at 3:16 PM, Marek Olšák wrote: On Sat, May 1, 2010 at 11:31 PM, Maxim Levitsky wrote: This commit

Re: [Mesa-dev] Mesa (master): glapi: s/strcpy/strncpy/

2010-05-03 Thread Marek Olšák
On Tue, May 4, 2010 at 12:09 AM, Brian Paul wrote: > My guess is that the code GCC actually generates for both versions (the >> original and the memcpy version) is pretty close to identical. At -O0, >> the memcpy version should be smaller / faster / have better stickers. >> >> In this particula

Re: [Mesa-dev] [RFC] Convert mesa to automake/libtool

2010-05-03 Thread Dan Nicholson
On Mon, May 3, 2010 at 2:04 PM, Brian Paul wrote: > Dan Nicholson wrote: >> >> Brian, >> >> I'm putting forward this request completely understanding your >> position why you don't want automake and libtool in your project. >> However, I think that mesa has outgrown the static Makefiles approach >

Re: [Mesa-dev] Mesa (master): glapi: s/strcpy/strncpy/

2010-05-03 Thread Brian Paul
Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian Romanick wrote: Vinson Lee wrote: Module: Mesa Branch: master Commit: 9446fd8f69564e09ffd0f28735a99c510f84bb62 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9446fd8f69564e09ffd0f28735a99c510f84bb62 Author: Vinson

Re: [Mesa-dev] Mesa (master): glapi: s/strcpy/strncpy/

2010-05-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian Romanick wrote: > Vinson Lee wrote: >> Module: Mesa >> Branch: master >> Commit: 9446fd8f69564e09ffd0f28735a99c510f84bb62 >> URL: >> http://cgit.freedesktop.org/mesa/mesa/commit/?id=9446fd8f69564e09ffd0f28735a99c510f84bb62 > >> Author: Vinson

Re: [Mesa-dev] [RFC] Convert mesa to automake/libtool

2010-05-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Paul wrote: > The libtool script wrapped every cc command and it slowed the build > process considerably. Have you done any "before/after" build time > comparisons? I build a *lot*. This was traditionally the #1 complaint about autotools. Ov

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Maxim Levitsky
On Mon, 2010-05-03 at 15:18 -0600, Brian Paul wrote: > Maxim Levitsky wrote: > > On Mon, 2010-05-03 at 13:11 -0600, Brian Paul wrote: > >> Xavier Chantry wrote: > >>> On Sun, May 2, 2010 at 3:16 PM, Marek Olšák wrote: > On Sat, May 1, 2010 at 11:31 PM, Maxim Levitsky > wrote: > >

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Xavier Chantry
On Mon, May 3, 2010 at 9:11 PM, Brian Paul wrote: >> >> This commit also causes piglit fbo-3d test to fail with both llvmpipe >> and nv50 gallium. >> http://img163.imageshack.us/img163/535/fbo3d.png > > Can you retest now? > Yup, fbo-3d is back on both nv50 and llvmpipe/swrastg. Thanks !

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Brian Paul
Maxim Levitsky wrote: On Mon, 2010-05-03 at 13:11 -0600, Brian Paul wrote: Xavier Chantry wrote: On Sun, May 2, 2010 at 3:16 PM, Marek Olšák wrote: On Sat, May 1, 2010 at 11:31 PM, Maxim Levitsky wrote: This commit breaks compiz completely here on nvidia G50 (Geforce 8400M) Compiz shows dar

Re: [Mesa-dev] [RFC] Convert mesa to automake/libtool

2010-05-03 Thread Brian Paul
Dan Nicholson wrote: Brian, I'm putting forward this request completely understanding your position why you don't want automake and libtool in your project. However, I think that mesa has outgrown the static Makefiles approach for a number of reasons. For a project that's grown to the complexity

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Maxim Levitsky
On Mon, 2010-05-03 at 13:11 -0600, Brian Paul wrote: > Xavier Chantry wrote: > > On Sun, May 2, 2010 at 3:16 PM, Marek Olšák wrote: > >> On Sat, May 1, 2010 at 11:31 PM, Maxim Levitsky > >> wrote: > >>> This commit breaks compiz completely here on nvidia G50 (Geforce 8400M) > >>> Compiz shows da

Re: [Mesa-dev] Mesa (master): glapi: s/strcpy/strncpy/

2010-05-03 Thread Brian Paul
Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vinson Lee wrote: Module: Mesa Branch: master Commit: 9446fd8f69564e09ffd0f28735a99c510f84bb62 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9446fd8f69564e09ffd0f28735a99c510f84bb62 Author: Vinson Lee Date: Sat Ma

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Brian Paul
Xavier Chantry wrote: On Sun, May 2, 2010 at 3:16 PM, Marek Olšák wrote: On Sat, May 1, 2010 at 11:31 PM, Maxim Levitsky wrote: This commit breaks compiz completely here on nvidia G50 (Geforce 8400M) Compiz shows dark screen. (Using nouveau drivers) Without this commit compiz works almost pe

Re: [Mesa-dev] so the development model is working?

2010-05-03 Thread Alex Deucher
On Mon, May 3, 2010 at 2:26 PM, Zack Rusin wrote: > On Monday 03 May 2010 14:17:30 Alex Deucher wrote: >> On Mon, May 3, 2010 at 2:09 PM, Brian Paul wrote: >> > I think it's worth exploring a policy of somehow tagging commits as >> > candidates for back-porting to the stable branch so they can be

Re: [Mesa-dev] so the development model is working?

2010-05-03 Thread Zack Rusin
On Monday 03 May 2010 14:17:30 Alex Deucher wrote: > On Mon, May 3, 2010 at 2:09 PM, Brian Paul wrote: > > I think it's worth exploring a policy of somehow tagging commits as > > candidates for back-porting to the stable branch so they can be some > > level of accounting and tracking. I don't thi

Re: [Mesa-dev] Mesa (master): glapi: s/strcpy/strncpy/

2010-05-03 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vinson Lee wrote: > Module: Mesa > Branch: master > Commit: 9446fd8f69564e09ffd0f28735a99c510f84bb62 > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=9446fd8f69564e09ffd0f28735a99c510f84bb62 > > Author: Vinson Lee > Date: Sat May 1 15

Re: [Mesa-dev] Merging GLES1/2 to mesa/main

2010-05-03 Thread Kristian Høgsberg
2010/4/28 Brian Paul : > Kristian Høgsberg wrote: >> >> 2010/4/27 Kristian Høgsberg : >> [ I hit send to early there... ] >>> >>> review the patches, or at least just some of them.  The overall >>> approach is >> >>  1. Add a API tag to GLcontext so we key off of that. >>  2. Use API-aware construc

Re: [Mesa-dev] so the development model is working?

2010-05-03 Thread Alex Deucher
On Mon, May 3, 2010 at 2:09 PM, Brian Paul wrote: > > Well, never let it be said that I'm inflexible.  I'm conceding on the > dev model debate.  It's more important to have happy developers > contributing to produce stable drivers than to debate the merits of > dev model A vs. B.  For me, cherry p

Re: [Mesa-dev] so the development model is working?

2010-05-03 Thread Brian Paul
Well, never let it be said that I'm inflexible. I'm conceding on the dev model debate. It's more important to have happy developers contributing to produce stable drivers than to debate the merits of dev model A vs. B. For me, cherry picking will be more work than merging, but again, that's no

Re: [Mesa-dev] 2 util_format patches

2010-05-03 Thread José Fonseca
On Mon, 2010-05-03 at 10:42 -0700, Brian Paul wrote: > Marek Olšák wrote: > > José, > > > > the first patch removes the PIPE_FORMAT_ prefix in a string returned by > > util_format_name, it makes debug logs shorter. The second patch adds > > util_format_is_plain. > > I'd prefer to keep the long

Re: [Mesa-dev] EXT_tetxure_swizzle and BGRA textures : glean test enhancement

2010-05-03 Thread José Fonseca
On Mon, 2010-05-03 at 10:29 -0700, José Fonseca wrote: > On Mon, 2010-05-03 at 09:44 -0700, Brian Paul wrote: > > Jose Fonseca wrote: > > > I read the extension and it is not crystal clear, but it seems to imply > > > the swizzles are orthogonal to the format, and applied as the very last > > > s

Re: [Mesa-dev] 2 util_format patches

2010-05-03 Thread Brian Paul
Marek Olšák wrote: José, the first patch removes the PIPE_FORMAT_ prefix in a string returned by util_format_name, it makes debug logs shorter. The second patch adds util_format_is_plain. I'd prefer to keep the long format names. I was recently burned by the Gallium docs omitting the prefix

Re: [Mesa-dev] 2 util_format patches

2010-05-03 Thread José Fonseca
On Mon, 2010-05-03 at 10:25 -0700, Marek Olšák wrote: > José, > > the first patch removes the PIPE_FORMAT_ prefix in a string returned > by util_format_name, it makes debug logs shorter. The second patch > adds util_format_is_plain. > > diff --git a/src/gallium/auxiliary/util/u_format.h > b/src/g

Re: [Mesa-dev] EXT_tetxure_swizzle and BGRA textures : glean test enhancement

2010-05-03 Thread Brian Paul
Dave Airlie wrote: On Sat, May 1, 2010 at 6:47 PM, Dave Airlie wrote: In looking at adding EXT_texture_swizzle I'm a bit confused about what exactly should happen with BGRA textures, as on r300 we use the texture swizzling to do BGRA, so we would have some interaction at that point. To make su

Re: [Mesa-dev] EXT_tetxure_swizzle and BGRA textures : glean test enhancement

2010-05-03 Thread José Fonseca
On Mon, 2010-05-03 at 09:44 -0700, Brian Paul wrote: > Jose Fonseca wrote: > > I read the extension and it is not crystal clear, but it seems to imply the > > swizzles are orthogonal to the format, and applied as the very last step > > before being used in a shader. That is, the semantics are the

[Mesa-dev] 2 util_format patches

2010-05-03 Thread Marek Olšák
José, the first patch removes the PIPE_FORMAT_ prefix in a string returned by util_format_name, it makes debug logs shorter. The second patch adds util_format_is_plain. diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index fb6ade5..d851c31 100644 --- a/s

Re: [Mesa-dev] EXT_tetxure_swizzle and BGRA textures : glean test enhancement

2010-05-03 Thread Brian Paul
Dave Airlie wrote: In looking at adding EXT_texture_swizzle I'm a bit confused about what exactly should happen with BGRA textures, as on r300 we use the texture swizzling to do BGRA, so we would have some interaction at that point. To make sure we test for this I've made the following enhancmen

Re: [Mesa-dev] [PATCH] Reorder LLVM passes, running mem2reg earlier.

2010-05-03 Thread Török Edwin
On 2010-05-03 19:37, José Fonseca wrote: > On Mon, 2010-05-03 at 09:20 -0700, Török Edwin wrote: >> Do the shaders need strict IEEE 754 math? > > I doubt. We already use -ffast-math in when compiling mesa. > > -ffast-math tipically optimizes by leaving intermediate values in the > x86 FP stack w

Re: [Mesa-dev] EXT_tetxure_swizzle and BGRA textures : glean test enhancement

2010-05-03 Thread Brian Paul
Jose Fonseca wrote: I read the extension and it is not crystal clear, but it seems to imply the swizzles are orthogonal to the format, and applied as the very last step before being used in a shader. That is, the semantics are the same of adding a swizzle instruction after a TEX opcode, regardless

Re: [Mesa-dev] [PATCH] Reorder LLVM passes, running mem2reg earlier.

2010-05-03 Thread José Fonseca
On Mon, 2010-05-03 at 09:20 -0700, Török Edwin wrote: > On 2010-05-03 19:00, José Fonseca wrote: > > Török, > > > > Thanks. > > > > I didn't see as much improvement (most of the stuff I've been playing > > with has actually simple shaders), but I saw no regression so I've > > commited it. We have

Re: [Mesa-dev] [PATCH] Reorder LLVM passes, running mem2reg earlier.

2010-05-03 Thread Török Edwin
On 2010-05-03 19:00, José Fonseca wrote: > Török, > > Thanks. > > I didn't see as much improvement (most of the stuff I've been playing > with has actually simple shaders), but I saw no regression so I've > commited it. We have more benchmarks running continuously from git so > once the commit go

Re: [Mesa-dev] so the development model is working?

2010-05-03 Thread tom fogal
Jakob Bornecrantz writes: > A half backed idea would be to have to run a opt in slightly unstable > branch, instead of going full multi-branch development model. Where > bug-fixes can go in freely, small features can go in after a review > of the changes by the module maintainer. What that means i

Re: [Mesa-dev] [PATCH] Reorder LLVM passes, running mem2reg earlier.

2010-05-03 Thread José Fonseca
Török, Thanks. I didn't see as much improvement (most of the stuff I've been playing with has actually simple shaders), but I saw no regression so I've commited it. We have more benchmarks running continuously from git so once the commit goes through them we should have more data. Also, do you k

Re: [Mesa-dev] EXT_tetxure_swizzle and BGRA textures : glean test enhancement

2010-05-03 Thread Roland Scheidegger
On 02.05.2010 13:08, José Fonseca wrote: > On Sun, 2010-05-02 at 02:36 -0700, Dave Airlie wrote: >> On Sun, May 2, 2010 at 7:30 PM, Jose Fonseca >> wrote: >>> I read the extension and it is not crystal clear, but it seems to >>> imply the swizzles are orthogonal to the format, and applied as >>> t

[Mesa-dev] [PATCH] Reorder LLVM passes, running mem2reg earlier.

2010-05-03 Thread Török Edwin
This gives a ~30% shader optimization time improvement on blender. Tested by comparing the dumped LLVM modules. Current ordering: time ~/llvm-git/obj/Release-Asserts/bin/opt l.bc -constprop -instcombine -mem2reg -gvn -simplifycfg real0m1.126s user0m1.108s sys 0m0.012s With this patch

Re: [Mesa-dev] cant compile with llvmpipe enabled

2010-05-03 Thread Dan Nicholson
On Mon, May 3, 2010 at 3:52 AM, wrote: > Hey. I get following error when try to compile mesa-git with > --enable-gallium-llvm. > > g++ -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib/llvm  -lpthread -lffi > -ldl -lm  lp_test_format.o lp_test_main.o -o lp_test_format > -Wl,--start-group   -lXext -

Re: [Mesa-dev] Mesa (master): r300g: fix surface_copy for compressed formats

2010-05-03 Thread Marek Olšák
I am sure they're not advertised as supported render targets. You can find the list of render target formats in r300_texture.c : r300_translate_colorformat. Yes the 3D blit is lossless for low precision formats. The thing is, as you say, I'd have to change both the format and dimensions, i.e. pret

[Mesa-dev] [PATCH] nv50: only advertise PIPE_FORMAT_DXT* if s3tc available

2010-05-03 Thread Xavier Chantry
This fixes flightgear assertion in dxt stubs : Mesa warning: external dxt library not available: texstore_rgba_dxt3 util/u_format_s3tc.c:66:util_format_dxt3_rgba_fetch_stub: Assertion `0' failed. Only advertise for BIND_SAMPLER_VIEW to avoid very weird paths, according to José Fonseca. --- src/ga

Re: [Mesa-dev] [PATCH] Fixup drivers/dri/swrast/swrast.c to new API aware context

2010-05-03 Thread Kristian Høgsberg
On Mon, May 3, 2010 at 7:39 AM, Colin Harrison wrote: > Hi, > > I needed to apply the following patch now that drisw state tracker uses the > new API aware context create... Thanks, fixed. Kristian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.o

Re: [Mesa-dev] [Mesa3d-dev] mesa commit e648d4a1d1c0c5f70916e38366b863f0bec79a62 st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures

2010-05-03 Thread Xavier Chantry
On Sun, May 2, 2010 at 3:16 PM, Marek Olšák wrote: > On Sat, May 1, 2010 at 11:31 PM, Maxim Levitsky > wrote: >> >> This commit breaks compiz completely here on nvidia G50 (Geforce 8400M) >> Compiz shows dark screen. >> (Using nouveau drivers) >> >> Without this commit compiz works almost perfect

[Mesa-dev] [PATCH] Fixup drivers/dri/swrast/swrast.c to new API aware context

2010-05-03 Thread Colin Harrison
Hi, I needed to apply the following patch now that drisw state tracker uses the new API aware context create... --- ./src/mesa/drivers/dri/swrast/save_swrast.c 2010-05-02 20:45:28.0 +0100 +++ ./src/mesa/drivers/dri/swrast/swrast.c 2010-05-03 11:27:40.0 +0100 @@ -501,7 +501,7

Re: [Mesa-dev] Mesa (master): r300g: fix surface_copy for compressed formats

2010-05-03 Thread José Fonseca
Also, does r300 advertise rendertarget support for compressed textures? It probably does, and that's why you end up in this surface_copy path. Jose On Mon, 2010-05-03 at 04:47 -0700, José Fonseca wrote: > As long as the blit engine is not lossy, you could support everything by > using PIPE_FORM

Re: [Mesa-dev] Mesa (master): r300g: fix surface_copy for compressed formats

2010-05-03 Thread José Fonseca
As long as the blit engine is not lossy, you could support everything by using PIPE_FORMAT_I8_UNORM or something and adjusting dimensions. Jose On Sun, 2010-05-02 at 12:02 -0700, Marek Olšák wrote: > Module: Mesa > Branch: master > Commit: 3b2cf97c5c84c3a92f97f335b27f754aa42c5259 > URL: > htt

Re: [Mesa-dev] cant compile with llvmpipe enabled

2010-05-03 Thread Francis Galiegue
On Mon, May 3, 2010 at 12:52 PM, wrote: > Hey. I get following error when try to compile mesa-git with > --enable-gallium-llvm. > > g++ -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib/llvm  -lpthread -lffi > -ldl -lm  lp_test_format.o lp_test_main.o -o lp_test_format > -Wl,--start-group   -lXext

[Mesa-dev] cant compile with llvmpipe enabled

2010-05-03 Thread yaiba . kurogane
Hey. I get following error when try to compile mesa-git with --enable-gallium-llvm. g++ -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib/llvm -lpthread -lffi -ldl -lm lp_test_format.o lp_test_main.o -o lp_test_format -Wl,--start-group -lXext -lXxf86vm -lXdamage -lXfixes -lX11-xcb -lX11 -lx