Re: [Mesa-dev] [PATCH] glsl: Make copy propagation not panic when it sees an intrinsic.

2016-12-11 Thread Kenneth Graunke
On Saturday, December 10, 2016 12:37:16 PM PST Matt Turner wrote: > On Fri, Dec 9, 2016 at 8:28 PM, Kenneth Graunke wrote: > > A number of games have large arrays of constants, which we promote to > > uniforms. This introduces copies from the uniform array to the original > > temporary array. No

Re: [Mesa-dev] [PATCH 26/27] i965: Remove scanout restriction from lossless compression

2016-12-11 Thread Pohjolainen, Topi
On Thu, Dec 01, 2016 at 02:10:07PM -0800, Ben Widawsky wrote: > From: Ben Widawsky > > Cc: Topi Pohjolainen > Signed-off-by: Ben Widawsky > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 12 +++- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff --git a/src/mesa/driver

Re: [Mesa-dev] [RFC 3/7] i965/fs: Add a CHANNEL_IDS opcode

2016-12-11 Thread Pohjolainen, Topi
On Mon, Dec 05, 2016 at 11:59:54AM -0800, Jason Ekstrand wrote: > --- > src/mesa/drivers/dri/i965/brw_defines.h| 6 ++ > src/mesa/drivers/dri/i965/brw_fs.h | 3 +++ > src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 1 + > src/mesa/drivers/dri/i965/brw_fs_generator.cpp |

Re: [Mesa-dev] [PATCH 1/2] i965/blit: Fix the src dimension sanity check in miptree_copy

2016-12-11 Thread Pohjolainen, Topi
On Tue, Dec 06, 2016 at 12:37:45PM -0800, Jason Ekstrand wrote: > Cc: "13.0" > --- > src/mesa/drivers/dri/i965/intel_blit.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/intel_blit.c > b/src/mesa/drivers/dri/i965/intel_blit.c > index 03

Re: [Mesa-dev] [PATCH] glsl: Make copy propagation not panic when it sees an intrinsic.

2016-12-11 Thread Marek Olšák
I don't see any difference in Deus Ex, but F1 2015 uses 64% less spilled-temp-array memory with this on GCN. Marek On Sat, Dec 10, 2016 at 5:28 AM, Kenneth Graunke wrote: > A number of games have large arrays of constants, which we promote to > uniforms. This introduces copies from the uniform

[Mesa-dev] [PATCH 84/84 v2] st/nine: Implement new buffer upload path

2016-12-11 Thread Axel Davy
This new buffer upload path enables to lock faster than the normal path when using DISCARD/NOOVERWRITE. v2: Diverse cleanups and fixes. Signed-off-by: Axel Davy --- This patch needed a few cleanups, whih this new version adds. With this version, I wasn't able to reproduce the memory leak. I'm no

[Mesa-dev] [Bug 99055] Games hang / freeze completely

2016-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99055 Bug ID: 99055 Summary: Games hang / freeze completely Product: Mesa Version: 13.0 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: major

[Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-11 Thread Jonathan Gray
Commit 929fcee47e46781c57f2a354ce0a013915c033d1 introduced code that attempts to unlock an unlocked mutex which is undefined behaviour. On OpenBSD this leads to an abort: 0 0x124dadfa96ba in thrkill () at :2 1 0x124dadf3da39 in *_libc_abort () at /usr/src/lib/libc/stdlib/abort.c:52 2 0

Re: [Mesa-dev] [PATCH 1/2] i965/blit: Fix the src dimension sanity check in miptree_copy

2016-12-11 Thread Jason Ekstrand
On Dec 11, 2016 12:28 AM, "Pohjolainen, Topi" wrote: On Tue, Dec 06, 2016 at 12:37:45PM -0800, Jason Ekstrand wrote: > Cc: "13.0" > --- > src/mesa/drivers/dri/i965/intel_blit.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/intel_blit.c

[Mesa-dev] [Bug 98869] Electronic Super Joy graphic artefacts (regression)

2016-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98869 cosiek...@o2.pl changed: What|Removed |Added Priority|medium |high -- You are receiving this mail be

[Mesa-dev] [PATCH 1/2] vulkan: deduplicate the util code

2016-12-11 Thread Grazvydas Ignotas
anv_util.c and radv_util.c are essentially duplicates, so create a new vk_util.c to be shared by both vulkan drivers. Some other content from anv_private.h and radv_private.h was moved to vk_util.h too. Signed-off-by: Grazvydas Ignotas --- no commit access configure.ac |

[Mesa-dev] [PATCH 2/2] vulkan: fix 'statement with no effect' warning

2016-12-11 Thread Grazvydas Ignotas
Emitted on release build in case vk_error() return is not used. Signed-off-by: Grazvydas Ignotas --- no commit access src/vulkan/vk_util.c | 4 src/vulkan/vk_util.h | 13 - 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/vulkan/vk_util.c b/src/vulkan/vk_uti

Re: [Mesa-dev] [PATCH 1/2] i965/blit: Fix the src dimension sanity check in miptree_copy

2016-12-11 Thread Pohjolainen, Topi
On Sun, Dec 11, 2016 at 07:56:59AM -0800, Jason Ekstrand wrote: >On Dec 11, 2016 12:28 AM, "Pohjolainen, Topi" ><[1]topi.pohjolai...@gmail.com> wrote: > >On Tue, Dec 06, 2016 at 12:37:45PM -0800, Jason Ekstrand wrote: >> Cc: "13.0" <[2]mesa-sta...@lists.freedesktop.org> >> ---

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-11 Thread Eduardo Lima Mitev
Looks good. Reviewed-by: Eduardo Lima Mitev On 12/11/2016 04:42 PM, Jonathan Gray wrote: > Commit 929fcee47e46781c57f2a354ce0a013915c033d1 introduced code that > attempts to unlock an unlocked mutex which is undefined behaviour. > > On OpenBSD this leads to an abort: > > 0 0x124dadfa96ba

Re: [Mesa-dev] [PATCH] i965: fix release build unused variable warning

2016-12-11 Thread Eduardo Lima Mitev
The patch looks good but now that we are at it, I would move the definition and assignment of 'is_lossless_compressed' to the block where it is used, right before the assert. Right now we are always defining and assigning the variable, but it is consumed conditionally. With that changed, patch is:

Re: [Mesa-dev] [PATCH] anv: fix release build unused variable warnings

2016-12-11 Thread Eduardo Lima Mitev
Looks good. I don't remember the MAYBE_UNUSED macro being used that much in mesa opengl, but it seems it is trendy in vulkan code. Reviewed-by: Eduardo Lima Mitev On 12/10/2016 08:10 PM, Grazvydas Ignotas wrote: > Signed-off-by: Grazvydas Ignotas > --- > no commit access, somebody please push >

Re: [Mesa-dev] [PATCH] intel/aubinator: fix 32bit shift overflow warning

2016-12-11 Thread Eduardo Lima Mitev
Looks good. Reviewed-by: Eduardo Lima Mitev Will push this and the other ones I reviewed. Thanks! Eduardo On 12/10/2016 08:10 PM, Grazvydas Ignotas wrote: > Doesn't look like this can work on 32bit, just rids of annoying > warning. > > Signed-off-by: Grazvydas Ignotas > --- > no commit acce

[Mesa-dev] [PATCH v2] i965: fix release build unused variable warning

2016-12-11 Thread Grazvydas Ignotas
Signed-off-by: Grazvydas Ignotas --- v2: take Eduardo Lima's suggestion further - remove the variable completely no commit access src/mesa/drivers/dri/i965/brw_blorp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers

[Mesa-dev] [Bug 99055] Games hang / freeze completely

2016-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99055 --- Comment #1 from Etienne Bruines --- Update: apitrace did not magically fix it, but it did delay the symptom by a few hours. -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___

[Mesa-dev] [PATCH] nv50/ir: use OPCLASS_SURFACE for SUSTB

2016-12-11 Thread Samuel Pitoiset
Found by inspection, probably a typo because a surface store is definitely not an atomic operation. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/codegen/nv50_ir_target.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv

Re: [Mesa-dev] [PATCH] nv50/ir: use OPCLASS_SURFACE for SUSTB

2016-12-11 Thread Ilia Mirkin
I don't think we use SUSTB anyways... it was used in the old handleSTORE logic in the tgsi -> nvir converter, but wtvr. I have a feeling it's the sort of thing that might matter for nv50 (vs nvc0), but for now this is fine. (Esp since the opclasses don't matter on nv50.) On Sun, Dec 11, 2016 at 5:

[Mesa-dev] [PATCH 84/84 v3] st/nine: Implement new buffer upload path

2016-12-11 Thread Axel Davy
This new buffer upload path enables to lock faster than the normal path when using DISCARD/NOOVERWRITE. v2: Diverse cleanups and fixes. v3: Fix allocation size for 'lone' buffers and add more debug info. Signed-off-by: Axel Davy --- This fixes the reported 'leak' (which was not a leak but the co

[Mesa-dev] [PATCH] i965: Print out cycle estimates at the start of block annotations.

2016-12-11 Thread Kenneth Graunke
We now print START B15 <-B14 (42774 cycles) indicating that we estimate B15 will take 42,774 cycles. Printing this should make it easier where time is spent in the program. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/intel_asm_annotation.c | 2 +- 1 file changed, 1 inserti

Re: [Mesa-dev] [PATCH v2 000/103] i965 Haswell ARB_gpu_shader_fp64 / OpenGL 4.0

2016-12-11 Thread Matt Turner
i965/vec4: handle 32 and 64 bit channels in liveness analysis Please indent the returned multiline expressions in var_from_reg() like we do elsewhere, so that the second line begins on the same column as the first line. */ goes on its own line. I'm having

Re: [Mesa-dev] [PATCH] i965: Print out cycle estimates at the start of block annotations.

2016-12-11 Thread Matt Turner
Good plan. Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] mesa: Clamp GetUniformuiv values to be >= 0.

2016-12-11 Thread Kenneth Graunke
Section 2.2.2 (Data Conversions For State Query Commands) of the OpenGL 4.5 October 24th 2016 specification says: "If a command returning unsigned integer data is called, such as GetSamplerParameterIuiv, negative values are clamped to zero." Fixes GL44-CTS.gpu_shader_fp64.state_query. Signed-of

[Mesa-dev] [Bug 99055] Games hang / freeze completely

2016-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99055 --- Comment #2 from Timothy Arceri --- (In reply to Etienne Bruines from comment #0) > > I'd be happy to provide any additional information. The most helpful thing you could do is build mesa from source and bisect the commit that introduces the

[Mesa-dev] [PATCH 1/6] gallivm: (trivial) handle non-aligned fetch for lp_build_fetch_rgba_soa

2016-12-11 Thread sroland
From: Roland Scheidegger soa fetch so far always assumed that data was aligned. However, we want to use this for vertex fetch, and data might not be aligned there, so handle it in this path too (basically just pass through alignment through to other functions). (It looks like it wouldn't work for

[Mesa-dev] [PATCH 6/6] draw: use SoA fetch, not AoS one

2016-12-11 Thread sroland
From: Roland Scheidegger Now that there's some SoA fetch which never falls back, we should usually get results which are better or at least not worse (something like rgba32f will stay the same). I suppose though it might be worse in some cases where the format doesn't require conversion (e.g. rg3

[Mesa-dev] [PATCH 5/6] gallivm: generalize the compressed format soa fetch a bit

2016-12-11 Thread sroland
From: Roland Scheidegger This can now handle rgtc (unorm) too - this path no longer handles plain formats, but that's unnecessary they now all have their proper SoA unpack (this will still be dog-slow though due to the actual fetch being per-pixel util fallbacks). --- src/gallium/auxiliary/galli

[Mesa-dev] [PATCH 4/6] gallivm: provide soa fetch path handling formats with more than 32bit

2016-12-11 Thread sroland
From: Roland Scheidegger This previously always fell back to AoS conversion. Even for 4-float formats (which is the optimal case by far for that fallback case) this was suboptimal, since it meant the conversion couldn't be done with 256bit vectors. While this may still only be partly possible for

[Mesa-dev] [PATCH 2/6] gallivm: optimize SoA AoS fallback fetch path a little

2016-12-11 Thread sroland
From: Roland Scheidegger We should do transpose, not extract/insert, at least with "sufficient" amount of channels (for 4 channels, extract/insert shuffles generated otherwise look truly terrifying). Albeit we shouldn't fallback to that so often in any case. --- src/gallium/auxiliary/gallivm/lp_

[Mesa-dev] [PATCH 3/6] gallivm: optimize gather a bit, by using supplied destination type

2016-12-11 Thread sroland
From: Roland Scheidegger By using a dst_type in the the gather interface, gather has some more knowledge about how values should be fetched. E.g. if this is a 3x32bit fetch and dst_type is 4x32bit vector gather will no longer do a ZExt with a 96bit scalar value to 128bit, but just fetch the 96bit

Re: [Mesa-dev] [PATCH] glsl: Make copy propagation not panic when it sees an intrinsic.

2016-12-11 Thread Timothy Arceri
On Sun, 2016-12-11 at 00:00 -0800, Kenneth Graunke wrote: > On Saturday, December 10, 2016 12:37:16 PM PST Matt Turner wrote: > > > > On Fri, Dec 9, 2016 at 8:28 PM, Kenneth Graunke > org> wrote: > > > > > > A number of games have large arrays of constants, which we > > > promote to > > > unifor

[Mesa-dev] [Bug 98869] Electronic Super Joy graphic artefacts (regression)

2016-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98869 --- Comment #5 from Mark Janes --- If you can't bisect mesa, then providing an apitrace of the workload will allow someone else to bisect it. -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for t

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-11 Thread Edward O'Callaghan
Hold up.. Does this reintroduce the hang in glsl-fs-loop piglit test with MESA_DEBUG=context though? Was that tested? I'm interested to know how this got so muddled up in the first place. Kind Regards, Edward. On 12/12/2016 05:21 AM, Eduardo Lima Mitev wrote: > Looks good. > > Reviewed-by: Edua

Re: [Mesa-dev] [PATCH v3 1/2] clover: fix sampler argument type detection

2016-12-11 Thread Francisco Jerez
Serge Martin writes: > --- > src/gallium/state_trackers/clover/llvm/codegen/common.cpp | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp > b/src/gallium/state_trackers/clover/llvm/codegen/common.cpp > index 13ccd59..aa6ca50 1

Re: [Mesa-dev] [PATCH 4/9] i965: Factor out oword block read and write message control calculation.

2016-12-11 Thread Kenneth Graunke
On Friday, December 9, 2016 11:03:27 AM PST Francisco Jerez wrote: > We'll need roughly the same logic in other places and it would be > annoying to duplicate it. Instead factor it out into a function-like > macro that takes the number of dwords per block (which will prove more > convenient than t

Re: [Mesa-dev] [PATCH] mesa: don't attempt to unlock an unlocked debug state mutex

2016-12-11 Thread Jonathan Gray
Previously there was no _mesa_unlock_debug_state() call at all, one is still retained here for the case where _mesa_lock_debug_state() is called and did not return NULL (which is documented as being unlocked). On Mon, Dec 12, 2016 at 11:40:32AM +1100, Edward O'Callaghan wrote: > Hold up.. > > Doe

[Mesa-dev] fp64 support for Intel HSW

2016-12-11 Thread Darius Spitznagel
Hello devs, could someone please ack the patches from the Igalia guys. It is really frustrating that their patches are still not in master. By the way. I use this branch now for months... https://github.com/Igalia/mesa/tree/i965-va64-gen7-scalar-vec4 and it also enables va64 for HSW and it works

Re: [Mesa-dev] [PATCH 4/9] i965: Factor out oword block read and write message control calculation.

2016-12-11 Thread Francisco Jerez
Kenneth Graunke writes: > On Friday, December 9, 2016 11:03:27 AM PST Francisco Jerez wrote: >> We'll need roughly the same logic in other places and it would be >> annoying to duplicate it. Instead factor it out into a function-like >> macro that takes the number of dwords per block (which will

Re: [Mesa-dev] [PATCH v3 2/2] clover: add GetKernelArgInfo (CL 1.2)

2016-12-11 Thread Francisco Jerez
Serge Martin writes: > --- > src/gallium/state_trackers/clover/api/kernel.cpp | 92 > +- > src/gallium/state_trackers/clover/core/module.cpp | 14 > src/gallium/state_trackers/clover/core/module.hpp | 11 +++ > .../state_trackers/clover/llvm/codegen/common.cpp | 11

Re: [Mesa-dev] [PATCH 1/4] clover: Implement 'CL_MEM_OBJECT_IMAGE2D_ARRAY'

2016-12-11 Thread Francisco Jerez
Edward O'Callaghan writes: > On 11/25/2016 03:38 PM, Francisco Jerez wrote: >> Edward O'Callaghan writes: >> >>> Signed-off-by: Edward O'Callaghan >>> --- >>> src/gallium/state_trackers/clover/api/memory.cpp | 17 - >>> src/gallium/state_trackers/clover/core/memory.cpp | 14 +

Re: [Mesa-dev] [PATCH 2/4] clover: Implement 'CL_MEM_OBJECT_IMAGE1D'

2016-12-11 Thread Francisco Jerez
Edward O'Callaghan writes: > Hi Francisco, thanks for the review.. > > On 11/25/2016 03:39 PM, Francisco Jerez wrote: >> Edward O'Callaghan writes: >> >>> Signed-off-by: Edward O'Callaghan >>> --- >>> src/gallium/state_trackers/clover/api/memory.cpp | 9 - >>> src/gallium/state_trac

Re: [Mesa-dev] [PATCH 2/2] vulkan: fix 'statement with no effect' warning

2016-12-11 Thread Jason Ekstrand
I have a patch in my tree that fixes that warning by making us actually return the error code in that function rather than simply using it as a fancy print function. I think that's the better fix. On Dec 11, 2016 9:06 AM, "Grazvydas Ignotas" wrote: > Emitted on release build in case vk_error() r

Re: [Mesa-dev] [PATCH v3] EGL/android: Enhance pbuffer implementation

2016-12-11 Thread Tomasz Figa
Hi, On Fri, Dec 9, 2016 at 8:29 PM, Liu Zhiquan wrote: > Some dri drivers will pass multiple bits in buffer_mask parameter > to droid_image_get_buffer(), more than the actual supported buffer > type combination. For such case, will go through all the bits, and > will not return error when unsuppo

Re: [Mesa-dev] [PATCH v3 2/3] svga: Fix a strict-aliasing violation in shader dumper

2016-12-11 Thread Edward O'Callaghan
Brian/Roland ping? On 12/07/2016 10:30 AM, Edward O'Callaghan wrote: > As per the C spec, it is illegal to alias pointers to different > types. This results in undefined behaviour after optimization > passes, resulting in very subtle bugs that happen only on a > full moon.. > > Use a memcpy() as

Re: [Mesa-dev] [PATCH] glsl: Make copy propagation not panic when it sees an intrinsic.

2016-12-11 Thread Timothy Arceri
On Mon, 2016-12-12 at 11:35 +1100, Timothy Arceri wrote: > On Sun, 2016-12-11 at 00:00 -0800, Kenneth Graunke wrote: > > > > On Saturday, December 10, 2016 12:37:16 PM PST Matt Turner wrote: > > > > > > > > > On Fri, Dec 9, 2016 at 8:28 PM, Kenneth Graunke > > e. > > > org> wrote: > > > > > >

Re: [Mesa-dev] [PATCH 4/9] i965: Factor out oword block read and write message control calculation.

2016-12-11 Thread Kenneth Graunke
On Sunday, December 11, 2016 5:44:03 PM PST Francisco Jerez wrote: > Kenneth Graunke writes: > > > On Friday, December 9, 2016 11:03:27 AM PST Francisco Jerez wrote: > >> We'll need roughly the same logic in other places and it would be > >> annoying to duplicate it. Instead factor it out into a

Re: [Mesa-dev] [PATCH v2] i965: fix release build unused variable warning

2016-12-11 Thread Eduardo Lima Mitev
On 12/11/2016 08:57 PM, Grazvydas Ignotas wrote: > Signed-off-by: Grazvydas Ignotas > --- > v2: take Eduardo Lima's suggestion further - remove the variable completely > no commit access > I just pushed the patch. Thanks! Eduardo > src/mesa/drivers/dri/i965/brw_blorp.c | 4 +--- > 1 file chan