[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Gordon Jin changed: What|Removed |Added Depends on||29524 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Gordon Jin changed: What|Removed |Added Depends on||29500 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Gordon Jin changed: What|Removed |Added Depends on||29498 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Gordon Jin changed: What|Removed |Added Depends on||29496 -- Configure bugmail: https://bugs.f

Re: [Mesa-dev] [PATCH]R600g more pipe_cap shader params

2010-08-12 Thread Marek Olšák
Committed, thanks. -Marek On Thu, Aug 12, 2010 at 12:02 PM, Владимир wrote: > Ok, I used opengl extension viewer from realtechvr to identify some > parameters values, (used some data from win/osx ati drivers) also identified > most of limits by its normal name. > the patch conatins some new val

[Mesa-dev] [Bug 29540] [glsl2] problem with vertex attribute locations and draw-time validation

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29540 Brian Paul changed: What|Removed |Added Blocks||29044 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Brian Paul changed: What|Removed |Added Depends on||29540 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29540] New: [glsl2] problem with vertex attribute locations and draw-time validation

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29540 Summary: [glsl2] problem with vertex attribute locations and draw-time validation Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW S

[Mesa-dev] [PATCH] glsl2: Use Elements from main/compiler.h instead of open-coding

2010-08-12 Thread Ian Romanick
From: Ian Romanick --- src/glsl/builtin_function.cpp|5 + src/glsl/builtin_types.h |4 src/glsl/builtins/tools/generate_builtins.pl |5 + src/glsl/glsl_types.cpp |1 + src/glsl/ir_variable.cpp

Re: [Mesa-dev] [PATCH] ir_to_mesa: Include main/compiler.h

2010-08-12 Thread Ian Romanick
When the compiler was being developed out of tree, I had open-coded the Elements macro in a couple places. It seems that I never went back and cleaned that up. This patch should fix that and the issue that Jakob reported. Does this fix the original problem? _

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 José Fonseca wrote: > OK. > > What about this: > > For GLUT, GLEW, LLVM and all other dependencies I'll just make a SDK > with the binaries, with debug & release, 32 & 64 bit, MinGW & MSVC > versions. One seldom needs to modify the source anyway, an

[Mesa-dev] [Bug 29537] [glsl2] texture2DLod() should not be accepted by fragment programs

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29537 Ian Romanick changed: What|Removed |Added Platform|Other |All AssignedTo|mesa-...@lists.fre

[Mesa-dev] [Bug 29537] [glsl2] texture2DLod() should not be accepted by fragment programs

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29537 Brian Paul changed: What|Removed |Added Blocks||29044 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Brian Paul changed: What|Removed |Added Depends on||29537 -- Configure bugmail: https://bugs.f

[Mesa-dev] [Bug 29537] New: [glsl2] texture2DLod() should not be accepted by fragment programs

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29537 Summary: [glsl2] texture2DLod() should not be accepted by fragment programs Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severit

[Mesa-dev] [Bug 29489] [glsl2] piglit test preprocess-01.frag fails

2010-08-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29489 Carl Worth changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH 5/6] rtasm: add minimal x86-64 support and new instructions

2010-08-12 Thread Luca Barbieri
> Hey Luca -- I have to ask how far you're thinking of going with rtasm on > x86-64...  I can say from experience that while it's a nice utility for > generating very simple assembly (as in translate), as soon as you start > getting into anything more complex, llvm is by far the better choice... T

[Mesa-dev] [PATCH] ir_to_mesa: Include main/compiler.h

2010-08-12 Thread Jakob Bornecrantz
Needed for Elements. Need to have its own extern block before other includes due to conflicts with other headers which define similar thingsi. In particular mapi/mapi/u_compiler.h will get included before main/compiler.h and main/compiler.h doesn't check if INLINE is already defined so we get warni

Re: [Mesa-dev] [PATCH 5/6] rtasm: add minimal x86-64 support and new instructions

