Re: [Mesa-dev] [PATCH] glsl: Fix memory leak in builtin_builder::_image_prototype.

2014-10-06 Thread Iago Toral
On Fri, 2014-10-03 at 13:27 +0300, Francisco Jerez wrote: Kenneth Graunke kenn...@whitecape.org writes: On Thursday, October 02, 2014 11:28:35 AM Ian Romanick wrote: Since this is Curro's code, I'm CC'ing me. On 10/01/2014 03:12 AM, Iago Toral Quiroga wrote: in_var calls the

Re: [Mesa-dev] [PATCH] glsl: Fix memory leak in builtin_builder::_image_prototype.

2014-10-06 Thread Francisco Jerez
Iago Toral ito...@igalia.com writes: On Fri, 2014-10-03 at 13:27 +0300, Francisco Jerez wrote: Kenneth Graunke kenn...@whitecape.org writes: On Thursday, October 02, 2014 11:28:35 AM Ian Romanick wrote: Since this is Curro's code, I'm CC'ing me. On 10/01/2014 03:12 AM, Iago Toral

Re: [Mesa-dev] [PATCH] nouveau: 3d textures are unsupported, limit 3d levels to 1

2014-10-06 Thread Francisco Jerez
Ilia Mirkin imir...@alum.mit.edu writes: Ideally there would be a swrast fallback, but the driver isn't ready for that. This should avoid crashes if someone tries to use 3d textures though. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu --- Weaseling out of things is what separates us

[Mesa-dev] [PATCH] radeonsi: Use dummy pixel shader if compilation of the real shader failed

2014-10-06 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Instead of crashing. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79155#c5 Signed-off-by: Michel Dänzer michel.daen...@amd.com --- src/gallium/drivers/radeonsi/si_state.c | 18 +++--- src/gallium/drivers/radeonsi/si_state.h

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #3 from Iago Toral ito...@igalia.com --- (In reply to Jason Ekstrand from comment #0) (...) 5) Make a masater conversion function that takes a void*, format, width, height, and stride for both source and destination and just does

Re: [Mesa-dev] [PATCH] radeonsi: Use dummy pixel shader if compilation of the real shader failed

2014-10-06 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Mon, Oct 6, 2014 at 10:07 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com Instead of crashing. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=79155#c5 Signed-off-by: Michel Dänzer

[Mesa-dev] [Bug 84570] Borderlands 2: Constant frame rate drops while playing; really bad with additionl lighting

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 --- Comment #4 from Kai k...@dev.carbon-project.org --- Created attachment 107417 -- https://bugs.freedesktop.org/attachment.cgi?id=107417action=edit Screenshot with GALLIUM_HUD=fps showing FPS drops (DynamicLights=false) (In reply to Tapani

[Mesa-dev] [Bug 84711] New: [VA] gallium_drv_video.so ignores --with-dri-driverdir setting

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84711 Bug ID: 84711 Summary: [VA] gallium_drv_video.so ignores --with-dri-driverdir setting Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All)

[Mesa-dev] [Bug 84570] Borderlands 2: Constant frame rate drops while playing; really bad with additionl lighting

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 --- Comment #5 from Kai k...@dev.carbon-project.org --- Created attachment 107424 -- https://bugs.freedesktop.org/attachment.cgi?id=107424action=edit Screenshot with GALLIUM_HUD=fps showing FPS drops (DynamicLights=true) Ok, trimming the trace

Re: [Mesa-dev] [PATCH] glsl: improve accuracy of atan()

2014-10-06 Thread Erik Faye-Lund
On Fri, Sep 26, 2014 at 6:11 PM, Erik Faye-Lund kusmab...@gmail.com wrote: Our current atan()-approximation is pretty inaccurate at 1.0, so let's try to improve the situation by doing a direct approximation without going through atan. This new implementation uses an 11th degree polynomial to

Re: [Mesa-dev] [PATCH] Revert configure: ask vdpau.pc for the default location of the vdpau drivers

2014-10-06 Thread Emil Velikov
On 05/10/14 01:26, Ilia Mirkin wrote: On Fri, Oct 3, 2014 at 3:43 AM, Christian König deathsim...@vodafone.de wrote: Am 03.10.2014 um 03:53 schrieb Ilia Mirkin: On Thu, Oct 2, 2014 at 7:59 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 02/10/14 06:41, Ilia Mirkin wrote: On Mon, Sep

Re: [Mesa-dev] [PATCH] Revert configure: ask vdpau.pc for the default location of the vdpau drivers

