[Mesa-dev] [PATCH] i965: Allocate just enough space for user clip planes in uniform arrays.

2013-08-25 Thread Kenneth Graunke
Previously, we allocated space in brw_vs_prog_data's params and pull_params arrays for MAX_CLIP_PLANES vec4s---even when it wasn't necessary. On a 64-bit architecture, this used 0.5 kB of space (8 clip planes * 4 floats per plane * 8 bytes per float pointer * 2 arrays of pointers = 512 bytes). Si

Re: [Mesa-dev] void operation in glsl

2013-08-25 Thread Matt Turner
On Sun, Aug 25, 2013 at 10:07 PM, Liu Xin wrote: > HI, list, > > i don't understand why glsl source have so many 'cast to void' operations, > like this. > > ir_rvalue * > ast_node::hir(exec_list *instructions, > struct _mesa_glsl_parse_state *state) > { >(void) instructions; >(

Re: [Mesa-dev] void operation in glsl

2013-08-25 Thread Chris Forbes
It's just a simple, portable way to make the `unused parameter` warning shut up, when you're deliberately ignoring your parameters. There are other ways [__attribute__(( unused )), etc] but they cease to be simple or portable fairly quickly. -- Chris On Mon, Aug 26, 2013 at 5:07 PM, Liu Xin wro

[Mesa-dev] void operation in glsl

2013-08-25 Thread Liu Xin
HI, list, i don't understand why glsl source have so many 'cast to void' operations, like this. ir_rvalue * ast_node::hir(exec_list *instructions, struct _mesa_glsl_parse_state *state) { (void) instructions; (void) state; return NULL; } i think it's totally void operatio

Re: [Mesa-dev] [PATCH] nouveau/video: avoid overwriting base codec init with template

2013-08-25 Thread Koenig, Christian
The offending patch didn't went into 9.2, so no harm done there. Going to commit the fix as soon as I'm home again. Christian. Sent from my Android phone using TouchDown (www.nitrodesk.com) -Original Message- From: Ilia Mirkin [imir...@alum.mit.edu] Received: Samstag, 24 Aug. 2013, 16:0

Re: [Mesa-dev] [PATCH] nouveau/video: avoid overwriting base codec init with template

2013-08-25 Thread Martin Peres
On 24/08/2013 11:38, Christian König wrote: Am 24.08.2013 06:50, schrieb Ilia Mirkin: Commit 53e20b8b introduced the use of a template to initialize some common fields. Move this copying of fields to before the common vp3 fields are initialized. Reported-by: Martin Peres Signed-off-by: Ilia Mi

Re: [Mesa-dev] [PATCH] mesa: use c99 functions on non-linux platforms if supported

2013-08-25 Thread Chí-Thanh Christopher Nguyễn
Ian Romanick freedesktop.org> writes: > http://herbsutter.com/2012/05/03/reader-qa-what-about-vc-and-c99/ > > It seems that designated initializers may not be supported (ugh), but > most of the "slips" we've had over the years have been > mixed-code-and-declarations. This piece of information

Re: [Mesa-dev] [PATCH] nouveau/video: avoid overwriting base codec init with template

2013-08-25 Thread Christian König
Am 24.08.2013 06:50, schrieb Ilia Mirkin: Commit 53e20b8b introduced the use of a template to initialize some common fields. Move this copying of fields to before the common vp3 fields are initialized. Reported-by: Martin Peres Signed-off-by: Ilia Mirkin Sorry, that some fields are initializ

[Mesa-dev] [PATCH 9.2] mesa: Bump version to 9.2-rc2

2013-08-25 Thread Sedat Dilek
Signed-off-by: Sedat Dilek --- Android.common.mk | 2 +- SConstruct| 2 +- configure.ac | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Android.common.mk b/Android.common.mk index b5ed472..905d1a9 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -35,7

[Mesa-dev] [Bug 68504] 9.2-rc1 clover fails to build on ppc: cannot convert 'bool' to '__vector(4) __bool int' in return

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68504 --- Comment #5 from Chí-Thanh Christopher Nguyễn --- Upstream closed my bug report (linked under See Also:) as invalid with the following response: "You need to use -std=g++11 or undefine bool after the include of altivec.h as context sensitive k

[Mesa-dev] [Bug 68504] 9.2-rc1 clover fails to build on ppc: cannot convert 'bool' to '__vector(4) __bool int' in return

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68504 Francisco Jerez changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 68504] 9.2-rc1 clover fails to build on ppc: cannot convert 'bool' to '__vector(4) __bool int' in return

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68504 Chí-Thanh Christopher Nguyễn changed: What|Removed |Added See Also||http://gcc.gnu.org/bugzill

[Mesa-dev] [Bug 68504] 9.2-rc1 clover fails to build on ppc: cannot convert 'bool' to '__vector(4) __bool int' in return

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68504 --- Comment #3 from Chí-Thanh Christopher Nguyễn --- It appears that inclusion of altivec.h in cl_platform.h causes "bool" to be redefined to "__attribute__((altivec(bool__))) unsigned", but only with -std=c++XY Not including altivec.h or using

[Mesa-dev] [Bug 68504] 9.2-rc1 clover fails to build on ppc: cannot convert 'bool' to '__vector(4) __bool int' in return

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=68504 --- Comment #2 from Chí-Thanh Christopher Nguyễn --- Tried to build 9.2-rc2 with different compiler flags: CXXFLAGS="-O2 -mcpu=7450 -fno-free-vectorize" fails CXXFLAGS="-O2 -mcpu=powerpc" succeeds CXXFLAGS="-O2 -mcpu=7450 -mno-altivec" succeeds

[Mesa-dev] [Bug 50156] OBS reports duplicate files in $(LIBDIR)/gbm and $(LIBDIR)/opencl

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=50156 Johannes Obermayr changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 67740] render2.c: In function '__indirect_glMap1d'

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67740 --- Comment #4 from Henry --- ok, to compile src/glx I did the following.. bash-4.2$ make -C src/glx clean. bash-4.2$ make -CFLAGS=-D__GNU__ -C src/glx ... and there are more fails, but compiling independently each folder that fail with "CFLA

[Mesa-dev] [Bug 67740] render2.c: In function '__indirect_glMap1d'

2013-08-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=67740 --- Comment #3 from Henry --- ok, to compile src/glc I did the following.. bash-4.2$ make -C src/glx clean. bash-4.2$ make -CFLAGS=-D__GNU__ -C src/glx ... and there are more fails, but compiling independently each folder that fail with "CFLA

Re: [Mesa-dev] [PATCH 1/1] r600g: Implement the new float comparison instructions for Cayman as well.

2013-08-25 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sat, Aug 24, 2013 at 9:50 PM, Henri Verbeet wrote: > I assume this should have been part of commit > 7727fbb7c5d64348994bce6682e681d6181a91e9. This (obviously) fixes a lot tests. > > Signed-off-by: Henri Verbeet > --- > src/gallium/drivers/r600/r600_shader.c