Re: [Mesa-dev] [PATCH 5/5] glsl: Recognize open-coded pow(x, y).

2014-09-25 Thread Kenneth Graunke
On Monday, September 08, 2014 12:21:44 PM Matt Turner wrote: pow(x, y) is equivalent to exp(log(x) * y). instructions in affected programs: 578 - 458 (-20.76%) Impressive stats! --- src/glsl/opt_algebraic.cpp | 14 ++ 1 file changed, 14 insertions(+) diff --git

[Mesa-dev] [PATCH] st/mesa: Use PIPE_USAGE_STAGING for GL_STATIC/DYNAMIC/STREAM_READ buffers

2014-09-25 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Such buffers can only be useful by reading from them with the CPU, so we need to make sure CPU reads are fast. Signed-off-by: Michel Dänzer michel.daen...@amd.com --- src/mesa/state_tracker/st_cb_bufferobjects.c | 8 +--- 1 file changed, 5

[Mesa-dev] [PATCH v2] st/mesa: Use PIPE_USAGE_STAGING for GL_STATIC/DYNAMIC/STREAM_READ buffers

2014-09-25 Thread Michel Dänzer
From: Michel Dänzer michel.daen...@amd.com Such buffers can only be useful by reading from them with the CPU, so we need to make sure CPU reads are fast. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84178 Signed-off-by: Michel Dänzer michel.daen...@amd.com --- v2: Add Bugzilla tag

Re: [Mesa-dev] [PATCH v2] replace file specific compiler optimization withinline attibute

2014-09-25 Thread Marc Dietrich
Am Mittwoch, 24. September 2014, 18:35:24 schrieb Matt Turner: On Wed, Sep 24, 2014 at 6:25 AM, Marc Dietrich marvi...@gmx.de wrote: Am Montag, 22. September 2014, 11:48:29 schrieb Matt Turner: We need a configure check for support for __attribute__((target)). I'm going to send a series

[Mesa-dev] [PATCH] gm107/ir: fix texture argument order

2014-09-25 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin imir...@alum.mit.edu Cc: 10.3 mesa-sta...@lists.freedesktop.org --- With this, all the tex-miplevel-selection tests pass on maxwell. There is a minor bit of this change which affects textureGrad on kepler that I have yet to test, but I'm moderately sure it's correct and

[Mesa-dev] [Bug 84186] X 1.16.1 RC 1 segfaults and reports XXX fail to create fbo with Radeon HD 7970.

2014-09-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84186 --- Comment #4 from John Steele Scott tooj...@toojays.net --- (In reply to comment #3) The question is why the FBO creation fails. Reassigning to Mesa core for now. Can you attach the stderr output from running Xorg with the environment