2014-10-06 Thread Jan Vesely
On Sun, 2014-09-28 at 16:13 -0400, Ilia Mirkin wrote: On Sun, Sep 28, 2014 at 4:09 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 28/09/14 20:08, Emil Velikov wrote: On 28/09/14 19:04, Ilia Mirkin wrote: On Sun, Sep 28, 2014 at 1:35 PM, Emil Velikov emil.l.veli...@gmail.com wrote:

[Mesa-dev] [Bug 84570] Borderlands 2: Constant frame rate drops while playing; really bad with additionl lighting

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 --- Comment #6 from Kai k...@dev.carbon-project.org --- Created attachment 107434 -- https://bugs.freedesktop.org/attachment.cgi?id=107434action=edit Shader dump with R600_DEBUG=gs,vs,fs,ps Forgot to upload this shader dump before. This is the

[Mesa-dev] [Bug 84570] Borderlands 2: Constant frame rate drops while playing; really bad with additionl lighting

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 Kai k...@dev.carbon-project.org changed: What|Removed |Added Attachment #107434|Shader dump with|Shader dump with

[Mesa-dev] [Bug 84724] New: [regression, bisected] commit 4155d1c7 broke i915g

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84724 Bug ID: 84724 Summary: [regression, bisected] commit 4155d1c7 broke i915g Product: Mesa Version: git Hardware: x86 (IA32) OS: Linux (All) Status: NEW

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #4 from Jason Ekstrand ja...@jlekstrand.net --- (In reply to Iago Toral from comment #3) (...) As far as I can see, functions in textstore do not receive a mesa_format for their src argument, instead they receive the GL format and

[Mesa-dev] [PATCH 04/10] clover: Register an llvm diagnostic handler to catch internal compiler errors

2014-10-06 Thread Tom Stellard
--- .../state_trackers/clover/llvm/invocation.cpp | 30 ++ 1 file changed, 30 insertions(+) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 088039a..a1a54e0 100644 ---

[Mesa-dev] [PATCH 01/10] clover: Factor kernel argument parsing into its own function

2014-10-06 Thread Tom Stellard
--- .../state_trackers/clover/llvm/invocation.cpp | 142 +++-- 1 file changed, 75 insertions(+), 67 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 7bca0d6..3137591 100644 ---

[Mesa-dev] [PATCH 03/10] clover: Add support for compiling to native object code

2014-10-06 Thread Tom Stellard
--- .../state_trackers/clover/llvm/invocation.cpp | 173 - src/gallium/targets/opencl/Makefile.am | 1 + 2 files changed, 167 insertions(+), 7 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp

[Mesa-dev] Native object code support for clover and radeon

2014-10-06 Thread Tom Stellard
Hi, The attached patches add support to clover for compiling kernels to native object code and it updates r600g and radeonsi to accept these binaries from clover. This change significantly reduces the number of compiles that the drivers need to do. Since the OpenCL programs can now be stored in

[Mesa-dev] [PATCH 06/10] radeon/compute: Bump minimum required LLVM version to 3.5.1

2014-10-06 Thread Tom Stellard
LLVM = 3.5.1 will be requried in order to enable PIPE_SHADER_IR_NATIVE for compute shaders. --- configure.ac | 4 src/gallium/drivers/radeonsi/si_compute.c | 4 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index

[Mesa-dev] [PATCH 09/10] radeonsi/compute: Enable PIPE_SHADER_IR_NATIVE for compute shaders

2014-10-06 Thread Tom Stellard
--- src/gallium/drivers/radeonsi/si_compute.c | 51 +-- src/gallium/drivers/radeonsi/si_pipe.c| 2 +- src/gallium/drivers/radeonsi/si_shader.c | 104 ++ src/gallium/drivers/radeonsi/si_shader.h | 7 ++ 4 files changed, 88 insertions(+), 76

[Mesa-dev] [PATCH 08/10] r600g/compute: Enable PIPE_SHADER_IR_NATIVE for compute shaders

2014-10-06 Thread Tom Stellard
--- src/gallium/drivers/r600/evergreen_compute.c | 95 ++ .../drivers/r600/evergreen_compute_internal.h | 15 +--- src/gallium/drivers/r600/r600_llvm.c | 71 ++-- src/gallium/drivers/r600/r600_llvm.h | 10 +++

[Mesa-dev] [PATCH 05/10] clover: Add environment variables for dumping kernel code