2010-08-12 Thread Keith Whitwell
On Thu, 2010-08-12 at 10:09 -0700, Luca Barbieri wrote: > This commit adds minimal x86-64 support: only movs between registers > are supported for r8-r15, and x64_rexw() must be used to ask for 64-bit > operations. Hey Luca -- I have to ask how far you're thinking of going with rtasm on x86-64...

[Mesa-dev] [PATCH 6/6] translate_sse: major rewrite

2010-08-12 Thread Luca Barbieri
translate_sse is currently very limited to the point of being useless in essentially all cases. In particular, it only support some float32 and unorm8 formats and doesn't work on x86-64. This commit rewrites it to support: 1. Dumb memory copy for any pair of identical formats 2. All formats that

[Mesa-dev] [PATCH 5/6] rtasm: add minimal x86-64 support and new instructions

2010-08-12 Thread Luca Barbieri
This commit adds minimal x86-64 support: only movs between registers are supported for r8-r15, and x64_rexw() must be used to ask for 64-bit operations. It also adds several new instructions for the new translate_sse code. --- src/gallium/auxiliary/rtasm/rtasm_cpu.c|6 +- src/gallium/auxi

[Mesa-dev] [PATCH 4/6] translate: add support for 8/16-bit indices

2010-08-12 Thread Luca Barbieri
Currently, only 32-bit indices are supported, but some use cases translate needs support for all types. --- src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 14 src/gallium/auxiliary/rtasm/rtasm_x86sse.h |2 + src/gallium/auxiliary/translate/translate.h| 12 .

[Mesa-dev] [PATCH 3/6] translate_sse: remove useless generated function wrappers

2010-08-12 Thread Luca Barbieri
Currently translate_sse puts two trivial wrappers in the translate vtable. These slow it down and enlarge the source code for no gain, except perhaps the ability to set a breakpoint there, so remove them. Breakpoints can be set on the caller of the translate functions, with no loss of functionali

[Mesa-dev] [PATCH 2/6] translate_generic: factor out common code between linear and indexed

2010-08-12 Thread Luca Barbieri
This moves the common code into a separate ALWAYS_INLINE function. --- .../auxiliary/translate/translate_generic.c| 175 +++- 1 files changed, 60 insertions(+), 115 deletions(-) diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/tran

[Mesa-dev] [PATCH 1/6] translate_generic: use memcpy if possible

2010-08-12 Thread Luca Barbieri
When used in GPU drivers, translate can be used to simultaneously perform a gather operation, and convert away from unsupported formats. In this use case, input and output formats will often be identical: clearly it would make sense to use a memcpy in this case. Instead, translate will insist to

[Mesa-dev] [PATCH 0/6] Translate improvements

2010-08-12 Thread Luca Barbieri
This patchset improves translate in several way, with a particular focus on making it more useful and faster for hardware drivers. The first part of the patchset is a couple of simple changes: support for directly using memcpy() if the input and output formats are identical, and support for 8-bit

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread José Fonseca
On Thu, 2010-08-12 at 08:33 -0700, Matt Turner wrote: > On Thu, Aug 12, 2010 at 11:27 AM, José Fonseca wrote: > > On Thu, 2010-08-12 at 07:58 -0700, Matt Turner wrote: > >> On Thu, Aug 12, 2010 at 7:00 AM, José Fonseca wrote: > >> >> Really optimising for the wrong bunch of people here by draggin

Re: [Mesa-dev] [RFC] [PATCH 0/3] Make Gallium aware of GL_TEXTURE_RECTANGLE

2010-08-12 Thread Christoph Bumiller
On 08/12/2010 04:06 AM, Marek Olšák wrote: > On Wed, Aug 11, 2010 at 10:07 PM, Luca Barbieri wrote: > >>> Because all nvidia hardware seems to have the normalized bit as a >> property >>> of a resource (PIPE_TEXTURE_RECT or a flag would be okay here), and all >> ATI >>> hardware has the normalized

Re: [Mesa-dev] Mesa symbol visibility

