Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Corbin Simpson
On Fri, Aug 13, 2010 at 8:03 PM, Luca Barbieri wrote: >> #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) >> #define PIPE_ARCH_LITTLE_ENDIAN >> #elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) >> #define PIPE_ARCH_BIG_ENDIAN >> #else >> #define PIPE_ARCH_UNKNOWN_ENDIAN >> #endif >

Re: [Mesa-dev] Merge of glsl2 branch to master

2010-08-13 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian Romanick wrote: > I propose that we merge master to glsl2 on *Friday, August 13th* (one > week from today). Barring unforeseen issues, I propose that we merge > glsl2 to master on *Monday, August 16th*. The master -> glsl2 merge is complete. The

Re: [Mesa-dev] [PATCH 2/2] translate_sse: major rewrite (v4)

2010-08-13 Thread Luca Barbieri
Changes in v4: - Use x86_target() and x86_target_caps() - Enable translate_sse in x86-64, but not in Win64 Changes in v3: - Win64 support (untested) - Use u_cpu_detect.h constants instead of #ifs Changes in v2: - Minimize #ifs - Give a name to magic number CHANNELS_0001 - Add support for CPUs wit

[Mesa-dev] [PATCH] u_cpu_detect: remove arch and little_endian

2010-08-13 Thread Luca Barbieri
This logic duplicates the one in p_config.h, so remove it and adjust the only two places that were using it. --- src/gallium/auxiliary/gallivm/lp_bld_pack.c |7 +++ src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c |6 +- src/gallium/auxiliary/util/u_cpu_detect.c |

[Mesa-dev] [PATCH 1/2] rtasm: add minimal x86-64 support and new instructions (v3)

2010-08-13 Thread Luca Barbieri
Changes in v3: - Add target and target caps functions, so that they could be different in principle from the current CPU and they don't need #ifs to check Changes in v2: - Win64 support (untested) - Use u_cpu_detect.h constants instead of #ifs This commit adds minimal x86-64 support: only movs

[Mesa-dev] [PATCH 0/2] translate_sse/rtasm improvements (v4)

2010-08-13 Thread Luca Barbieri
This new version replaces direct use of u_cpu_detect.h with rtasm-provided helpers to check the target and caps. This seems the cleanest solution, as it allows to target other CPUs than the running one in theory, and avoids both #ifdefs and duplicating the p_config.h logic. The u_cpu_detect.h pat

[Mesa-dev] [Bug 29572] [glsl] MSVC build fails with some C99 math functions

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29572 Ian Romanick changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|mesa-...@list

[Mesa-dev] [Bug 29573] [glsl2] struct within a struct causes an assertion failure

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29573 Ian Romanick changed: What|Removed |Added AssignedTo|mesa-...@lists.freedesktop. |e...@anholt.net |org

[Mesa-dev] [Bug 29573] New: [glsl2] struct within a struct causes an assertion failure

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29573 Summary: [glsl2] struct within a struct causes an assertion failure Product: Mesa Version: git Platform: All OS/Version: All Status: NEW Severity: normal

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Luca Barbieri
> #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64) > #define PIPE_ARCH_LITTLE_ENDIAN > #elif defined(PIPE_ARCH_PPC) || defined(PIPE_ARCH_PPC_64) > #define PIPE_ARCH_BIG_ENDIAN > #else > #define PIPE_ARCH_UNKNOWN_ENDIAN > #endif Note that this isn't really correct: there endianness must be k

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Luca Barbieri
I came up with yet another solution, which I believe is the right one. We remove the arch/abi/endianness in u_cpu_detect.h, but add them as inline function helpers in rtasm. Currently they would return a constant, but could be changed if we ever want rtasm to target anything but the current runnin

