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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 27914, which changed state. Bug 27914 Summary: GLSL compiler uses MUL+ADD where it could use MAD https://bugs.freedesktop.org/show_bug.cgi?id=27914 What|Old Value |New Value

[Mesa-dev] [PATCH 4/4] st/mesa: use PIPE_BIND_SAMPLER_VIEW_UNNORMALIZED_CLAMP for GL_TEXTURE_RECTANGLE (v2)

2010-08-17 Thread Luca Barbieri
Changes in v3: - Rework to use the bind flags Changes in v2: - No longer set the flag in compress_with_blit depending on NPOT, let the driver do that if needed Allow to pass flags to st_texture_create and take advantage of that to tell the pipe driver that a texture is going to be used with

[Mesa-dev] [PATCH 2/4] gallium: only use PIPE_BIND_SAMPLER_VIEW_* flags actually needed

2010-08-17 Thread Luca Barbieri
This changes the whole codebase to specify precisely which sampling capabilities they actually need. It also removes PIPE_BIND_SAMPLER_VIEW since all users are moved to either more specific flags, or PIPE_BIND_SAMPLER_VIEW_ALL. This prevents accidentally specifying PIPE_SAMPLER_VIEW incorrectly.

[Mesa-dev] glsl2: compile error on MSVC (string constant exceeds 65535 bytes)

2010-08-17 Thread Aras Pranckevicius
Hi, Since commits 2f9ecc818d67 and a433cd286c60 (Add builtins profile for GLSL 1.30), GLSL2 does not compile on MSVC 2008: builtin_function.cpp(15821) : fatal error C1091: compiler limit: string exceeds 65535 bytes in length It does seem quite stupid to have 64k limit for strings in a 21st

Re: [Mesa-dev] [PATCH 1/4] gallium: add resource normalization flags (v3)