2010-08-12 Thread Kevin H. Hobbs
On 08/12/2010 10:53 AM, tom fogal wrote: > Can we go the other way? Put OSMesa symbols in libGL? I gave this a successful try in the other thread. (Sorry for the braiding of threads) signature.asc Description: OpenPGP digital signature ___ mesa-dev m

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread Matt Turner
On Thu, Aug 12, 2010 at 11:27 AM, José Fonseca wrote: > On Thu, 2010-08-12 at 07:58 -0700, Matt Turner wrote: >> On Thu, Aug 12, 2010 at 7:00 AM, José Fonseca wrote: >> >> Really optimising for the wrong bunch of people here by dragging this >> >> stuff into mesa git. >> > >> > Many projects do t

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread José Fonseca
On Thu, 2010-08-12 at 07:58 -0700, Matt Turner wrote: > On Thu, Aug 12, 2010 at 7:00 AM, José Fonseca wrote: > >> Really optimising for the wrong bunch of people here by dragging this > >> stuff into mesa git. > > > > Many projects do this: they include the source of other projects, to > > make it

Re: [Mesa-dev] VTK Offscreen Segfaults

2010-08-12 Thread Kevin H. Hobbs
On 08/06/2010 05:20 PM, tom fogal wrote: > > Well, it does appear to be some type of symbol resolution/overloading > issue. However it seems to be with internal Mesa symbols. Switching > to a single library -- that is, putting OSMesaCreateContext, etc. into > libGL directly, and getting rid of l

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread Matt Turner
On Thu, Aug 12, 2010 at 7:00 AM, José Fonseca wrote: >> Really optimising for the wrong bunch of people here by dragging this >> stuff into mesa git. > > Many projects do this: they include the source of other projects, to > make it easier to build without having to build all dependencies. This i

Re: [Mesa-dev] Mesa symbol visibility

2010-08-12 Thread tom fogal
Dan Nicholson writes: [snip] > A possible compromise here would be to put glX* stubs in OSMesa, but > _that_ seems perverse, too. That would be wonderful for us, though ;) Can we go the other way? Put OSMesa symbols in libGL? That feels an iota less gross to me. Still, some day I'd like to pa

Re: [Mesa-dev] Mesa symbol visibility

2010-08-12 Thread tom fogal
"Kevin H. Hobbs" writes: > On 08/11/2010 05:18 PM, tom fogal wrote: > > Right. This is exactly why Mesa's name mangling exists. > > You mean you haven't been mangling this whole time? I guess I haven't > > been reading these mails closely enough. > > It just seems perverse to have to use name ma

Re: [Mesa-dev] Mesa symbol visibility

2010-08-12 Thread Brian Paul
On 08/12/2010 07:52 AM, Dan Nicholson wrote: On Thu, Aug 12, 2010 at 2:07 AM, Kevin H. Hobbs wrote: On 08/11/2010 05:18 PM, tom fogal wrote: Right. This is exactly why Mesa's name mangling exists. You mean you haven't been mangling this whole time? I guess I haven't been reading these mails c

Re: [Mesa-dev] Mesa symbol visibility

2010-08-12 Thread Dan Nicholson
On Thu, Aug 12, 2010 at 2:07 AM, Kevin H. Hobbs wrote: > On 08/11/2010 05:18 PM, tom fogal wrote: >> Right. This is exactly why Mesa's name mangling exists. >> You mean you haven't been mangling this whole time?  I guess I haven't >> been reading these mails closely enough. >> >> -tom >> > > It ju

Re: [Mesa-dev] Mesa (primitive-restart): 682 new commits

