[Mesa-dev] [PATCH] glsl: Fix broken LRP algebraic optimization.

2014-03-01 Thread Kenneth Graunke
opt_algebraic was translating lrp(x, 0, a) into add(x, -mul(x, a)). Unfortunately, this references "x" twice, which is invalid in the IR, leading to assertion failures in the validator. Normally, cloning IR solves this. However, "x" could actually be an arbitrary expression tree, so copying it c

[Mesa-dev] [PATCH] mesa: Move MESA_GLSL=dump output to stderr.

2014-03-01 Thread Kenneth Graunke
i965 recently moved debug printfs to use stderr, including ones which trigger on MESA_GLSL=dump. This resulted in scrambled output. For drivers using ir_to_mesa, print_program was already using stderr, yet all the code around it was using stdout. Signed-off-by: Kenneth Graunke --- src/mesa/mai

[Mesa-dev] [PATCH] nouveau: add valid range tracking to nouveau_buffer

2014-03-01 Thread Ilia Mirkin
This logic is borrowed from the radeon code. The transfer logic will only get called for PIPE_BUFFER resources, so it shouldn't be necessary to worry about them becoming render targets. Signed-off-by: Ilia Mirkin --- A user reported a ~30% FPS improvement with an earlier version of this patch in

[Mesa-dev] Build patches v2

2014-03-01 Thread Fabio Pedretti
Updated patches with the following changes: [PATCH 1/2] glx/dri2: fix build failure on HURD - improved commit message (thanks to Matt Turner and Ian Romanick) - added Cc: for 10.1 [PATCH 2/2] configure.ac: consolidate dependencies version check - added a missing $ (thanks to Matt Turner) - add

[Mesa-dev] [PATCH 1/2] glx/dri2: fix build failure on HURD

2014-03-01 Thread Fabio Pedretti
From: Julien Cristau Patch from Debian package. Cc: "10.1" --- src/glx/dri2_query_renderer.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_renderer.c index b50a202..95560cb 100644 --- a/src/glx/dri2_query_renderer.c +++ b/src/glx/dr

[Mesa-dev] [PATCH 2/2] configure.ac: consolidate dependencies version check

2014-03-01 Thread Fabio Pedretti
Reviewed-by: Matt Turner --- configure.ac | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 0e0fd18..5f6f4cd 100644 --- a/configure.ac +++ b/configure.ac @@ -38,6 +38,13 @@ DRI3PROTO_REQUIRED=1.0 PRESENTPROTO_REQUIRED=1.0

[Mesa-dev] [PATCH] st/omx: always advertise all components

2014-03-01 Thread Christian König
From: Christian König omx_component_library_Setup should return all entrypoints the library implements, independent of what is available on the current hardware. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74944 Signed-off-by: Christian König --- src/gallium/state_trackers/omx/entr

Re: [Mesa-dev] [Mesa-stable] [PATCH 12/25] dri/i9*5: correctly calculate the amount of system memory

2014-03-01 Thread Ian Romanick
On 02/28/2014 04:52 PM, Emil Velikov wrote: On 28/02/14 17:32, Ian Romanick wrote: On 02/21/2014 07:04 PM, Emil Velikov wrote: The variable name states megabytes, while we calculate the amount in kilobytes. Correct this by dividing with the correct amount. Cc: "10.0 10.1" Cc: Ian Romanick Si

[Mesa-dev] Mesa 10.1 release candidate 3

2014-03-01 Thread Ian Romanick
Mesa 10.1 release candidate 3 is now available for testing. The current plan of record is to have the 10.1 release one week from today on Tuesday, March 4th. The tag in the GIT repository for Mesa 10.1-rc3 is 'mesa-10.1-rc3'. Mesa 10.1 release candidate 1 is available for download at ftp://fr

Re: [Mesa-dev] [PATCH] mesa: Move MESA_GLSL=dump output to stderr.

2014-03-01 Thread Brian Paul
On 03/01/2014 01:47 AM, Kenneth Graunke wrote: i965 recently moved debug printfs to use stderr, including ones which trigger on MESA_GLSL=dump. This resulted in scrambled output. For drivers using ir_to_mesa, print_program was already using stderr, yet all the code around it was using stdout.

Re: [Mesa-dev] [PATCH] glsl: Fix broken LRP algebraic optimization.

2014-03-01 Thread Ian Romanick
On 03/01/2014 12:18 AM, Kenneth Graunke wrote: opt_algebraic was translating lrp(x, 0, a) into add(x, -mul(x, a)). Unfortunately, this references "x" twice, which is invalid in the IR, leading to assertion failures in the validator. Right... and Matt probably didn't notice this because he test

