[Mesa-dev] [Bug 29638] [glsl2]Mesa demo fpglsl render incorrectly

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29638 wang,jinjin changed: What|Removed |Added Summary|Mesa demos fpglsl run |[glsl2]Mesa demo fpglsl

[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 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: https://bugs.freedesktop.org/userp

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29638 Summary: Mesa demos fpglsl run incorrectly on glsl2 branch Product: Mesa Version: git Platform: All OS/Version: Linux (All) Status: NEW Severity: normal Priority: m

[Mesa-dev] [Bug 25994] [GM45][GLSL] 'return' statement in vertex shader may cause GPU hang

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=25994 Eric Anholt changed: What|Removed |Added Summary|[i915][GLSL] 'return' |[GM45][GLSL] 'return' |s

[Mesa-dev] [Bug 29627] New: [glsl2] Matrix comparison not implemented for non-constants

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29627 Summary: [glsl2] Matrix comparison not implemented for non-constants Product: Mesa Version: git Platform: All OS/Version: All Status: NEW Severity: normal

[Mesa-dev] [Bug 29624] New: crash in _mesa_DeleteTextures, in _mesa_HashLookup_unlocked

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29624 Summary: crash in _mesa_DeleteTextures, in _mesa_HashLookup_unlocked Product: Mesa Version: 7.6 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW

[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 9c95

[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 changed: What|Removed |Added Component|Drivers/DRI/i965|Mesa core AssignedTo|e...@anholt.n

[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 changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|mesa-...@list

[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 changed: What|Removed |Added Attachment #37927|text/x-c|text/plain mime type|

[Mesa-dev] [Bug 29623] New: 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 Summary: Regression: GLSL linker aborts when linking a single vertex program containing a varying. Product: Mesa Version: unspecified Platform: Other OS/Version: All

[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 changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

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 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

[Mesa-dev] [PATCH 3/3] st/mesa: set PIPE_RESOURCE_FLAG_TEXTURE_RECT_SEMANTICS for GL_TEXTURE_RECTANGLE (v3)

2010-08-17 Thread Luca Barbieri
Changes in v3: - Renamed flag from PIPE_RESOURCE_FLAG_UNNORMALIZED_COORDS_HINT 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 tex

[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: t

[Mesa-dev] [PATCH 1/3] gallium: add resource normalization flags (v4)

2010-08-17 Thread Luca Barbieri
Changes in v4: - Use a single flag for state tracker -> driver like in v1, but with a better name and separated from the other flags - Fully clarify semantics of that flag Changes in v3: - Rework to use multiple flags Changes in v2: - Add a much longer and better comment This allows: 1. The st

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

2010-08-17 Thread Luca Barbieri
This is a mix of my first and second attempts, and tries to include the best received parts from each. In general, it tries to be both unobtrusive, and have clean semantics. >From the first attempt, it restores the usage of a single st->driver flag instead of 4 bind flags, which is now called PIPE

Re: [Mesa-dev] [PATCH] Mesa prog_optimize.c: solve glsl2 regression

2010-08-17 Thread Segovia, Benjamin
BTW, the patch is a real fix not a workaround. This is what has to be done. Ben From: mesa-dev-bounces+benjamin.segovia=intel@lists.freedesktop.org [mesa-dev-bounces+benjamin.segovia=intel@lists.freedesktop.org] On Behalf Of Segovia, Benjamin [ben

[Mesa-dev] [Bug 29620] New: link errors in glcpp/glcpp

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29620 Summary: link errors in glcpp/glcpp Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Severity: critical Priority: medium

Re: [Mesa-dev] [PATCH] Mesa prog_optimize.c: solve glsl2 regression

2010-08-17 Thread Segovia, Benjamin
Yes, absolutely. The code was just wrong. Ben From: Ian Romanick [...@freedesktop.org] Sent: Tuesday, August 17, 2010 1:09 PM To: Segovia, Benjamin Cc: mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] [PATCH] Mesa prog_optimize.c: solve glsl2 regressi

Re: [Mesa-dev] [PATCH] Mesa prog_optimize.c: solve glsl2 regression

2010-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Benjamin Segovia wrote: > - In one optimization pass, register files may have been messed therefore > merging instructions which use the same index in two different register > files > > - The fix consists in only processing temporary registers as i

[Mesa-dev] [Bug 29420] Amnesia / HPL2 RendererFeatTest - not rendering correctly

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29420 --- Comment #4 from Sven Arvidsson 2010-08-17 10:28:09 PDT --- The GLSL errors are gone now, it's still not rendering correctly though, probably because of these remaining errors: ERROR: Could not create texture 'LinearDepth' ERROR: Frame buffer

[Mesa-dev] [Bug 27266] Cubosphere: undefined function 'texture2D' / incompatible types in assignment

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27266 Sven Arvidsson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[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 changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|mesa-...@lists

[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 changed: What|Removed |Added Priority|medium |high AssignedTo|mesa-...@lists.fre

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 a

[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 changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|mesa-...@lists

[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 ---

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 s

[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 25829, which changed state. Bug 25829 Summary: [GLSL] allowing non-void function without returning value https://bugs.freedesktop.org/show_bug.cgi?id=25829 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 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 Va

[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 |Ne

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 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

[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 25664, which changed state. Bug 25664 Summary: [GLSL] re-declaring an empty array fails to compile https://bugs.freedesktop.org/show_bug.cgi?id=25664 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 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 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 changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[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 |Ne

[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 changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[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 16856] GLSL indexing of unsized array results in assertion failure

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

[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 16854] GLSL function call at global scope causes SEGV

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

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

2010-08-17 Thread Luca Barbieri
> 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 patchset, those flags are owned by the drive

[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 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 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 ---

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

2010-08-17 Thread Luca Barbieri
> 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 change. > Hence one flag (for tex rect) would be

[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 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 Val

[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 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 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 changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[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 27261] GLSL Compiler fails on the following vertex shader

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

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

2010-08-17 Thread Roland Scheidegger
On 17.08.2010 17:22, Luca Barbieri wrote: >> 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 p

[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 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 changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

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 _must

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 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 textures, whe

[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 28374, which changed state. Bug 28374 Summary: SIGSEGV shader/slang/slang_typeinfo.c:534 https://bugs.freedesktop.org/show_bug.cgi?id=28374 What|Old Value |New Value -

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 texco

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 PIPE_TEXTUR

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 he

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

2010-08-17 Thread Luca Barbieri
> 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 textures, where we need to ask for the ability to use it as a sampler view,

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.

[Mesa-dev] [Bug 29613] New: OSMesa and GL cannot be linked together

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29613 Summary: OSMesa and GL cannot be linked together Product: Mesa Version: git Platform: All OS/Version: All Status: NEW Severity: normal Priority: medium Com

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

2010-08-17 Thread Roland Scheidegger
On 17.08.2010 16:12, Luca Barbieri wrote: >> I don't like it, imho adds too much interface clutter with little gain >> (for most hardware). > There is a tradeoff here between a clean and general but intrusive > approach (this one), and a minimal but conceptually imperfect approach > (the previous o

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] [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: > -#define PIPE_BIND_STREAM_OUTPUT(1 << 11) /* > set_stream_output_buffers */ > + > +/* Sampler views can be created based on this texture. Only the > + * normalization preferred by the driver can be used, unless the > other > + * flag

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

2010-08-17 Thread Luca Barbieri
> I don't like it, imho adds too much interface clutter with little gain > (for most hardware). There is a tradeoff here between a clean and general but intrusive approach (this one), and a minimal but conceptually imperfect approach (the previous one). Keith didn't seem to like the previous minima

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

2010-08-17 Thread Roland Scheidegger
On 17.08.2010 09:09, Luca Barbieri wrote: > This is a new approach to the coordinate normalization issue. > I only compile tested this, and posted it to find out if I'm on the right > track, and will do more testing if so. > > On the state tracker -> driver front, I no longer have any resource fla

[Mesa-dev] [Bug 29608] Regression crash when a function return type is invalid (following GLSL2 merge)

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29608 --- Comment #1 from Cedric Vivier 2010-08-17 05:10:14 PDT --- FWIW I forgot to add previous error for such error was pre-GLSL2 : "" Error: undeclared type name 'foo' "" -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email

[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 centu

Re: [Mesa-dev] [PATCH] gallivm: Fix and re-enable MMX-disabling code

2010-08-17 Thread José Fonseca
On Mon, 2010-08-16 at 10:56 -0700, José Fonseca wrote: > On Mon, 2010-08-16 at 10:30 -0700, nobled wrote: > > I think this might be the problem that kept -disable-mmx from working; > > can somebody test it? (attached) > > > > @@ -152,15 +151,13 @@ lp_set_target_options(void) > > * See als

[Mesa-dev] [Bug 29608] New: Regression crash when a function return type is invalid (following GLSL2 merge)

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29608 Summary: Regression crash when a function return type is invalid (following GLSL2 merge) Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Sta

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

2010-08-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29607 Summary: Global scope re-declarations regression after GLSL2 merge Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW Sev

[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] [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 unn

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

2010-08-17 Thread Luca Barbieri
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: the driver should do that if it wants to Current

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

2010-08-17 Thread Luca Barbieri
Changes in v3: - Rework to use multiple flags Changes in v2: - Add a much longer and better comment This allows: 1. The state tracker to tell the driver which normalizations it needs 2. The driver to tell the state tracker which normalization it prefers --- src/gallium/include/pipe/p_defines.h |

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

2010-08-17 Thread Luca Barbieri
This is a new approach to the coordinate normalization issue. I only compile tested this, and posted it to find out if I'm on the right track, and will do more testing if so. On the state tracker -> driver front, I no longer have any resource flags and instead split PIPE_BIND_SAMPLER_VIEW into 4 s