2014-10-06 Thread Tom Stellard
--- .../state_trackers/clover/llvm/invocation.cpp | 74 ++ 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index a1a54e0..3e6a186 100644 ---

[Mesa-dev] [PATCH 02/10] gallium: Add PIPE_SHADER_IR_NATIVE to enum pipe_shader_ir

2014-10-06 Thread Tom Stellard
Drivers can return this value for PIPE_COMPUTE_CAP_IR_TARGET if they want clover to give them native object code. --- src/gallium/docs/source/screen.rst | 4 ++-- src/gallium/include/pipe/p_defines.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git

[Mesa-dev] [PATCH 07/10] gallium/radeon: Add query for symbol specific config information

2014-10-06 Thread Tom Stellard
This adds a query which allows drivers to access the config information of a specific function within the LLVM generated ELF binary. This makes it possible for the driver to handle ELF binaries with multiple kernels / global functions. --- src/gallium/drivers/radeon/r600_pipe_common.h | 8

[Mesa-dev] [PATCH 10/10] radeon: Remove unused files radeon_llvm_util.[ch]

2014-10-06 Thread Tom Stellard
--- src/gallium/drivers/radeon/Makefile.sources | 2 - src/gallium/drivers/radeon/radeon_llvm_util.c | 118 -- src/gallium/drivers/radeon/radeon_llvm_util.h | 39 - 3 files changed, 159 deletions(-) delete mode 100644

[Mesa-dev] [PATCH] util: fix blitter/draw module interaction

2014-10-06 Thread Brian Paul
If a driver uses the blitter utility and the draw module's AA point/line/ etc. helpers we have to very careful when using the pipe_context:: create_fs_state(), bind_fs_state() and delete_fs_state() functions. The draw module can override these driver functions. This fixes the situation where the

Re: [Mesa-dev] [PATCH] Revert configure: ask vdpau.pc for the default location of the vdpau drivers

2014-10-06 Thread Ilia Mirkin
On Mon, Oct 6, 2014 at 11:31 AM, Emil Velikov emil.l.veli...@gmail.com wrote: On 05/10/14 01:26, Ilia Mirkin wrote: On Fri, Oct 3, 2014 at 3:43 AM, Christian König deathsim...@vodafone.de wrote: Am 03.10.2014 um 03:53 schrieb Ilia Mirkin: On Thu, Oct 2, 2014 at 7:59 PM, Emil Velikov

Re: [Mesa-dev] [PATCH] Revert configure: ask vdpau.pc for the default location of the vdpau drivers

2014-10-06 Thread Ilia Mirkin
On Mon, Oct 6, 2014 at 9:11 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Mon, Oct 6, 2014 at 11:31 AM, Emil Velikov emil.l.veli...@gmail.com wrote: On 05/10/14 01:26, Ilia Mirkin wrote: On Fri, Oct 3, 2014 at 3:43 AM, Christian König deathsim...@vodafone.de wrote: Am 03.10.2014 um 03:53

[Mesa-dev] [Bug 84724] [regression, bisected] commit 4155d1c7 broke i915g

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84724 Michel Dänzer mic...@daenzer.net changed: What|Removed |Added CC||mar...@gmail.com --

[Mesa-dev] [Bug 84570] Borderlands 2: Constant frame rate drops while playing; really bad with additionl lighting

2014-10-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 --- Comment #7 from Michel Dänzer mic...@daenzer.net --- Can you add 'requested-VRAM+VRAM-usage,requested-GTT+GTT-usage' to GALLIUM_HUD? -- You are receiving this mail because: You are the assignee for the bug.

Re: [Mesa-dev] [PATCH] radeonsi: Use dummy pixel shader if compilation of the real shader failed

2014-10-06 Thread Michel Dänzer
On 06.10.2014 19:42, Marek Olšák wrote: Reviewed-by: Marek Olšák marek.ol...@amd.com Thanks. I pushed a slightly different fix which uses a local variable instead of the cast. I hope that's okay. -- Earthling Michel Dänzer| http://www.amd.com Libre software

Re: [Mesa-dev] [PATCH] Revert configure: ask vdpau.pc for the default location of the vdpau drivers

2014-10-06 Thread Dave Airlie
Is it missing an R-b? Reviewed-by: Dave Airlie airl...@redhat.com can you just push it now? Dave. On 7 October 2014 11:36, Ilia Mirkin imir...@alum.mit.edu wrote: On Mon, Oct 6, 2014 at 9:11 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Mon, Oct 6, 2014 at 11:31 AM, Emil Velikov