[Mesa-dev] [Bug 29572] New: [glsl] MSVC build fails with some C99 math functions

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29572 Summary: [glsl] MSVC build fails with some C99 math functions Product: Mesa Version: git Platform: x86 (IA32) OS/Version: Windows (All) Status: NEW Severity: blocker

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

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 29500, which changed state. Bug 29500 Summary: [glsl2]Mesa demo shadow_sampler fail to run with error: `shadow2DRectProj' undeclared https://bugs.freedesktop.org/show_bug.cgi?id=29500 What|Old Value

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

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 29537, which changed state. Bug 29537 Summary: [glsl2] texture2DLod() should not be accepted by fragment programs https://bugs.freedesktop.org/show_bug.cgi?id=29537 What|Old Value |New V

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Luca Barbieri
> There's no merit in duplicating in util_caps what's already provided by > p_config.h / p_compiler.h Indeed it's not a great thing. However, Keith wanted to be able to check those with ifs instead of #ifdefs, and it does indeed make the code a bit nicer. But the current definitions in p_config.h

[Mesa-dev] [Bug 29571] [glsl2] glcpp/glcpp-parse.y(312) : error C2146: syntax error : missing ')' before identifier 'PRIiMAX'

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29571 Ian Romanick changed: What|Removed |Added AssignedTo|e...@anholt.net |mesa-...@lists.freedesktop.

[Mesa-dev] [Bug 29545] [bisected glsl2]piglit glslparsertest_preprocess1.frag fails

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29545 Ian Romanick changed: What|Removed |Added AssignedTo|mesa-...@lists.freedesktop. |cwo...@cworth.org |org

[Mesa-dev] [Bug 29545] [bisected glsl2]piglit glslparsertest_preprocess1.frag fails

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29545 Ian Romanick changed: What|Removed |Added OS/Version|Linux (All) |All Component|Drivers/DRI/i965

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

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 29540, which changed state. Bug 29540 Summary: [glsl2] problem with vertex attribute locations and draw-time validation https://bugs.freedesktop.org/show_bug.cgi?id=29540 What|Old Value

Re: [Mesa-dev] [PATCH] Mesa prog_optimize.c: better optimization for Mesa programs

2010-08-13 Thread Segovia, Benjamin
Just looked at your modifications. I will try to be more GL/mesa style compliant for the variable types. Thanks for your help Ben From: Brian Paul [bri...@vmware.com] Sent: Friday, August 13, 2010 4:01 PM To: Segovia, Benjamin Cc: mesa-dev@lists.freedeskto

Re: [Mesa-dev] [PATCH] Mesa prog_optimize.c: better optimization for Mesa programs

2010-08-13 Thread Brian Paul
On 08/11/2010 09:21 PM, Segovia, Benjamin wrote: Corrected. I rescaned the whole code and tried to perform more aggressive checks. I rerun all the tests, warsow and nexuiz. Please find the updated patch attached. Committed. Thanks. -Brian ___ mesa

Re: [Mesa-dev] [PATCH] dri/r300: test for FEATURE defines

2010-08-13 Thread nobled
Chia-I Wu wrote: >> Fixes a fatal build error when compiling just OpenGL ES libraries, since >> FEATURE_EXT_framebuffer_blit is disabled then, so the BlitFramebuffer >> member doesn't exist. > Is this change enough to make dri_r300 function as a GLES only driver? > > To be honest, I am a little re

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread José Fonseca
On Fri, 2010-08-13 at 21:41 +0100, José Fonseca wrote: > On Fri, 2010-08-13 at 06:47 -0700, Luca Barbieri wrote: > > A few related changes: > > 1. Make x86-64 its own architecture (nothing was using so > >util_cpu_caps.arch, so nothing can be affected) > > Just remove util_cpu_caps.arch. It's

Re: [Mesa-dev] [PATCH 2/3] rtasm: add minimal x86-64 support and new instructions (v2)

2010-08-13 Thread José Fonseca
Luca, This is great stuff. But one request: if Win64 is untested, please make sure it is disabled by default until somebody had opportunity to test it. Unfortunately I'm really busy with other stuff ATM and don't have the time. Jose On Fri, 2010-08-13 at 06:47 -0700, Luca Barbieri wrote: > Cha

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread José Fonseca
On Fri, 2010-08-13 at 06:47 -0700, Luca Barbieri wrote: > A few related changes: > 1. Make x86-64 its own architecture (nothing was using so >util_cpu_caps.arch, so nothing can be affected) Just remove util_cpu_caps.arch. It's there simply due to its historical ancestry. We have PIPE_ARCH alre

[Mesa-dev] [Bug 29460] GNU/Hurd support

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29460 Jon TURNEY changed: What|Removed |Added CC||jon.tur...@dronecode.org.uk --- Comment #3

[Mesa-dev] [PATCH 3/3] translate_sse: major rewrite (v3)

2010-08-13 Thread Luca Barbieri
Changes in v3: - Win64 support (untested) - Use u_cpu_detect.h constants instead of #ifs Changes in v2: - Minimize #ifs - Give a name to magic number CHANNELS_0001 - Add support for CPUs without SSE (only memcpy and swizzles, like non SSE2) - Fixed comments translate_sse is currently very limited

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

2010-08-13 Thread Luca Barbieri
Changes in v2: - Minimize #ifs - Give a name to magic number CHANNELS_0001 - Add support for CPUs without SSE (only memcpy and swizzles, like non SSE2) - Fixed comments translate_sse is currently very limited to the point of being useless in essentially all cases. In particular, it only support s

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

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29540 Ian Romanick changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|mesa-...@list

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

2010-08-13 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 José Fonseca wrote: > I've pushed a new branch glsl2-win32 that includes Aras' patch, and all > necessary fixes to get at least MinGW build successfully. I merged all of these. > I had to rename some tokens in order to avoid collisions with windows.

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Chia-I Wu
On Fri, Aug 13, 2010 at 11:35 PM, Keith Whitwell wrote: > On Fri, 2010-08-13 at 08:09 -0700, Chia-I Wu wrote: >> On Fri, Aug 13, 2010 at 10:51 PM, Keith Whitwell wrote: >> > On Fri, 2010-08-13 at 07:46 -0700, Chia-I Wu wrote: >> >> On Fri, Aug 13, 2010 at 10:14 PM, Keith Whitwell >> >> wrote: >

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Keith Whitwell
On Fri, 2010-08-13 at 08:09 -0700, Chia-I Wu wrote: > On Fri, Aug 13, 2010 at 10:51 PM, Keith Whitwell wrote: > > On Fri, 2010-08-13 at 07:46 -0700, Chia-I Wu wrote: > >> On Fri, Aug 13, 2010 at 10:14 PM, Keith Whitwell wrote: > >> > On Fri, 2010-08-13 at 07:04 -0700, Chia-I Wu wrote: > >> >> Hi,

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Chia-I Wu
On Fri, Aug 13, 2010 at 11:09 PM, Chia-I Wu wrote: > On Fri, Aug 13, 2010 at 10:51 PM, Keith Whitwell wrote: >> On Fri, 2010-08-13 at 07:46 -0700, Chia-I Wu wrote: >>> On Fri, Aug 13, 2010 at 10:14 PM, Keith Whitwell wrote: >>> > On Fri, 2010-08-13 at 07:04 -0700, Chia-I Wu wrote: >>> >> Hi, >>>

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

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29540 --- Comment #2 from Brian Paul 2010-08-13 08:10:00 PDT --- Created an attachment (id=37848) View: https://bugs.freedesktop.org/attachment.cgi?id=37848 Review: https://bugs.freedesktop.org/review?bug=29540&attachment=37848 Patch to fix glDrawA

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Chia-I Wu
On Fri, Aug 13, 2010 at 10:51 PM, Keith Whitwell wrote: > On Fri, 2010-08-13 at 07:46 -0700, Chia-I Wu wrote: >> On Fri, Aug 13, 2010 at 10:14 PM, Keith Whitwell wrote: >> > On Fri, 2010-08-13 at 07:04 -0700, Chia-I Wu wrote: >> >> Hi, >> >> >> >> There are two primitive transformations in galliu

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

2010-08-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29540 --- Comment #1 from Brian Paul 2010-08-13 08:09:05 PDT --- The new piglit test glsl-getattriblocation test returns attrib_loc=0 for the old compiler and attrib_loc=1 for the new compiler. This causes the glDrawArrays/Elements() validation test

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Keith Whitwell
On Fri, 2010-08-13 at 07:46 -0700, Chia-I Wu wrote: > On Fri, Aug 13, 2010 at 10:14 PM, Keith Whitwell wrote: > > On Fri, 2010-08-13 at 07:04 -0700, Chia-I Wu wrote: > >> Hi, > >> > >> There are two primitive transformations in gallium draw module. In > >> varray, primitives are "split"ted. When

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Chia-I Wu
On Fri, Aug 13, 2010 at 10:14 PM, Keith Whitwell wrote: > On Fri, 2010-08-13 at 07:04 -0700, Chia-I Wu wrote: >> Hi, >> >> There are two primitive transformations in gallium draw module.  In >> varray, primitives are "split"ted.  When a primitive has more vertices >> than the middle end can handle

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

2010-08-13 Thread Aras Pranckevicius
> I had to rename some tokens in order to avoid collisions with windows.h > defines. Aras didn't mention this problem before. I mentioned this to Eric in private conversation, but on this list I only talked about talloc specific changes. Yeah, in the glsl2 parser some tokens clash with windows he

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Luca Barbieri
> #define symbols are usually uppercase.  Is there a reason why you're using > lowercase?  I'd prefer the code to follow typical conventions. Currently they can't be used in preprocessor directives because they evaluate to enums, so it seems better to treat them as variables, and thus lowercase.

Re: [Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Keith Whitwell
On Fri, 2010-08-13 at 07:04 -0700, Chia-I Wu wrote: > Hi, > > There are two primitive transformations in gallium draw module. In > varray, primitives are "split"ted. When a primitive has more vertices > than the middle end can handle, varray splits the primitive and calls > the middle end multip

[Mesa-dev] draw: Replace varray and vcache by vsplit

2010-08-13 Thread Chia-I Wu
Hi, There are two primitive transformations in gallium draw module. In varray, primitives are "split"ted. When a primitive has more vertices than the middle end can handle, varray splits the primitive and calls the middle end multiple times. In vcache, primitives are "decompose"d. More advance

Re: [Mesa-dev] [PATCH 0/3] rtasm/translate_sse rework (v3)

2010-08-13 Thread Keith Whitwell
On Fri, 2010-08-13 at 06:47 -0700, Luca Barbieri wrote: > This is a new version of just the rtasm/translate_sse patches. > > This version has the Win64 support built-in. > > In addition, it follows Keith's idea to use constants instead of #ifs. > > To achieve this, u_cpu_detect.h is enhanced

Re: [Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Brian Paul
On 08/13/2010 07:47 AM, Luca Barbieri wrote: A few related changes: 1. Make x86-64 its own architecture (nothing was using so util_cpu_caps.arch, so nothing can be affected) 2. Turn the CPU arch and endianness into macros, so that the compiler can evaluate that at constant time and elimin

[Mesa-dev] [PATCH 3/3] translate_sse: major rewrite (v3)

2010-08-13 Thread Luca Barbieri
Changes in v3: - Win64 support (untested) - Use u_cpu_detect.h constants instead of #ifs Changes in v2: - Minimize #ifs - Give a name to magic number CHANNELS_0001 - Add support for CPUs without SSE (only memcpy and swizzles, like non SSE2) - Fixed comments translate_sse is currently very limited

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

2010-08-13 Thread Luca Barbieri
> What about just making things prettier by converting the #if's into > regular if statements?  It would be easier to read if nothing else, > though it would mean compiling at least a stub version of the x86-64 > opcode emitters on x86. > > In fact there's nothing preventing us compiling the entire

[Mesa-dev] [PATCH 2/3] rtasm: add minimal x86-64 support and new instructions (v2)

2010-08-13 Thread Luca Barbieri
Changes in v2: - Win64 support (untested) - Use u_cpu_detect.h constants instead of #ifs 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 trans

[Mesa-dev] [PATCH 1/3] u_cpu_detect: make arch and little_endian constants, add abi and x86-64

2010-08-13 Thread Luca Barbieri
A few related changes: 1. Make x86-64 its own architecture (nothing was using so util_cpu_caps.arch, so nothing can be affected) 2. Turn the CPU arch and endianness into macros, so that the compiler can evaluate that at constant time and eliminate dead code 3. Add util_cpu_abi to know about n

[Mesa-dev] [PATCH 0/3] rtasm/translate_sse rework (v3)

2010-08-13 Thread Luca Barbieri
This is a new version of just the rtasm/translate_sse patches. This version has the Win64 support built-in. In addition, it follows Keith's idea to use constants instead of #ifs. To achieve this, u_cpu_detect.h is enhanced so that architecture and endianness are now compile time constants (and t

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

2010-08-13 Thread José Fonseca
On Thu, 2010-08-12 at 14:46 -0700, Ian Romanick wrote: > -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 b

[Mesa-dev] Nouveau errors in /var/log/messages - what are they and what do they mean?

2010-08-13 Thread Alex Buell
What does all these errors that the X11 Nouveau driver spews out in my /var/log/message mean? They don't seem to do any harm but I was wondering whether it might be having an impact on the driver's performance? Aug 13 13:05:54 lithium kernel: [drm] nouveau :01:00.0: Allocating FIFO number 3

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

2010-08-13 Thread Keith Whitwell
On Fri, 2010-08-13 at 04:46 -0700, Luca Barbieri wrote: > > Is it possible to use an explicit flag for the (out_chans == 5) case? > > Gave it the name CHANNELS_0001 and added a comment. > > > Is it possible to do this without all the #ifdefs? Even if statements > > based on a preprocessor variab

[Mesa-dev] [PATCH] rtasm/translate_sse: support Win64

2010-08-13 Thread Luca Barbieri
I just discovered that Microsoft wisely decided to use their own calling convention on Win64... This hasn't actually been tested on Win64 though. --- src/gallium/auxiliary/rtasm/rtasm_x86sse.c | 15 +++ src/gallium/auxiliary/translate/translate_sse.c | 21 +---

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

2010-08-13 Thread Luca Barbieri
> In this change you've got an int value (copy_size) which has some > special meaning when negative -- can you add comments explaining what > the meaning of a negative size is?  Is there a way to use some more > explicit flag value to indicate this condition? I think it makes sense, since -1 stand

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

2010-08-13 Thread Luca Barbieri
Changes in v2: - Minimize #ifs - Give a name to magic number CHANNELS_0001 - Add support for CPUs without SSE (only memcpy and swizzles, like non SSE2) - Fixed comments translate_sse is currently very limited to the point of being useless in essentially all cases. In particular, it only support s

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

2010-08-13 Thread Luca Barbieri
> Is it possible to use an explicit flag for the (out_chans == 5) case? Gave it the name CHANNELS_0001 and added a comment. > Is it possible to do this without all the #ifdefs?  Even if statements > based on a preprocessor variable would be easier to read, but better > still would be some sort of

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

2010-08-13 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-13 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-13 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-13 Thread Luca Barbieri
This moves the common code into a separate ALWAYS_INLINE function. --- .../auxiliary/translate/translate_generic.c| 177 +++- 1 files changed, 62 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 (v2)

2010-08-13 Thread Luca Barbieri
Changes in v2: - Add comment regarding copy_size 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

[Mesa-dev] [PATCH 0/6] Translate improvements (v2)

2010-08-13 Thread Luca Barbieri
This patchset addresses review comments, and adds support for running on CPUs lacking any SSE support, but only for format pairs that are identical or swizzles of each other. Luca Barbieri (6): translate_generic: use memcpy if possible (v2) translate_generic: factor out common code between lin

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

2010-08-13 Thread José Fonseca
On Fri, 2010-08-13 at 02:03 -0700, Dave Airlie wrote: > On Fri, Aug 13, 2010 at 4:58 PM, Aras Pranckevicius wrote: > >> > But I perceive talloc as different from all above: it's very low level > >> > and low weight library, providing very basic functionality, and upstream > >> > never showed inter

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

2010-08-13 Thread Keith Whitwell
On Thu, 2010-08-12 at 10:22 -0700, Luca Barbieri wrote: > 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.

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

2010-08-13 Thread Keith Whitwell
Luca, In this change you've got an int value (copy_size) which has some special meaning when negative -- can you add comments explaining what the meaning of a negative size is? Is there a way to use some more explicit flag value to indicate this condition? Keith On Thu, 2010-08-12 at 10:08 -070

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

2010-08-13 Thread Aras Pranckevicius
> > Like I said before, "full port" of talloc seems to be not needed for > > compiling on Visual C++; just drop in talloc.h & talloc.c into the project > > and that's it. Same for Mac with Xcode. > Be careful about LGPLv3 rules, > If you are distributing anything linked with an LGPL library without

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

2010-08-13 Thread Dave Airlie
On Fri, Aug 13, 2010 at 4:58 PM, Aras Pranckevicius wrote: >> > But I perceive talloc as different from all above: it's very low level >> > and low weight library, providing very basic functionality, and upstream >> > never showed interest for Windows portability. I'd really prefer to see >> > the

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

2010-08-13 Thread Владимир
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 values and comments for them. 2010/8/10 Marek Olšák > I've already committed some of the