Re: [Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-25 Thread Emil Velikov
Hi Leo, On 24/09/14 16:24, Liu, Leo wrote: Hi Emil, -Original Message- From: Emil Velikov [mailto:emil.l.veli...@gmail.com] Sent: Tuesday, September 23, 2014 3:49 PM To: Liu, Leo; mesa-dev@lists.freedesktop.org Cc: emil.l.veli...@gmail.com; Koenig, Christian Subject: Re:

[Mesa-dev] [Bug 84186] X 1.16.1 RC 1 segfaults and reports XXX fail to create fbo with Radeon HD 7970.

2014-09-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84186 --- Comment #5 from John Steele Scott tooj...@toojays.net --- Created attachment 106844 -- https://bugs.freedesktop.org/attachment.cgi?id=106844action=edit X server output with EGL_LOG_LEVEL=debug and -verbose 20 I'm attaching the output of

Re: [Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-25 Thread Gwenole Beauchesne
Hi, 2014-09-23 18:44 GMT+02:00 Leo Liu leo@amd.com: From: Christian König christian.koe...@amd.com This patch adds a skeleton VA-API state tracker, which is filled with live in the subsequent patches. Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by: Leo Liu

Re: [Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-25 Thread Gwenole Beauchesne
2014-09-25 12:21 GMT+02:00 Emil Velikov emil.l.veli...@gmail.com: Hi Leo, On 24/09/14 16:24, Liu, Leo wrote: Hi Emil, -Original Message- From: Emil Velikov [mailto:emil.l.veli...@gmail.com] Sent: Tuesday, September 23, 2014 3:49 PM To: Liu, Leo; mesa-dev@lists.freedesktop.org Cc:

Re: [Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-25 Thread Gwenole Beauchesne
Hi, 2014-09-23 18:44 GMT+02:00 Leo Liu leo@amd.com: This patch implements functions for images support, which basically supports copy data between video surface and user buffers, in this case supports SW decode, and other video output My quick comments on this: - Be careful of

Re: [Mesa-dev] [PATCH] st/mesa: Use PIPE_USAGE_STAGING for GL_STATIC/DYNAMIC/STREAM_READ buffers

2014-09-25 Thread Marek Olšák
Looks good. Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Thu, Sep 25, 2014 at 8:31 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com Such buffers can only be useful by reading from them with the CPU, so we need to make sure CPU reads are fast.

Re: [Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-25 Thread Emil Velikov
Hi Leo, On 23/09/14 17:44, Leo Liu wrote: This patch implements functions for images support, which basically supports copy data between video surface and user buffers, in this case supports SW decode, and other video output You've increased the image formats to 4, yet the driver reports

Re: [Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-25 Thread Christian König
Now let see how well it works with nouveau :P I fear not at all, cause nouveau never supported chunked decoding. Regards, Christian. Am 25.09.2014 um 12:21 schrieb Emil Velikov: Hi Leo, On 24/09/14 16:24, Liu, Leo wrote: Hi Emil, -Original Message- From: Emil Velikov

Re: [Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-25 Thread Liu, Leo
Hi Emil, Sorry for that. Get incorrect after some rebase for patch 2 context.c + ctx-max_image_formats = 1; That should be 4 Thanks, Leo -Original Message- From: Emil Velikov [mailto:emil.l.veli...@gmail.com] Sent: Thursday, September 25, 2014 8:29 AM To: Liu, Leo;

Re: [Mesa-dev] [PATCH 2/6] st/va: skeleton VAAPI state tracker

2014-09-25 Thread Liu, Leo
Hi Gwenole and Emil, +gallium_drv_video_la_LIBADD = \ + $(top_builddir)/src/gallium/state_trackers/va/libvatracker.la \ + $(top_builddir)/src/gallium/auxiliary/libgallium.la \ + $(top_builddir)/src/util/libmesautil.la \ + $(LIBVA_LIBS) \ Unless I've missed something this link should

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

2014-09-25 Thread Erik Faye-Lund
On Wed, Sep 24, 2014 at 1:35 PM, Erik Faye-Lund kusmab...@gmail.com wrote: Hm. Don't I need to expand this last immediate to a vector of type-components() size as well? If so, this patch should go on top: diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index

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

2014-09-25 Thread Erik Faye-Lund
On Thu, Sep 25, 2014 at 4:54 PM, Erik Faye-Lund kusmab...@gmail.com wrote: On Wed, Sep 24, 2014 at 1:35 PM, Erik Faye-Lund kusmab...@gmail.com wrote: Hm. Don't I need to expand this last immediate to a vector of type-components() size as well? If so, this patch should go on top: diff --git

Re: [Mesa-dev] [PATCH 1/5] i965/fs: Extend predicated break pass to predicate WHILE.

2014-09-25 Thread Ian Romanick
How did you test this? Do we have piglit execution tests that actually hit this path? I'm assuming you didn't play Serious Sam 3 looking for rendering errors. ;) On 09/08/2014 12:21 PM, Matt Turner wrote: Helps a handful of programs in Serious Sam 3 that use do-while loops. instructions in

Re: [Mesa-dev] [PATCH 1/5] i965/fs: Extend predicated break pass to predicate WHILE.

2014-09-25 Thread Matt Turner
On Thu, Sep 25, 2014 at 8:25 AM, Ian Romanick i...@freedesktop.org wrote: How did you test this? Do we have piglit execution tests that actually hit this path? I'm assuming you didn't play Serious Sam 3 looking for rendering errors. ;) I wrote the patch and initially missed the necessary

Re: [Mesa-dev] [PATCH 0/4] More UBO fixes

2014-09-25 Thread Ian Romanick
On 09/10/2014 03:37 PM, Ian Romanick wrote: This series fixes some of the bugs that I have recently found via my UBO test generator. These are basically all cases where lower_ubo_reference and the linker disagree about the layout of the UBO (and the linker was correct). No regressions on a

Re: [Mesa-dev] [PATCH 0/4] More UBO fixes

2014-09-25 Thread Jordan Justen
Reviewed-by: Jordan Justen jordan.l.jus...@intel.com On Wed, Sep 10, 2014 at 3:37 PM, Ian Romanick i...@freedesktop.org wrote: This series fixes some of the bugs that I have recently found via my UBO test generator. These are basically all cases where lower_ubo_reference and the linker

[Mesa-dev] [PATCH] i965: Use memset to do fast color clears on non-busy miptrees.

2014-09-25 Thread Kenneth Graunke
Fast color clears simply fill the MCS buffer with 0xff. If the MCS BO is not busy, we can map it without stalling and simply use memset to do that, without having to reprogram the entire GPU, draw rectangles, and invoke pixel shaders. This is presumably cheaper. This code was swiped from

[Mesa-dev] [PATCH] glapi: Remove _x86_64_get_get_dispatch symbol from x86-64 assembly.

2014-09-25 Thread Matt Turner
Never used. --- src/mapi/glapi/gen/gl_x86-64_asm.py | 6 -- 1 file changed, 6 deletions(-) diff --git a/src/mapi/glapi/gen/gl_x86-64_asm.py b/src/mapi/glapi/gen/gl_x86-64_asm.py index 19e0e15..3a0eec9 100644 --- a/src/mapi/glapi/gen/gl_x86-64_asm.py +++ b/src/mapi/glapi/gen/gl_x86-64_asm.py

Re: [Mesa-dev] [PATCH 1/4] radeonsi/compute: directly emit CONTEXT_CONTROL

2014-09-25 Thread Tom Stellard
On Mon, Sep 22, 2014 at 09:48:43PM +0200, Marek Olšák wrote: No, we cannot detect compute-only contexts yet. We need to add a new parameter to pipe_context::context_create which says that a context is compute-only. That should be OpenCL but not OpenGL. Also, some code paths like

[Mesa-dev] [PATCH] configure.ac: Compute LLVM_VERSION_PATCH using llvm-config

2014-09-25 Thread Tom Stellard
This is the only guaranteed way get the patch level for llvm, since the define cannot always be found in config.h depending on the version of llvm or the build system used. CC: mesa-sta...@lists.freedesktop.org --- configure.ac | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

Re: [Mesa-dev] [PATCH] gallivm: More fallout from disabling with LLVM 3.6

2014-09-25 Thread Tom Stellard
On Thu, Sep 25, 2014 at 12:24:14PM +0900, Michel Dänzer wrote: From: Michel Dänzer michel.daen...@amd.com The draw module would still try to use gallivm, causing many piglit tests to fail with an assertion failure. llvmpipe might have been similarly affected. Reviewed-by: Tom Stellard

Re: [Mesa-dev] Initial Skylake enabling

2014-09-25 Thread Anuj Phogat
On Wed, Sep 24, 2014 at 5:54 PM, Anuj Phogat anuj.pho...@gmail.com wrote: On Wed, Sep 24, 2014 at 12:28 PM, Kristian Høgsberg k...@bitplanet.net wrote: Here's a set of 16 patches to bring up mesa on Skylake (GEN 9). This is just initial enabling, there's more work to do. Most patches have

Re: [Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-25 Thread Liu, Leo
Hi Gwenole, -Original Message- From: Gwenole Beauchesne [mailto:gb.de...@gmail.com] Sent: Thursday, September 25, 2014 7:41 AM To: Liu, Leo Cc: mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image Hi, 2014-09-23

Re: [Mesa-dev] [PATCH 1/1] glapi: Fix compiler warning and script name

2014-09-25 Thread Jan Vesely
On Wed, 2014-08-13 at 16:47 -0400, Jan Vesely wrote: Signed-off-by: Jan Vesely jan.ves...@rutgers.edu --- src/mapi/glapi/gen/gl_gentable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py index

Re: [Mesa-dev] [PATCH] glsl: Structures must have same name to be considered same type.

2014-09-25 Thread kalyan kondapally
On Wed, Sep 24, 2014 at 11:45 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Mon, Sep 22, 2014 at 5:11 AM, Tapani Pälli tapani.pa...@intel.com wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL(4.2) and GLSL-ES (1.0, 3.0) spec, Structures must have the same name to

[Mesa-dev] [Bug 45466] Updated configure.ac check for llvm-config to use 32 version when appropriate

2014-09-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45466 Alexandre Demers alexandre.f.dem...@gmail.com changed: What|Removed |Added CC|alexandre.f.dem...@gmail.co |

[Mesa-dev] [Bug 69874] Automake throws a lot of [...] option 'subdir-objects' is disabled

2014-09-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=69874 Alexandre Demers alexandre.f.dem...@gmail.com changed: What|Removed |Added CC|alexandre.f.dem...@gmail.co |

[Mesa-dev] [Bug 54234] link break after git pull august 29

2014-09-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54234 Alexandre Demers alexandre.f.dem...@gmail.com changed: What|Removed |Added CC|alexandre.f.dem...@gmail.co |

[Mesa-dev] [PATCH] gm107/ir: take relative pfetch offset into account

2014-09-25 Thread Ilia Mirkin
There is no dedicated instruction for this, so just combine it with the constant offset. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu Cc: 10.3 mesa-sta...@lists.freedesktop.org --- This fixes the spec/glsl-1.50/execution/geometry/dynamic_input_array_index piglit test.

Re: [Mesa-dev] [PATCH 6/6] st/va: implement vlVa(Query|Create|Get|Put|Destroy)Image

2014-09-25 Thread Gwenole Beauchesne
Hi Leo, 2014-09-26 0:36 GMT+02:00 Liu, Leo leo@amd.com: Hi Gwenole, -Original Message- From: Gwenole Beauchesne [mailto:gb.de...@gmail.com] Sent: Thursday, September 25, 2014 7:41 AM To: Liu, Leo Cc: mesa-dev@lists.freedesktop.org Subject: Re: [Mesa-dev] [PATCH 6/6] st/va:

Re: [Mesa-dev] [PATCH] glsl: Structures must have same name to be considered same type.

2014-09-25 Thread Tapani Pälli
On 09/26/2014 04:25 AM, kalyan kondapally wrote: On Wed, Sep 24, 2014 at 11:45 AM, Anuj Phogat anuj.pho...@gmail.com wrote: On Mon, Sep 22, 2014 at 5:11 AM, Tapani Pälli tapani.pa...@intel.com wrote: From: Kalyan Kondapally kalyan.kondapa...@intel.com According to GLSL(4.2) and GLSL-ES (1.0,