[Mesa-dev] [PATCH 5/6] glsl: Optimize various cases of fma (aka MAD).

2014-01-19 Thread Eric Anholt
--- src/glsl/opt_algebraic.cpp | 13 + 1 file changed, 13 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 4a96a55..7fbc32e 100644 --- a/src/glsl/opt_algebraic.cpp +++ b/src/glsl/opt_algebraic.cpp @@ -502,6 +502,19 @@ ir_algebraic_visitor::handl

[Mesa-dev] [PATCH 3/6] glsl: Optimize pow(x, 1) -> x.

2014-01-19 Thread Eric Anholt
total instructions in shared programs: 1627826 -> 1627754 (-0.00%) instructions in affected programs: 6640 -> 6568 (-1.08%) GAINED:0 LOST: 0 (HoN and savage2) --- src/glsl/opt_algebraic.cpp | 4 1 file changed, 4 insertions

[Mesa-dev] [PATCH 1/6] glsl: Optimize ~~x into x.

2014-01-19 Thread Eric Anholt
--- src/glsl/opt_algebraic.cpp | 12 1 file changed, 12 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 332f0b7..6b0d992 100644 --- a/src/glsl/opt_algebraic.cpp +++ b/src/glsl/opt_algebraic.cpp @@ -218,6 +218,18 @@ ir_algebraic_visitor::handle

[Mesa-dev] [PATCH 4/6] glsl: Optimize lrp(x, x, coefficient) --> x.

2014-01-19 Thread Eric Anholt
total instructions in shared programs: 1627754 -> 1624534 (-0.20%) instructions in affected programs: 45748 -> 42528 (-7.04%) GAINED:3 LOST: 0 (serious sam, humus domino demo) --- Note, Matt has a similar patch specific to i965/

[Mesa-dev] [PATCH 6/6] glsl: Optimize triop_csel with all-true or all-false.

2014-01-19 Thread Eric Anholt
--- src/glsl/opt_algebraic.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 7fbc32e..cc9c928 100644 --- a/src/glsl/opt_algebraic.cpp +++ b/src/glsl/opt_algebraic.cpp @@ -526,6 +526,13 @@ ir_algebraic_visitor::handle_expres

[Mesa-dev] [PATCH 2/6] glsl: Optimize log(exp(x)) and exp(log(x)) into x.

2014-01-19 Thread Eric Anholt
--- src/glsl/opt_algebraic.cpp | 36 1 file changed, 36 insertions(+) diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp index 6b0d992..4aa49e5 100644 --- a/src/glsl/opt_algebraic.cpp +++ b/src/glsl/opt_algebraic.cpp @@ -252,6 +252,42 @@ ir_a

Re: [Mesa-dev] [PATCH demos] opengles2/es2tri: add precision qualifier to the fragment shader

2014-01-19 Thread Tapani Pälli
On 01/19/2014 06:34 PM, Emil Velikov wrote: The missing qualifier causes failure during the compilation stage. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73631 Signed-off-by: Emil Velikov --- src/egl/opengles2/es2tri.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/o

[Mesa-dev] [Bug 73631] es2tri fragment shader did not compile AMD ARUBA

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73631 --- Comment #6 from Tapani Pälli --- (In reply to comment #5) > In this case it should not be needed though as there are no float variables > declared in the shader, isn't this a bug in the compiler instead? oops, I missed the varying vec4 and p

Re: [Mesa-dev] [PATCH V2 1/3] i965: Add an option to ignore sample qualifier

2014-01-19 Thread Chris Forbes
For the series, Reviewed-by: Chris Forbes On Sat, Jan 18, 2014 at 9:52 AM, Anuj Phogat wrote: > This will be useful in my next patch which depends on a functionality > of _mesa_get_min_invocations_per_fragment() to ignore the sample > qualifier (prog->IsSample) based on a flag passed to it. >

[Mesa-dev] [Bug 73631] es2tri fragment shader did not compile AMD ARUBA

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73631 Tapani Pälli changed: What|Removed |Added CC||lem...@gmail.com --- Comment #5 from Tapa

Re: [Mesa-dev] [V3 PATCH 4/8] mesa: MESA_FORMAT Type P Conversion