2010-08-12 Thread Brian Paul
On 08/12/2010 07:37 AM, Keith Whitwell wrote: On Thu, 2010-08-12 at 06:28 -0700, Brian Paul wrote: On 08/12/2010 07:16 AM, Keith Whitwell wrote: On Thu, 2010-08-12 at 06:08 -0700, Brian Paul wrote: On 08/11/2010 09:40 PM, Luca Barbieri wrote: [Apparently bri...@kemper.freedesktop.org is forwa

Re: [Mesa-dev] Mesa (primitive-restart): 682 new commits

2010-08-12 Thread Keith Whitwell
On Thu, 2010-08-12 at 06:28 -0700, Brian Paul wrote: > On 08/12/2010 07:16 AM, Keith Whitwell wrote: > > On Thu, 2010-08-12 at 06:08 -0700, Brian Paul wrote: > >> On 08/11/2010 09:40 PM, Luca Barbieri wrote: > >>> [Apparently bri...@kemper.freedesktop.org is forwarded to > >>> brian.p...@tungstengr

Re: [Mesa-dev] Mesa (primitive-restart): 682 new commits

2010-08-12 Thread Brian Paul
On 08/12/2010 07:16 AM, Keith Whitwell wrote: On Thu, 2010-08-12 at 06:08 -0700, Brian Paul wrote: On 08/11/2010 09:40 PM, Luca Barbieri wrote: [Apparently bri...@kemper.freedesktop.org is forwarded to brian.p...@tungstengraphics.com, which is no longer valid.] I'd suggest to put it in stru

Re: [Mesa-dev] Mesa (primitive-restart): 682 new commits

2010-08-12 Thread Keith Whitwell
On Thu, 2010-08-12 at 06:08 -0700, Brian Paul wrote: > On 08/11/2010 09:40 PM, Luca Barbieri wrote: > > [Apparently bri...@kemper.freedesktop.org is forwarded to > > brian.p...@tungstengraphics.com, which is no longer valid.] > > > > I'd suggest to put it in struct pipe_index_buffer. > > > > Th

Re: [Mesa-dev] Mesa (primitive-restart): 682 new commits

2010-08-12 Thread Brian Paul
On 08/11/2010 09:40 PM, Luca Barbieri wrote: [Apparently bri...@kemper.freedesktop.org is forwarded to brian.p...@tungstengraphics.com, which is no longer valid.] I'd suggest to put it in struct pipe_index_buffer. The argument is that the index buffer needs to be prepared specifically for

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread José Fonseca
On Thu, 2010-08-12 at 04:10 -0700, Dave Airlie wrote: > On Thu, Aug 12, 2010 at 9:00 PM, José Fonseca wrote: > > On Wed, 2010-08-11 at 17:40 -0700, Dave Airlie wrote: > >> On Thu, Aug 12, 2010 at 9:42 AM, José Fonseca wrote: > >> > On Wed, 2010-08-11 at 12:52 -0700, Ian Romanick wrote: > >> >> --

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread Dave Airlie
On Thu, Aug 12, 2010 at 9:00 PM, José Fonseca wrote: > On Wed, 2010-08-11 at 17:40 -0700, Dave Airlie wrote: >> On Thu, Aug 12, 2010 at 9:42 AM, José Fonseca wrote: >> > On Wed, 2010-08-11 at 12:52 -0700, Ian Romanick wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> >> Hash: SHA1 >> >> >> >> Jo

Re: [Mesa-dev] talloc (Was: Merge criteria for glsl2 branch)

2010-08-12 Thread José Fonseca
On Wed, 2010-08-11 at 17:40 -0700, Dave Airlie wrote: > On Thu, Aug 12, 2010 at 9:42 AM, José Fonseca wrote: > > On Wed, 2010-08-11 at 12:52 -0700, Ian Romanick wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> José Fonseca wrote: > >> > Could then Aras Pranckevicius's tallo

Re: [Mesa-dev] VTK Offscreen Segfaults

2010-08-12 Thread Kevin H. Hobbs
On 08/11/2010 11:55 PM, tom fogal wrote: > Dan Nicholson writes: > [snip] > >> So, sorry for not reading the whole thread, but is GL being linked >> because it's needed by the app, because pkg-config said so, or >> because the linker added it? >> > It's needed by the app. Not really, it's

Re: [Mesa-dev] Mesa symbol visibility

2010-08-12 Thread Kevin H. Hobbs
On 08/11/2010 05:18 PM, tom fogal wrote: > Right. This is exactly why Mesa's name mangling exists. > You mean you haven't been mangling this whole time? I guess I haven't > been reading these mails closely enough. > > -tom > It just seems perverse to have to use name mangling to deal with the