Re: [Mesa-dev] [PATCH 1/2] glx/dri2: fix build failure on HURD

2014-03-01 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 03/01/2014 01:11 AM, Fabio Pedretti wrote: From: Julien Cristau Patch from Debian package. Cc: "10.1" --- src/glx/dri2_query_renderer.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/glx/dri2_query_renderer.c b/src/glx/dri2_query_

Re: [Mesa-dev] [PATCH] glsl: Fix broken LRP algebraic optimization.

2014-03-01 Thread Kenneth Graunke
On 03/01/2014 09:33 AM, Ian Romanick wrote: > On 03/01/2014 12:18 AM, Kenneth Graunke wrote: >> opt_algebraic was translating lrp(x, 0, a) into add(x, -mul(x, a)). >> >> Unfortunately, this references "x" twice, which is invalid in the IR, >> leading to assertion failures in the validator. > > Rig

[Mesa-dev] [PATCH] Add support for swrast to the DRM EGL platform

2014-03-01 Thread Giovanni Campagna
From: Giovanni Campagna Turn GBM into a swrast loader (providing putimage/getimage backed by a dumb KMS buffer). This allows to run KMS+DRM GL applications (such as weston or mutter-wayland) unmodified on cards that don't have any client side HW acceleration component but that can do modeset (exa

[Mesa-dev] [Bug 75543] OSMesa Gallium OSMesaMakeCurrent

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75543 --- Comment #1 from Brian Paul --- I think your fix is correct. I'll write a patch for this. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-d

[Mesa-dev] [Bug 75543] OSMesa Gallium OSMesaMakeCurrent

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75543 --- Comment #2 from Brian Paul --- Created attachment 94934 --> https://bugs.freedesktop.org/attachment.cgi?id=94934&action=edit Patch to check buffer size when searching Can you verify this patch is OK? -- You are receiving this mail becaus

Re: [Mesa-dev] [PATCH] glsl: Fix broken LRP algebraic optimization.

2014-03-01 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] mesa: Move MESA_GLSL=dump output to stderr.

2014-03-01 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 75336] Don't provide inline definitions of functions available in MSVS 2013's standard library

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75336 --- Comment #1 from Brian Paul --- Created attachment 94935 --> https://bugs.freedesktop.org/attachment.cgi?id=94935&action=edit patch for u_math.h -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 75336] Don't provide inline definitions of functions available in MSVS 2013's standard library

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75336 --- Comment #2 from Brian Paul --- Created attachment 94936 --> https://bugs.freedesktop.org/attachment.cgi?id=94936&action=edit patch for imports.h Can you verify that these two patches fixes the issue for you with Mesa git master? If so, I'

[Mesa-dev] [PATCH] softpipe: use 64-bit arithmetic in softpipe_resource_layout()

2014-03-01 Thread Brian Paul
To avoid 32-bit integer overflow for large textures. Note: we're already doing this in llvmpipe. Cc: "10.0" "10.1" --- src/gallium/drivers/softpipe/sp_texture.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/

[Mesa-dev] [PATCH 07/10] xlib: remove unneeded context tracking code

2014-03-01 Thread Brian Paul
This removes the only use of _glthread_Get/SetTSD(), etc. --- src/mesa/drivers/x11/glxapi.c | 47 - 1 file changed, 4 insertions(+), 43 deletions(-) diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c index 8640cb0..c03c743 100644 -

[Mesa-dev] [PATCH 02/10] mesa: switch to c11 mutex functions

2014-03-01 Thread Brian Paul
--- doxygen/main.doxy|2 +- src/mesa/main/arrayobj.c | 12 ++-- src/mesa/main/bufferobj.c| 26 - src/mesa/main/context.c |6 +++--- src/mesa/main/dlist.c|4 ++-- src/mesa/main/errors.c |6 +++--- src/mesa/ma

[Mesa-dev] [PATCH 06/10] xlib: simplify context handling

2014-03-01 Thread Brian Paul
Get rid of the fake_glx_context struct. Now, an XMesaContext is the same as a GLXContext. --- src/mesa/drivers/x11/fakeglx.c | 134 src/mesa/drivers/x11/glxapi.h |2 +- src/mesa/drivers/x11/xm_api.c |1 + 3 files changed, 28 insertions(+), 109 d

[Mesa-dev] [PATCH 05/10] xlib: remove unused realglx.[ch] files

2014-03-01 Thread Brian Paul
At one point in time, the xlib driver could call the real GLX functions. But that's long dead. --- src/mesa/drivers/x11/glxapi.c | 15 +- src/mesa/drivers/x11/realglx.c | 180 -- src/mesa/drivers/x11/realglx.h | 326 3 files changed

[Mesa-dev] [PATCH 03/10] glsl: switch to c11 mutex functions

2014-03-01 Thread Brian Paul
--- src/glsl/builtin_functions.cpp | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index b9dc959..a52077d 100644 --- a/src/glsl/builtin_functions.cpp +++ b/src/glsl/builtin_functions.cpp @@ -4351,7

[Mesa-dev] [PATCH 01/10] xlib: switch to c11 mutex functions

2014-03-01 Thread Brian Paul
The _glthread_LOCK/UNLOCK_MUTEX() macros are just wrappers around the c11 mutex functions. Let's start getting rid of those wrappers. --- src/mesa/drivers/x11/xm_api.c | 21 ++--- src/mesa/drivers/x11/xm_dd.c |4 ++-- src/mesa/drivers/x11/xmesaP.h |3 ++- 3 files change

[Mesa-dev] [PATCH 04/10] mesa: remove unused _glthread_*MUTEX() macros

2014-03-01 Thread Brian Paul
--- src/mapi/glapi/glthread.h |7 --- 1 file changed, 7 deletions(-) diff --git a/src/mapi/glapi/glthread.h b/src/mapi/glapi/glthread.h index 2399abb..ddb4973 100644 --- a/src/mapi/glapi/glthread.h +++ b/src/mapi/glapi/glthread.h @@ -7,19 +7,12 @@ extern "C" { #endif -#define _glthrea

[Mesa-dev] [PATCH 08/10] mesa: remove unused glthread/TSD macros

2014-03-01 Thread Brian Paul
--- src/mapi/glapi/glthread.h |7 --- 1 file changed, 7 deletions(-) diff --git a/src/mapi/glapi/glthread.h b/src/mapi/glapi/glthread.h index ddb4973..bed2c02 100644 --- a/src/mapi/glapi/glthread.h +++ b/src/mapi/glapi/glthread.h @@ -7,13 +7,6 @@ extern "C" { #endif -#define _glthread

[Mesa-dev] [PATCH 09/10] mesa: remove empty glthread.h file

2014-03-01 Thread Brian Paul
--- doxygen/core_subset.doxy |1 - src/glx/singlepix.c |1 - src/mapi/glapi/gen/glX_proto_recv.py |1 - src/mapi/glapi/gen/glX_proto_send.py |1 - src/mapi/glapi/glapi.h |2 +- src/mapi/glapi/glthread.h| 14 --

[Mesa-dev] [PATCH 10/10] mesa: remove unneeded glthread.c file

2014-03-01 Thread Brian Paul
The _glthread_GetID() function is also defined in mapi_glapi.c --- src/mapi/glapi/Makefile.sources |1 - src/mapi/glapi/SConscript |1 - src/mapi/glapi/glthread.c |7 --- 3 files changed, 9 deletions(-) delete mode 100644 src/mapi/glapi/glthread.c diff --git a/src/map

Re: [Mesa-dev] [PATCH] r600g: Prevent SIGFPE when using r600_dma_copy_tile with large textures

2014-03-01 Thread Ahmed Allam
Ping On 02/04/2014 02:47 AM, Marek Olšák wrote: Unless Jerome has a better idea, your best bet would be to just return FALSE from that function. For Jerome: The code crashes on a division by 0 (cheight is 0). The problem occurs with the texture format R32G32B32A32 and width >= 4096. Do you hav

[Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-01 Thread Ilia Mirkin
This adds enough code to let drivers implement texture clearing, but doesn't actually do that for any of them. Signed-off-by: Ilia Mirkin --- Thought I'd give this a shot. Am I on the right track here? Is the dd API reasonable? I haven't written a piglit test for all the "generic" error cases ye

[Mesa-dev] [PATCH] clover: Fix building with latest llvm

2014-03-01 Thread Bruno Jiménez
Recently, llvm has changed to use c++11, so we also should use it --- src/gallium/state_trackers/clover/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am index ece2b38..

Re: [Mesa-dev] [PATCH] mesa/main: add ARB_clear_texture entrypoints

2014-03-01 Thread Andreas Hartmetz
On Saturday 01 March 2014 17:09:58 Ilia Mirkin wrote: > This adds enough code to let drivers implement texture clearing, but > doesn't actually do that for any of them. > > Signed-off-by: Ilia Mirkin > --- > > Thought I'd give this a shot. Am I on the right track here? Is the dd API > reasonable

Re: [Mesa-dev] [PATCH] clover: Fix building with latest llvm

2014-03-01 Thread Francisco Jerez
Bruno Jiménez writes: > Recently, llvm has changed to use c++11, so we also should use it > --- > src/gallium/state_trackers/clover/Makefile.am | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/gallium/state_trackers/clover/Makefile.am > b/src/gallium/state_tracke

[Mesa-dev] [Bug 73846] [llvmpipe] lp_test_format fails with llvm-3.5svn >= r199602

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=73846 --- Comment #1 from Vinson Lee --- mesa: fc25956badb8e1932cc19d8c97b4be16e92dfc65 (master) llvm: 3.5svn r202603 lp_test_format is still failing with latest mesa and llvm. -- You are receiving this mail because: You are the assignee for the bug

[Mesa-dev] [PATCH] scons: Build with C++11 with LLVM >= 3.5.

2014-03-01 Thread Vinson Lee
Starting with llvm-3.5svn r202574, LLVM expects C+11 mode. commit f8bc17fadc8f170c1126328d203f0dab78960137 Author: Chandler Carruth Date: Sat Mar 1 06:31:00 2014 + [C++11] Turn off compiler-based detection of R-value references, relying on the fact that we now build in C++11 mode w

[Mesa-dev] [Bug 71199] [llvmpipe] piglit glean polygonOffset regression

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=71199 Vinson Lee changed: What|Removed |Added CC||bri...@vmware.com --- Comment #2 from Vinso

[Mesa-dev] [Bug 67692] [llvmpipe] piglit glsl-fs-frontfacing regression

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

[Mesa-dev] [Bug 72582] [swrast] piglit getteximage-targets S3TC 2D_ARRAY regression

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

[Mesa-dev] [Bug 62919] piglit getteximage-targets S3TC 2D_ARRAY regression

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

[Mesa-dev] [Bug 72326] [swrast] piglit glean pbo regression

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72326 --- Comment #1 from Vinson Lee --- mesa: fc25956badb8e1932cc19d8c97b4be16e92dfc65 (master 10.2.0-devel) The swrast glean pbo regression is still present. -- You are receiving this mail because: You are the assignee for the bug. ___

[Mesa-dev] [Bug 70359] [llvmpipe] piglit arb_shader_texture_lod-texgrad regression

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70359 Vinson Lee changed: What|Removed |Added CC||bri...@vmware.com, |

[Mesa-dev] [Bug 45348] [swrast] piglit fbo-drawbuffers-arbfp regression

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45348 --- Comment #3 from Vinson Lee --- mesa: fc25956badb8e1932cc19d8c97b4be16e92dfc65 (master 10.2.0-devel) The piglit fbo-drawbuffers-arbfp on swrast is still present. -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 65224] piglit arb_uniform_buffer_object-maxuniformblocksize fs regression

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65224 Vinson Lee changed: What|Removed |Added CC||bri...@vmware.com --- Comment #1 from Vinso

[Mesa-dev] [Bug 66863] st_glsl_to_tgsi.cpp:2320:emit_block_mov: Assertion `type->is_scalar() || type->is_vector()' failed.

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

[Mesa-dev] [Bug 66184] src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simplify_cmp: Assertion `inst->dst.index < 4096' failed.

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66184 Vinson Lee changed: What|Removed |Added CC||bri...@vmware.com --- Comment #1 from Vinso

[Mesa-dev] [Bug 75660] New: u_inlines.h:277:pipe_buffer_map_range: Assertion `length' failed.

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75660 Priority: medium Bug ID: 75660 Keywords: have-backtrace Assignee: mesa-dev@lists.freedesktop.org Summary: u_inlines.h:277:pipe_buffer_map_range: Assertion `length' failed.

[Mesa-dev] [Bug 65525] [llvmpipe] lp_scene.h:210:lp_scene_alloc: Assertion `size <= (64 * 1024)' failed.

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65525 Vinson Lee changed: What|Removed |Added CC||bri...@vmware.com, |

[Mesa-dev] [Bug 75661] New: st_glsl_to_tgsi.cpp:637:get_opcode: Assertion `src0.type != GLSL_TYPE_STRUCT' failed.

2014-03-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75661 Priority: medium Bug ID: 75661 Keywords: have-backtrace Assignee: mesa-dev@lists.freedesktop.org Summary: st_glsl_to_tgsi.cpp:637:get_opcode: Assertion `src0.type != GLSL_TYP