2014-01-19 Thread Michel Dänzer
On Fre, 2014-01-17 at 03:47 -0800, Mark Mueller wrote: > > diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h > index 348d2f4..fb43c83 100644 > --- a/src/mesa/main/formats.h > +++ b/src/mesa/main/formats.h > @@ -182,14 +182,14 @@ typedef enum > MESA_FORMAT_RGB_UNORM8, > > /*

Re: [Mesa-dev] GalliumCompute / OpenCL on Radeon HD7790

2014-01-19 Thread Michel Dänzer
On Son, 2014-01-19 at 09:20 -0800, ian_br...@fastmail.net wrote: > This page: > > http://dri.freedesktop.org/wiki/GalliumCompute/ > > says "Evergreen through Southern Islands GPU families are currently > supported." > > It's unclear (at least to me) whether HD7790 ("Sea Islands") cards are > sup

[Mesa-dev] GalliumCompute / OpenCL on Radeon HD7790

2014-01-19 Thread ian_bruce
This page: http://dri.freedesktop.org/wiki/GalliumCompute/ says "Evergreen through Southern Islands GPU families are currently supported." It's unclear (at least to me) whether HD7790 ("Sea Islands") cards are supposed to be included in this; apparently the GPUs are similar to the rest of the 70

Re: [Mesa-dev] [PATCH] cl: Add support for OpenCV unit tests v2

2014-01-19 Thread Dylan Baker
I think you meant to ping the piglit list not mesa dev :) In general this looks a lot better, I've got a few little things for you On Friday, January 17, 2014 02:30:13 PM Tom Stellard wrote: > From: Tom Stellard > > This enables piglit to run and interpret the results from OpenCV's > gtest base

Re: [Mesa-dev] [PATCH] mesa: use _mesa_shader_stage_to_string() to generate file extension

2014-01-19 Thread Emil Velikov
On 20/01/14 00:27, Chris Forbes wrote: > What do you plan on using for `tesselation control` and `tesselation > evaluation` shaders? > Ouch very nice argument. I only had vertex, fragment and compute shaders in mind. Please ignore my rumbling. -Emil > On Mon, Jan 20, 2014 at 12:56 PM, Emil Velik

Re: [Mesa-dev] [PATCH] mesa: use _mesa_shader_stage_to_string() to generate file extension

2014-01-19 Thread Chris Forbes
What do you plan on using for `tesselation control` and `tesselation evaluation` shaders? On Mon, Jan 20, 2014 at 12:56 PM, Emil Velikov wrote: > ping ? > > On 10/01/14 18:44, Emil Velikov wrote: >> Signed-off-by: Emil Velikov >> --- >> >> Hi Paul, >> >> Here is another small cleanup inspired by

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 --- Comment #17 from Alexandre Demers --- (In reply to comment #16) > (In reply to comment #15) > > (In reply to comment #13) > > > Is there any free wine test or game that I can use to reproduce this bug? > > > > Confirmed with Team Forteress 2

Re: [Mesa-dev] [PATCH] i965: Move binding table update packets to binding table setup time.

2014-01-19 Thread Kenneth Graunke
On 01/15/2014 09:43 PM, Eric Anholt wrote: > This keeps us from needing to reemit all the other stage state just > because a surface changed. > > Improves unoptimized glamor x11perf -f8text by 1.10201% +/- 0.489869% > (n=296). > --- > src/mesa/drivers/dri/i965/brw_binding_tables.c | 51 > +++

[Mesa-dev] [PATCH] gallium/rtasm: handle mmap failures appropriately

2014-01-19 Thread Emil Velikov
For a variety of reasons mmap (selinux and pax to name a few) and can fail and with current code. This will result in a crash in the driver, if not worse. This has been the case since the inception of the gallium copy of rtasm. Cc: 9.1 9.2 10.0 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi

Re: [Mesa-dev] [PATCH] i965: Modify some error messages to refer to "vec4" instead of "vs".

2014-01-19 Thread Kenneth Graunke
On 01/17/2014 02:14 PM, Paul Berry wrote: > These messages are in code that is shared between the VS and GS > back-ends, so use the terminology "vec4" to avoid confusion. > --- > src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 8 > src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +

Re: [Mesa-dev] [PATCH] mesa: use _mesa_shader_stage_to_string() to generate file extension

2014-01-19 Thread Emil Velikov
ping ? On 10/01/14 18:44, Emil Velikov wrote: > Signed-off-by: Emil Velikov > --- > > Hi Paul, > > Here is another small cleanup inspired by your work. Not > entirely sure that the last hunk is correct though. > > Cheers, > Emil > > --- > src/mesa/program/prog_print.c | 26 +-

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 --- Comment #16 from Marek Olšák --- (In reply to comment #15) > (In reply to comment #13) > > Is there any free wine test or game that I can use to reproduce this bug? > > Confirmed with Team Forteress 2. TF2 for Windows or TF2 for Linux? --

Re: [Mesa-dev] [PATCH] i965: Add GS support to INTEL_DEBUG=shader_time.

2014-01-19 Thread Kenneth Graunke
On 01/17/2014 02:51 PM, Paul Berry wrote: > Previously, time spent in geometry shaders would be counted as part of > the vertex shader time. Oof. Nice catch. Reviewed-by: Kenneth Graunke ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://

Re: [Mesa-dev] [PATCH 00/37] GL_ARB_viewport_array v2

2014-01-19 Thread Kenneth Graunke
On 01/17/2014 05:03 PM, Ian Romanick wrote: > This is the overall v2 of the GL_ARB_viewport_array series. It is > mostly the same as the previous series, but there are some differences > worth noting. > > Patch "i965: Consider all scissor rectangles in noop_scissor" in the > original series was r

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 --- Comment #15 from Alexandre Demers --- (In reply to comment #13) > Is there any free wine test or game that I can use to reproduce this bug? Confirmed with Team Forteress 2. -- You are receiving this mail because: You are the assignee for t

[Mesa-dev] [Bug 73808] New: loader.c(90) : error C2365: 'log' : redefinition; previous definition was 'function'

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73808 Priority: medium Bug ID: 73808 Keywords: regression CC: emil.l.veli...@gmail.com Assignee: mesa-dev@lists.freedesktop.org Summary: loader.c(90) : error C2365: 'log' : redefinitio

[Mesa-dev] [Bug 73777] xf86drm.h:40:17: error: drm.h: No such file or directory

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73777 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 --- Comment #14 from Benjamin Bellec --- (In reply to comment #13) > Is there any free wine test or game that I can use to reproduce this bug? I tested several free or open-source games but none of them are impacted (Xonotic, 0AD, Ryzom, Yo Fran

[Mesa-dev] [Bug 73631] es2tri fragment shader did not compile AMD ARUBA

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73631 --- Comment #4 from Emil Velikov --- Patch send to the ML http://lists.freedesktop.org/archives/mesa-dev/2014-January/051916.html -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [PATCH demos] opengles2/es2tri: add precision qualifier to the fragment shader

2014-01-19 Thread Emil Velikov
The missing qualifier causes failure during the compilation stage. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73631 Signed-off-by: Emil Velikov --- src/egl/opengles2/es2tri.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/opengles2/es2tri.c b/src/egl/opengles2/es2tri.c i

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 Emil Velikov changed: What|Removed |Added See Also||https://bugs.freedesktop.or

[Mesa-dev] [Bug 73777] xf86drm.h:40:17: error: drm.h: No such file or directory

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73777 Emil Velikov changed: What|Removed |Added See Also||https://bugs.freedesktop.or

Re: [Mesa-dev] [PATCH] pipe-loader: Fix build

2014-01-19 Thread Emil Velikov
On 19/01/14 14:09, Armin K wrote: > pipe_loader_drm.c: In function 'pipe_loader_drm_probe_fd': > pipe_loader_drm.c:120:4: error: implicit declaration of function > 'loader_get_pci_id_for_fd' [-Werror=implicit-function-declaration] > --- Reviewed-by: Emil Velikov Seems like I failed at git rebase

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 Marek Olšák changed: What|Removed |Added Component|Drivers/Gallium/r600|Mesa core -- You are receiving this mail

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 Marek Olšák changed: What|Removed |Added Component|Mesa core |Drivers/Gallium/r600 --- Comment #13 from

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 --- Comment #6 from Armin K --- I've sent a patch for this not 5 minutes ago. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@lists.freedes

[Mesa-dev] [PATCH] pipe-loader: Fix build

2014-01-19 Thread Armin K
pipe_loader_drm.c: In function 'pipe_loader_drm_probe_fd': pipe_loader_drm.c:120:4: error: implicit declaration of function 'loader_get_pci_id_for_fd' [-Werror=implicit-function-declaration] --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 --- Comment #5 from Iaroslav --- ./configure --host=i586-suse-linux-gnu --build=i586-suse-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadi

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 --- Comment #4 from Emil Velikov --- Interesting... where you guys when I've asked people to test the patches :) Jos van Wolput, Fabio Pedretti Rather than throwing random fragments of the build log, I would appreciate if you guys give us at lea

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 --- Comment #12 from Benjamin Bellec --- I compiled mesa 2 or 3 hours ago, this is mesa master. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa

[Mesa-dev] [PATCH 4/5] r600g/compute: Tidy a bit compute_memory_finalize_pending

2014-01-19 Thread Bruno Jiménez
Explanation of the changes, as requested by Tom Stellard: Let's take need after is calculated as item->size_in_dw+2048 - (pool->size_in_dw - allocated) BEFORE: If need is positive or 0: we calculate need += 1024 - (need % 1024), which is like cealing to the nearest multiple of 1024, f

[Mesa-dev] [PATCH 5/5] r600g/compute: Cleanup of compute_memory_pool.h

2014-01-19 Thread Bruno Jiménez
Removed compute_memory_defrag declaration because it seems to be unimplemented. I think that this function would have been the one that solves the problem with fragmentation that compute_memory_finalize_pending has. Also removed comments that are already at compute_memory_pool.c --- src/gallium/

[Mesa-dev] [PATCH 2/5] r600g/compute: Adding checks for NULL after CALLOC

2014-01-19 Thread Bruno Jiménez
--- src/gallium/drivers/r600/compute_memory_pool.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c index 7a7b057..da351d8 100644 --- a/src/gallium/drivers/r600/compute_memory_pool.c +++ b/s

[Mesa-dev] [PATCH 3/5] r600g/compute: Add more NULL checks

2014-01-19 Thread Bruno Jiménez
In this case, NULL checks are added to compute_memory_grow_pool, so it returns -1 when it fails. This makes necesary to handle such cases in compute_memory_finalize_pending when it is needed to grow the pool --- src/gallium/drivers/r600/compute_memory_pool.c | 30 -- src/ga

[Mesa-dev] Cleaning compute_memory_pool from gallium/drivers/r600

2014-01-19 Thread Bruno Jiménez
Hope I got everything right this time. Thanks a lot to Marek Olšák for all the help! ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/5] r600g/compute: Fixing a typo and some indentation

2014-01-19 Thread Bruno Jiménez
--- src/gallium/drivers/r600/compute_memory_pool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c index fd3a04c..7a7b057 100644 --- a/src/gallium/drivers/r600/compute_memory_po

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 --- Comment #11 from Ilia Mirkin --- (In reply to comment #10) > I just tested with nouveau on a GeForce 210 (NVA8) card (nv50 driver) and > there is the same problem. But instead of a red weird screen (in Left 4 Dead > 2) there is a completely b

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 Benjamin Bellec changed: What|Removed |Added CC||b.bel...@gmail.com -- You are receivi

[Mesa-dev] [Bug 73672] Half Life 2 in Wine is broken since 4e549ddb

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73672 Benjamin Bellec changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 --- Comment #3 from Fabio Pedretti --- > make[3]: Entering directory > `/home/jos/src/xorg/git/mesa/src/gallium/auxiliary/pipe-loader' > CC pipe_loader_drm.lo > pipe_loader_drm.c: In function 'pipe_loader_drm_probe_fd': > pipe_loader_drm.

[Mesa-dev] [Bug 73776] NameError: name 'libloader' is not defined:

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73776 Fabio Pedretti changed: What|Removed |Added CC||fabio@libero.it -- You are receivi

[Mesa-dev] [PATCH V2 6/9] glsl: Implement ARB_arrays_of_arrays support for constructors

2014-01-19 Thread Timothy Arceri
V2: Fix up whitespaces Signed-off-by: Timothy Arceri --- src/glsl/ast_function.cpp | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 2d05d07..0d2cac0 100644 --- a/src/glsl/a

Re: [Mesa-dev] [PATCH 2/9] glsl: add dimension_count to glsl_types

2014-01-19 Thread Timothy Arceri
On Thu, 2014-01-16 at 16:29 -0800, Matt Turner wrote: > On Wed, Jan 15, 2014 at 10:27 PM, Timothy Arceri > wrote: > > Signed-off-by: Timothy Arceri > > --- > > src/glsl/glsl_types.cpp | 15 +++ > > src/glsl/glsl_types.h | 17 - > > 2 files changed, 27 insertions(+)

[Mesa-dev] [Bug 70591] glxext.h:275: error: redefinition of typedef ‘GLXContextID’

2014-01-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70591 Vinson Lee changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Mesa-dev] mesa/st: how to force glLinkProgram to create/translate the program?

2014-01-19 Thread Ilia Mirkin
Hi, My goal is to extend shader-db to be able to be used with nouveau, as I'm about to attempt a few compiler optimizations. But I'm having trouble with the very first step -- getting the driver to spit out the generated code. I've added logic to nouveau to translate the program as soon as it's av