2010-08-17 Thread Keith Whitwell
On Tue, 2010-08-17 at 00:09 -0700, Luca Barbieri wrote: + +/* State trackers should support using either normalization in all internal drawing + * code, using these flag to tell which one to use. + * + * If they do not have such support, then they should indicate the + * normalization

Re: [Mesa-dev] Merging translate and unnormalized-coords-hint?

2010-08-17 Thread Keith Whitwell
- In terms of the unnormalized change, I think I'd like to go over it one more time. It looks like there are a few things happening at once: a) The state tracker is informing the driver whether it will use normalized texcoords, unnormalized texcoords or both for a given texture.

Re: [Mesa-dev] [PATCH 1/4] gallium: add resource normalization flags (v3)

2010-08-17 Thread Luca Barbieri
Again, I don't see why this needs to be per-resource information -- surely the hardware has a single preference that it keeps under all circumstances? For nv30 there are two layouts that each require one normalization, so the preference (actually, a requirement) depends on the layout and hence

Re: [Mesa-dev] Merging translate and unnormalized-coords-hint?

2010-08-17 Thread Luca Barbieri
What's wrong with addressing these needs respectively by: a) Adding a new pipe_texture_target enum PIPE_TEXTURE_RECT to capture the GL usage (unnormalized, clamp).  Think about CL later. I think this is essentially equivalent to my latest patchset in the following sense: - Your

Re: [Mesa-dev] Merging translate and unnormalized-coords-hint?

2010-08-17 Thread Roland Scheidegger
On 17.08.2010 16:53, Keith Whitwell wrote: - In terms of the unnormalized change, I think I'd like to go over it one more time. It looks like there are a few things happening at once: a) The state tracker is informing the driver whether it will use normalized texcoords,

Re: [Mesa-dev] [PATCH 1/4] gallium: add resource normalization flags (v3)

2010-08-17 Thread Alex Deucher
On Tue, Aug 17, 2010 at 10:56 AM, Luca Barbieri l...@luca-barbieri.com wrote: I don't see the need for this any flag -- if this is an internally generated texture, the state tracker can query the driver, find out what normalization it prefers, and then use that explicitly. It is for internal

Re: [Mesa-dev] Merging translate and unnormalized-coords-hint?

2010-08-17 Thread Luca Barbieri
By the way, to make this clearer, the _absolute_ requirements to have a correct nv30 driver without any emulation code are those: 1. The driver must know whether a POT texture is GL_TEXTURE_2D or is a GL_TEXTURE_RECTANGLE that just happens to be POT 2. If the driver is nv30, the state tracker

[Mesa-dev] [Bug 27265] GLSL Compiler doesnt link the attached vertex shader

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27265 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |RESOLVED

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 27265, which changed state. Bug 27265 Summary: GLSL Compiler doesnt link the attached vertex shader https://bugs.freedesktop.org/show_bug.cgi?id=27265 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 27261, which changed state. Bug 27261 Summary: GLSL Compiler fails on the following vertex shader https://bugs.freedesktop.org/show_bug.cgi?id=27261 What|Old Value |New Value

[Mesa-dev] [Bug 26224] [GLSL] Cannot get location of a uniform struct member

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=26224 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |RESOLVED

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 26224, which changed state. Bug 26224 Summary: [GLSL] Cannot get location of a uniform struct member https://bugs.freedesktop.org/show_bug.cgi?id=26224 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 26001, which changed state. Bug 26001 Summary: [GLSL 1.10] constructing matrix from matrix succeeds https://bugs.freedesktop.org/show_bug.cgi?id=26001 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 26000, which changed state. Bug 26000 Summary: [GLSL] allowing different parameter qualifier between the function definition and declaration https://bugs.freedesktop.org/show_bug.cgi?id=26000 What|Old

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25999, which changed state. Bug 25999 Summary: [GLSL] embedded structure constructor fails to compile https://bugs.freedesktop.org/show_bug.cgi?id=25999 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25878, which changed state. Bug 25878 Summary: [GLSL] sampler is converted to int successfully https://bugs.freedesktop.org/show_bug.cgi?id=25878 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25877, which changed state. Bug 25877 Summary: [GLSL 1.10] implicit conversion from int to float should not be allowed https://bugs.freedesktop.org/show_bug.cgi?id=25877 What|Old Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25830, which changed state. Bug 25830 Summary: [GLSL] allowing non-constant-expression as const declaration initializer https://bugs.freedesktop.org/show_bug.cgi?id=25830 What|Old Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 16854, which changed state. Bug 16854 Summary: GLSL function call at global scope causes SEGV https://bugs.freedesktop.org/show_bug.cgi?id=16854 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 16856, which changed state. Bug 16856 Summary: GLSL indexing of unsized array results in assertion failure https://bugs.freedesktop.org/show_bug.cgi?id=16856 What|Old Value |New Value

[Mesa-dev] [Bug 18659] Crash in shader/slang/slang_codegen.c _slang_gen_function_call_name()

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=18659 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |RESOLVED

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 18659, which changed state. Bug 18659 Summary: Crash in shader/slang/slang_codegen.c _slang_gen_function_call_name() https://bugs.freedesktop.org/show_bug.cgi?id=18659 What|Old Value

[Mesa-dev] [Bug 24553] shader compilation times explode when using more () pairs

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=24553 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |RESOLVED

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 24553, which changed state. Bug 24553 Summary: shader compilation times explode when using more () pairs https://bugs.freedesktop.org/show_bug.cgi?id=24553 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25769, which changed state. Bug 25769 Summary: [GLSL] float can be implicitly converted to int https://bugs.freedesktop.org/show_bug.cgi?id=25769 What|Old Value |New Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25808, which changed state. Bug 25808 Summary: [GLSL] const variable is modified successfully https://bugs.freedesktop.org/show_bug.cgi?id=25808 What|Old Value |New Value

Re: [Mesa-dev] Merging translate and unnormalized-coords-hint?

2010-08-17 Thread Roland Scheidegger
On 17.08.2010 17:43, Luca Barbieri wrote: I'm not sure it's really worth bothering about all those cases to optimize some divs or muls away. Yes, the gain might be marginal, but once you change internal code to support either normalization, supporting fine grained preferences is a tiny

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25826, which changed state. Bug 25826 Summary: [GLSL] declaring an unsized array then re-declaring with a size fails https://bugs.freedesktop.org/show_bug.cgi?id=25826 What|Old Value

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 25827, which changed state. Bug 25827 Summary: [GLSL] vector constructor accepts too many arguments successfully https://bugs.freedesktop.org/show_bug.cgi?id=25827 What|Old Value |New

Re: [Mesa-dev] [RFC] [PATCH 0/4] New coordinate normalization patches with bind flags

2010-08-17 Thread Roland Scheidegger
On 17.08.2010 17:48, Luca Barbieri wrote: Well I don't like drivers changing the hints flag on their own, overwriting what the state tracker set. Hence the suggestion to just always use normalized coords unless the driver can't handle it (which can be a usual global query). In my second

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 26990, which changed state. Bug 26990 Summary: [GLSL] variable declaration in while fails to compile https://bugs.freedesktop.org/show_bug.cgi?id=26990 What|Old Value |New Value

[Mesa-dev] [Bug 29601] Crash in video games in the new glsl compiler

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29601 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |ASSIGNED

Re: [Mesa-dev] [RFC] [PATCH 0/4] New coordinate normalization patches with bind flags

2010-08-17 Thread Luca Barbieri
Because there is some expectation (with the exception of the private flags) this is state set by the state tracker. Yes, currently it's this way, but I think that overall, this is suboptimal. For instance, I think that drivers should override the bind flags, setting them to what the resource

[Mesa-dev] [Bug 29607] Global scope re-declarations regression after GLSL2 merge

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29607 Eric Anholt e...@anholt.net changed: What|Removed |Added Priority|medium |high

[Mesa-dev] [Bug 27403] GLSL struct causing Invalid src register file ... error

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27403 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |ASSIGNED

[Mesa-dev] [PATCH 2/3] gallium: use unnormalized coords internally if the driver asks for them (v6)

2010-08-17 Thread Luca Barbieri
Changes in v6: - Remove hunks about bind flags Changes in v5: - Use the new flags Changes in v4: - Modify st_Bitmap to use unnormalized coordinates if the driver wants it to Changes in v3: - Updated comment Changes in v2: - u_blit no longer sets the unnormalized hint flag for NPOT textures:

[Mesa-dev] [Bug 29622] New: glGetUniformLocation does not work between glNewList and glEndList

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29622 Summary: glGetUniformLocation does not work between glNewList and glEndList Product: Mesa Version: unspecified Platform: Other OS/Version: All Status: NEW

Re: [Mesa-dev] [RFC] [PATCH 0/3] Coordinate normalization, third attempt

2010-08-17 Thread Luca Barbieri
Using a flag instead of a new texture target allows to avoid hundreds of changes to existing code, and allows drivers for modern hardware to just ignore this flag. I grepped a bit through the code, and a new texture target seems easier than expected: apparently there are only about 36 checks

[Mesa-dev] [Bug 27748] MesaLib-7.8.1.zip windows compilation error

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27748 Karl Schultz karl.w.schu...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 29623] Regression: GLSL linker aborts when linking a single vertex program containing a varying.

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29623 Nick Bowler nbow...@draconx.ca changed: What|Removed |Added Attachment #37927|text/x-c|text/plain

[Mesa-dev] [Bug 29623] Regression: GLSL linker aborts when linking a single vertex program containing a varying.

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29623 Ian Romanick i...@freedesktop.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Mesa-dev] [Bug 29431] Nurb demos fail when callists are executed.

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29431 Eric Anholt e...@anholt.net changed: What|Removed |Added Component|Drivers/DRI/i965|Mesa core

[Mesa-dev] [PATCH] r600c: Handle reads from PROGRAM_OUTPUT.

2010-08-17 Thread Henri Verbeet
--- src/mesa/drivers/dri/r600/r700_assembler.c | 25 +++-- src/mesa/drivers/dri/r600/r700_assembler.h |2 +- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r700_assembler.c b/src/mesa/drivers/dri/r600/r700_assembler.c index

[Mesa-dev] [Bug 29638] Mesa demos fpglsl run incorrectly on glsl2 branch

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29638 --- Comment #1 from wang,jinjin jinjin.w...@intel.com 2010-08-17 22:41:54 PDT --- Created an attachment (id=37937) -- (https://bugs.freedesktop.org/attachment.cgi?id=37937) test picture on master not merged -- Configure bugmail: