Re: [Mesa-dev] Make Jordan an Owner of the mesa project?

2018-12-05 Thread Jordan Justen
On 2018-12-04 19:39:05, Jason Ekstrand wrote: > Given that everyone else has firmly ACKed, I'm going to click the button. > Congratulations, Jordan, you're now a mesa Owner! Thanks all! ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [Bug 108925] vkCmdCopyQueryPoolResults(VK_QUERY_RESULT_WAIT_BIT) for timestamps with large query count hangs

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108925 Alex Smith changed: What|Removed |Added Attachment #142700|0 |1 is obsolete|

Re: [Mesa-dev] [PATCH 23/59] intel/compiler: Extended Math is limited to SIMD8 on half-float

2018-12-05 Thread Pohjolainen, Topi
On Tue, Dec 04, 2018 at 08:16:47AM +0100, Iago Toral Quiroga wrote: > From the Skylake PRM, Extended Math Function: > > "The execution size must be no more than 8 when half-floats >are used in source or destination operand." > > Earlier generations do not support Extended Math with

Re: [Mesa-dev] [PATCH 7/8] gm107/ir: add lowering of atomic f32 add on shared memory

2018-12-05 Thread Karol Herbst
On Wed, Dec 5, 2018 at 6:30 AM Ilia Mirkin wrote: > > Signed-off-by: Ilia Mirkin > --- > .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 49 +++ > .../nouveau/codegen/nv50_ir_lowering_nvc0.h | 1 + > 2 files changed, 50 insertions(+) > > diff --git

Re: [Mesa-dev] [PATCH] radv: Flush before vkCmdWriteTimestamp() if needed

2018-12-05 Thread Samuel Pitoiset
On 12/5/18 11:15 AM, Alex Smith wrote: Thanks. Though this fixes the 100% repro hang, I think your first patch is still needed as well to handle getting 0x in the low 32 bits. Yeah, it's still needed. Though I think it should be enough to wait on the high 32bits as suggested by Bas.

Re: [Mesa-dev] [PATCH 10/59] intel/compiler: implement conversions from 16-bit float to 64-bit

2018-12-05 Thread Iago Toral
On Tue, 2018-12-04 at 18:10 +0200, Pohjolainen, Topi wrote: > On Tue, Dec 04, 2018 at 02:33:25PM +0200, Pohjolainen, Topi wrote: > > On Tue, Dec 04, 2018 at 08:16:34AM +0100, Iago Toral Quiroga wrote: > > > Signed-off-by: Samuel Iglesias Gonsálvez > > > --- > > >

[Mesa-dev] [Bug 106958] Mass Effect Andromeda renders correctly on RX480 POLARIS but BAD ON RX VEGA 64 on wine 3.10 stagingf with DXVK

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106958 Samuel Pitoiset changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH 11/59] intel/compiler: Implement float64/int64 to float16 conversion

2018-12-05 Thread Pohjolainen, Topi
On Wed, Dec 05, 2018 at 09:49:29AM +0100, Iago Toral wrote: > On Tue, 2018-12-04 at 14:57 +0200, Pohjolainen, Topi wrote: > > On Tue, Dec 04, 2018 at 08:16:35AM +0100, Iago Toral Quiroga wrote: > > > From: Samuel Iglesias Gonsálvez > > > > > > It is not supported directly in the HW, we need to

Re: [Mesa-dev] [PATCH] radv: Flush before vkCmdWriteTimestamp() if needed

2018-12-05 Thread Samuel Pitoiset
Yes, this is correct, indeed. The issue wasn't present because we used EOP events before removing the availability bit. Btw, just noticed that we should reset pending_reset_query directly in si_emit_cache_flush() to reduce the number of stalls. I will send a patch. Also note that fill CP

[Mesa-dev] [PATCH] radv: reset pending_reset_query when flushing caches

2018-12-05 Thread Samuel Pitoiset
If the driver used a compute shader for resetting a query pool, it should be completed when caches are flushed. This might reduce the number of stalls if operations are done between vkCmdResetQueryPool() and vkCmdBeginQuery() (or vkCmdWriteTimestamp()). Signed-off-by: Samuel Pitoiset ---

Re: [Mesa-dev] [PATCH] anv/android: Do not reject storage images.

2018-12-05 Thread Tapani Pälli
On 12/5/18 12:34 PM, Bas Nieuwenhuizen wrote: We do the ImageFormatProperties check already, and rejecting an usage flag when both ImageFormatProperties and the WSI (which is Android) support it is not allowed. Intel does support storage for some of the support WSI formats, such as

Re: [Mesa-dev] [PATCH 22/59] compiler/nir: add lowering for 16-bit ldexp

2018-12-05 Thread Iago Toral
On Wed, 2018-12-05 at 11:39 +0200, Pohjolainen, Topi wrote: > I remember people preferring to order things 16, 32, 64 before. > Should > we follow that here as well? Yes, it makes sense. I'll change that. > On Tue, Dec 04, 2018 at 08:16:46AM +0100, Iago Toral Quiroga wrote: > > --- > >

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Bas Nieuwenhuizen
On Fri, Sep 7, 2018 at 12:54 AM Kevin Strasser wrote: > > Android P and earlier expect that the surface supports storage images, and > so many of the tests fail when the framework checks for that support. The > framework also includes various image format and usage combinations that are > invalid

Re: [Mesa-dev] [PATCH 11/59] intel/compiler: Implement float64/int64 to float16 conversion

2018-12-05 Thread Iago Toral
On Tue, 2018-12-04 at 14:57 +0200, Pohjolainen, Topi wrote: > On Tue, Dec 04, 2018 at 08:16:35AM +0100, Iago Toral Quiroga wrote: > > From: Samuel Iglesias Gonsálvez > > > > It is not supported directly in the HW, we need to convert to a 32- > > bit > > type first as intermediate step. > > > >

Re: [Mesa-dev] [PATCH] radv: fix vkCmdCopyQueryoolResults() for timestamp queries

2018-12-05 Thread Alex Smith
On Tue, 4 Dec 2018 at 21:57, Bas Nieuwenhuizen wrote: > On Tue, Dec 4, 2018 at 4:52 PM Samuel Pitoiset > wrote: > > > > Because WAIT_REG_MEM can only wait for a 32-bit value, it's not > > safe to use it for timestamp queries. If we only wait on the low > > 32 bits of a timestamp query we could

[Mesa-dev] [PATCH] etnaviv: fix resource usage tracking across different pipe_context's

2018-12-05 Thread Marek Vasut
From: Christian Gmeiner A pipe_resource can be shared by all the pipe_context's hanging off the same pipe_screen. Signed-off-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_context.c | 21 - src/gallium/drivers/etnaviv/etnaviv_context.h | 3 --

Re: [Mesa-dev] [PATCH] radv: Flush before vkCmdWriteTimestamp() if needed

2018-12-05 Thread Alex Smith
Thanks. Though this fixes the 100% repro hang, I think your first patch is still needed as well to handle getting 0x in the low 32 bits. On Wed, 5 Dec 2018 at 10:04, Samuel Pitoiset wrote: > Yes, this is correct, indeed. > > The issue wasn't present because we used EOP events before

[Mesa-dev] [Bug 108925] vkCmdCopyQueryPoolResults(VK_QUERY_RESULT_WAIT_BIT) for timestamps with large query count hangs

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108925 Samuel Pitoiset changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 108914] blocky shadow artifacts in The Forest with DXVK, RADV_DEBUG=nohiz fixes this

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108914 Samuel Pitoiset changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 108578] RADV reports wrong hardcoded Vulkan API Version

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108578 Samuel Pitoiset changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] radv: wait on the high 32 bits of timestamp queries

2018-12-05 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Dec 5, 2018 at 11:43 AM Samuel Pitoiset wrote: > > In case we are unlucky if the low part is 0x. > > Fixes: 5d6a560a29 ("radv: do not use the availability bit for timestamp > queries") > Signed-off-by: Samuel Pitoiset > --- >

Re: [Mesa-dev] Make Jordan an Owner of the mesa project?

2018-12-05 Thread Matt Turner
On Tue, Dec 4, 2018 at 7:39 PM Jason Ekstrand wrote: > > It's been 24 hours and the only owner who hasn't replied yet is Matt. Given > that everyone else has firmly ACKed, I'm going to click the button. > Congratulations, Jordan, you're now a mesa Owner! That's certainly no reflection on my

Re: [Mesa-dev] [PATCH 10/59] intel/compiler: implement conversions from 16-bit float to 64-bit

2018-12-05 Thread Pohjolainen, Topi
On Wed, Dec 05, 2018 at 09:20:57AM +0100, Iago Toral wrote: > On Tue, 2018-12-04 at 18:10 +0200, Pohjolainen, Topi wrote: > > On Tue, Dec 04, 2018 at 02:33:25PM +0200, Pohjolainen, Topi wrote: > > > On Tue, Dec 04, 2018 at 08:16:34AM +0100, Iago Toral Quiroga wrote: > > > > Signed-off-by: Samuel

Re: [Mesa-dev] [PATCH 22/59] compiler/nir: add lowering for 16-bit ldexp

2018-12-05 Thread Pohjolainen, Topi
I remember people preferring to order things 16, 32, 64 before. Should we follow that here as well? On Tue, Dec 04, 2018 at 08:16:46AM +0100, Iago Toral Quiroga wrote: > --- > src/compiler/nir/nir_opt_algebraic.py | 5 + > 1 file changed, 5 insertions(+) > > diff --git

Re: [Mesa-dev] [PATCH 11/59] intel/compiler: Implement float64/int64 to float16 conversion

2018-12-05 Thread Iago Toral
On Wed, 2018-12-05 at 11:08 +0200, Pohjolainen, Topi wrote: > On Wed, Dec 05, 2018 at 09:49:29AM +0100, Iago Toral wrote: > > On Tue, 2018-12-04 at 14:57 +0200, Pohjolainen, Topi wrote: > > > On Tue, Dec 04, 2018 at 08:16:35AM +0100, Iago Toral Quiroga > > > wrote: > > > > From: Samuel Iglesias

Re: [Mesa-dev] [PATCH 12/59] intel/compiler: handle b2i/b2f with other integer conversion opcodes

2018-12-05 Thread Iago Toral
On Tue, 2018-12-04 at 18:16 +0200, Pohjolainen, Topi wrote: > On Tue, Dec 04, 2018 at 08:16:36AM +0100, Iago Toral Quiroga wrote: > > Since we handle booleans as integers this makes more sense. > > If this is applied before patch 10, can we merge 10 and 13? We can't apply this before patch 10

[Mesa-dev] [PATCH] radv: wait on the high 32 bits of timestamp queries

2018-12-05 Thread Samuel Pitoiset
In case we are unlucky if the low part is 0x. Fixes: 5d6a560a29 ("radv: do not use the availability bit for timestamp queries") Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_query.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH] radv: reset pending_reset_query when flushing caches

2018-12-05 Thread Alex Smith
Reviewed-by: Alex Smith On Wed, 5 Dec 2018 at 10:32, Samuel Pitoiset wrote: > If the driver used a compute shader for resetting a query pool, > it should be completed when caches are flushed. > > This might reduce the number of stalls if operations are done > between vkCmdResetQueryPool() and

[Mesa-dev] [PATCH] radv: Flush before vkCmdWriteTimestamp() if needed

2018-12-05 Thread Alex Smith
As done for vkCmdBeginQuery() already. Prevents timestamps from being overwritten by previous vkCmdResetQueryPool() calls if the shader path was used to do the reset. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108925 Fixes: a41e2e9cf5 ("radv: allow to use a compute shader for

[Mesa-dev] [PATCH] anv/android: Do not reject storage images.

2018-12-05 Thread Bas Nieuwenhuizen
We do the ImageFormatProperties check already, and rejecting an usage flag when both ImageFormatProperties and the WSI (which is Android) support it is not allowed. Intel does support storage for some of the support WSI formats, such as R8G8B8A8_UNORM, and looking at the

Re: [Mesa-dev] [PATCH 22/59] compiler/nir: add lowering for 16-bit ldexp

2018-12-05 Thread Pohjolainen, Topi
On Wed, Dec 05, 2018 at 11:53:44AM +0100, Iago Toral wrote: > On Wed, 2018-12-05 at 11:39 +0200, Pohjolainen, Topi wrote: > > I remember people preferring to order things 16, 32, 64 before. > > Should > > we follow that here as well? > > Yes, it makes sense. I'll change that. > > > On Tue, Dec

[Mesa-dev] [Bug 108949] RADV: Subgroup codegen is sub-optimal

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108949 --- Comment #2 from mais...@archlinux.us --- Interesting. No, haven't tried with an LLVM that recent. I'll post when I have results. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Tapani Pälli
On 12/5/18 1:44 PM, Bas Nieuwenhuizen wrote: On Wed, Dec 5, 2018 at 12:37 PM Tapani Pälli wrote: On 12/5/18 1:22 PM, Bas Nieuwenhuizen wrote: On Wed, Dec 5, 2018 at 12:15 PM Tapani Pälli wrote: On 12/5/18 1:01 PM, Bas Nieuwenhuizen wrote: On Fri, Sep 7, 2018 at 12:54 AM Kevin

Re: [Mesa-dev] [PATCH 0/5] Fixueps for ppc64 and gnu hurd

2018-12-05 Thread Timo Aaltonen
On 4.12.2018 23.52, Dylan Baker wrote: > This little series is aimed at fixing problems reported by fedora and debian > when using meson, there's a couple of patches in here for fixing ppc64 > detection > (tested without llvm), and a couple for gnu hurd (not tested). > > Dylan Baker (5): >

Re: [Mesa-dev] [PATCH 28/59] intel/compiler: set correct precision fields for 3-source float instructions

2018-12-05 Thread Pohjolainen, Topi
On Tue, Dec 04, 2018 at 08:16:52AM +0100, Iago Toral Quiroga wrote: > Source0 and Destination extract the floating-point precision automatically > from the SrcType and DstType instruction fields respectively when they are > set to types :F or :HF. For Source1 and Source2 operands, we use the new >

Re: [Mesa-dev] [PATCH 27/59] intel/compiler: allow half-float on 3-source instructions since gen8

2018-12-05 Thread Pohjolainen, Topi
Reviewed-by: Topi Pohjolainen On Tue, Dec 04, 2018 at 08:16:51AM +0100, Iago Toral Quiroga wrote: > --- > src/intel/compiler/brw_eu_emit.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/intel/compiler/brw_eu_emit.c > b/src/intel/compiler/brw_eu_emit.c > index

[Mesa-dev] [PATCH] spirv: add SpvCapabilityInt64Atomics

2018-12-05 Thread Samuel Pitoiset
Required for VK_KHR_shader_atomic_int64. Signed-off-by: Samuel Pitoiset --- src/compiler/shader_info.h| 1 + src/compiler/spirv/spirv_to_nir.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Bas Nieuwenhuizen
On Wed, Dec 5, 2018 at 12:15 PM Tapani Pälli wrote: > > > > On 12/5/18 1:01 PM, Bas Nieuwenhuizen wrote: > > On Fri, Sep 7, 2018 at 12:54 AM Kevin Strasser > > wrote: > >> > >> Android P and earlier expect that the surface supports storage images, and > >> so many of the tests fail when the

Re: [Mesa-dev] [PATCH 3/5] meson: Override C++ standard to gnu++11 when building with altivec on ppc64le

2018-12-05 Thread Eric Engestrom
On Tuesday, 2018-12-04 13:52:19 -0800, Dylan Baker wrote: > Otherwise there will be symbol collisions for the vector name. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108943 > Fixes: 34bbb24ce7702658cdc4e9d34a650e169716c39e >("meson: Add support for ppc

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Tapani Pälli
On 12/5/18 1:22 PM, Bas Nieuwenhuizen wrote: On Wed, Dec 5, 2018 at 12:15 PM Tapani Pälli wrote: On 12/5/18 1:01 PM, Bas Nieuwenhuizen wrote: On Fri, Sep 7, 2018 at 12:54 AM Kevin Strasser wrote: Android P and earlier expect that the surface supports storage images, and so many of the

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Bas Nieuwenhuizen
On Wed, Dec 5, 2018 at 12:37 PM Tapani Pälli wrote: > > > > On 12/5/18 1:22 PM, Bas Nieuwenhuizen wrote: > > On Wed, Dec 5, 2018 at 12:15 PM Tapani Pälli wrote: > >> > >> > >> > >> On 12/5/18 1:01 PM, Bas Nieuwenhuizen wrote: > >>> On Fri, Sep 7, 2018 at 12:54 AM Kevin Strasser > >>> wrote: >

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Bas Nieuwenhuizen
On Wed, Dec 5, 2018 at 12:51 PM Tapani Pälli wrote: > > > > On 12/5/18 1:44 PM, Bas Nieuwenhuizen wrote: > > On Wed, Dec 5, 2018 at 12:37 PM Tapani Pälli wrote: > >> > >> > >> > >> On 12/5/18 1:22 PM, Bas Nieuwenhuizen wrote: > >>> On Wed, Dec 5, 2018 at 12:15 PM Tapani Pälli > >>> wrote: >

Re: [Mesa-dev] [PATCH] radv: expose VK_EXT_scalar_block_layout

2018-12-05 Thread Bas Nieuwenhuizen
On Wed, Dec 5, 2018 at 2:14 PM Samuel Pitoiset wrote: > > Nothing to do, the compiler already handles that. > > All new dEQP.VK.ubo.* and dEQP.VK.ssbo.* pass, except some > 16-bit tests that are quite related to fdo bug #108114. > > Signed-off-by: Samuel Pitoiset > --- >

Re: [Mesa-dev] [PATCH] spirv: add SpvCapabilityInt64Atomics

2018-12-05 Thread Jason Ekstrand
Rb On December 5, 2018 07:26:22 Samuel Pitoiset wrote: Required for VK_KHR_shader_atomic_int64. Signed-off-by: Samuel Pitoiset --- src/compiler/shader_info.h| 1 + src/compiler/spirv/spirv_to_nir.c | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [Bug 108952] mesa-git broke cinnamon, temporary downgrade fix

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108952 Bug ID: 108952 Summary: mesa-git broke cinnamon, temporary downgrade fix Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW

Re: [Mesa-dev] [PATCH 14/59] intel/compiler: lower some 16-bit float operations to 32-bit

2018-12-05 Thread Pohjolainen, Topi
On Tue, Dec 04, 2018 at 08:16:38AM +0100, Iago Toral Quiroga wrote: > The hardware doesn't support half-float for these. Reviewed-by: Topi Pohjolainen > --- > src/intel/compiler/brw_nir.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/intel/compiler/brw_nir.c

Re: [Mesa-dev] [PATCH 24/59] intel/compiler: add instruction setters for Src1Type and Src2Type.

2018-12-05 Thread Pohjolainen, Topi
On Tue, Dec 04, 2018 at 08:16:48AM +0100, Iago Toral Quiroga wrote: > The original SrcType is a 3-bit field that takes a subset of the types > supported for the hardware for 3-source instructions. Since gen8, > when the half-float type was added, 3-source floating point operations > can use use

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Tapani Pälli
On 12/5/18 1:01 PM, Bas Nieuwenhuizen wrote: On Fri, Sep 7, 2018 at 12:54 AM Kevin Strasser wrote: Android P and earlier expect that the surface supports storage images, and so many of the tests fail when the framework checks for that support. The framework also includes various image

Re: [Mesa-dev] [PATCH 12/59] intel/compiler: handle b2i/b2f with other integer conversion opcodes

2018-12-05 Thread Pohjolainen, Topi
On Wed, Dec 05, 2018 at 11:23:06AM +0100, Iago Toral wrote: > On Tue, 2018-12-04 at 18:16 +0200, Pohjolainen, Topi wrote: > > On Tue, Dec 04, 2018 at 08:16:36AM +0100, Iago Toral Quiroga wrote: > > > Since we handle booleans as integers this makes more sense. > > > > If this is applied before

[Mesa-dev] [Bug 108949] RADV: Subgroup codegen is sub-optimal

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108949 --- Comment #1 from Connor Abbott --- This should be fixed by https://github.com/llvm-mirror/llvm/commit/e3924b1c15606bb5bf98392e0c20e731b4965311 which was just committed 5 days ago. You'll need to build LLVM and Mesa master to try it out. --

Re: [Mesa-dev] [PATCH 22/59] compiler/nir: add lowering for 16-bit ldexp

2018-12-05 Thread Pohjolainen, Topi
On Wed, Dec 05, 2018 at 12:26:06PM +0100, Iago Toral wrote: > On Wed, 2018-12-05 at 13:20 +0200, Pohjolainen, Topi wrote: > > On Wed, Dec 05, 2018 at 11:53:44AM +0100, Iago Toral wrote: > > > On Wed, 2018-12-05 at 11:39 +0200, Pohjolainen, Topi wrote: > > > > I remember people preferring to order

Re: [Mesa-dev] [PATCH] anv/android: handle storage images in vkGetSwapchainGrallocUsageANDROID

2018-12-05 Thread Tapani Pälli
On 12/5/18 2:00 PM, Bas Nieuwenhuizen wrote: On Wed, Dec 5, 2018 at 12:51 PM Tapani Pälli wrote: On 12/5/18 1:44 PM, Bas Nieuwenhuizen wrote: On Wed, Dec 5, 2018 at 12:37 PM Tapani Pälli wrote: On 12/5/18 1:22 PM, Bas Nieuwenhuizen wrote: On Wed, Dec 5, 2018 at 12:15 PM Tapani

[Mesa-dev] [PATCH v3] nir/algebraic: Rewrite bit-size inference

2018-12-05 Thread Connor Abbott
Before this commit, there were two copies of the algorithm: one in C, that we would use to figure out what bit-size to give the replacement expression, and one in Python, that emulated the C one and tried to prove that the C algorithm would never fail to correctly assign bit-sizes. That seemed

Re: [Mesa-dev] [PATCH 28/59] intel/compiler: set correct precision fields for 3-source float instructions

2018-12-05 Thread Iago Toral
On Wed, 2018-12-05 at 14:58 +0200, Pohjolainen, Topi wrote: > On Tue, Dec 04, 2018 at 08:16:52AM +0100, Iago Toral Quiroga wrote: > > Source0 and Destination extract the floating-point precision > > automatically > > from the SrcType and DstType instruction fields respectively when > > they are >

[Mesa-dev] [PATCH] radv: expose VK_EXT_scalar_block_layout

2018-12-05 Thread Samuel Pitoiset
Nothing to do, the compiler already handles that. All new dEQP.VK.ubo.* and dEQP.VK.ssbo.* pass, except some 16-bit tests that are quite related to fdo bug #108114. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_device.c | 6 ++ src/amd/vulkan/radv_extensions.py | 1 + 2 files

Re: [Mesa-dev] [PATCH 28/59] intel/compiler: set correct precision fields for 3-source float instructions

2018-12-05 Thread Pohjolainen, Topi
On Wed, Dec 05, 2018 at 02:04:16PM +0100, Iago Toral wrote: > On Wed, 2018-12-05 at 14:58 +0200, Pohjolainen, Topi wrote: > > On Tue, Dec 04, 2018 at 08:16:52AM +0100, Iago Toral Quiroga wrote: > > > Source0 and Destination extract the floating-point precision > > > automatically > > > from the

[Mesa-dev] [Bug 108949] RADV: Subgroup codegen is sub-optimal

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108949 Bug ID: 108949 Summary: RADV: Subgroup codegen is sub-optimal Product: Mesa Version: 18.2 Hardware: Other OS: All Status: NEW Severity: normal

Re: [Mesa-dev] [PATCH 22/59] compiler/nir: add lowering for 16-bit ldexp

2018-12-05 Thread Iago Toral
On Wed, 2018-12-05 at 13:20 +0200, Pohjolainen, Topi wrote: > On Wed, Dec 05, 2018 at 11:53:44AM +0100, Iago Toral wrote: > > On Wed, 2018-12-05 at 11:39 +0200, Pohjolainen, Topi wrote: > > > I remember people preferring to order things 16, 32, 64 before. > > > Should > > > we follow that here as

Re: [Mesa-dev] [PATCH 7/8] gm107/ir: add lowering of atomic f32 add on shared memory

2018-12-05 Thread Karol Herbst
nvm, I somehow didn't notice that "if (atom->dType != TYPE_F32)" check... On Wed, Dec 5, 2018 at 3:43 PM Karol Herbst wrote: > > but uhm, how would that work if you assert(atom->subOp == > NV50_IR_SUBOP_ATOM_ADD); inside handleSharedATOMGM107? I thought > that's only needed for fadd, not for all

Re: [Mesa-dev] [PATCH 7/8] gm107/ir: add lowering of atomic f32 add on shared memory

2018-12-05 Thread Ilia Mirkin
On Wed, Dec 5, 2018 at 4:59 AM Karol Herbst wrote: > > On Wed, Dec 5, 2018 at 6:30 AM Ilia Mirkin wrote: > > > > Signed-off-by: Ilia Mirkin > > --- > > .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 49 +++ > > .../nouveau/codegen/nv50_ir_lowering_nvc0.h | 1 + > > 2 files

Re: [Mesa-dev] [PATCH 7/8] gm107/ir: add lowering of atomic f32 add on shared memory

2018-12-05 Thread Karol Herbst
but uhm, how would that work if you assert(atom->subOp == NV50_IR_SUBOP_ATOM_ADD); inside handleSharedATOMGM107? I thought that's only needed for fadd, not for all atoms On Wed, Dec 5, 2018 at 3:17 PM Ilia Mirkin wrote: > > On Wed, Dec 5, 2018 at 4:59 AM Karol Herbst wrote: > > > > On Wed, Dec

Re: [Mesa-dev] [PATCH] radv: wait on the high 32 bits of timestamp queries

2018-12-05 Thread Emil Velikov
Hi guys On Wed, 5 Dec 2018 at 10:49, Bas Nieuwenhuizen wrote: > > Reviewed-by: Bas Nieuwenhuizen > On Wed, Dec 5, 2018 at 11:43 AM Samuel Pitoiset > wrote: > > > > In case we are unlucky if the low part is 0x. > > > > Fixes: 5d6a560a29 ("radv: do not use the availability bit for

Re: [Mesa-dev] [PATCH v3] nir/algebraic: Rewrite bit-size inference

2018-12-05 Thread Jason Ekstrand
Rb me. Now you can review my comparison patches.  On December 5, 2018 06:20:49 Connor Abbott wrote: Before this commit, there were two copies of the algorithm: one in C, that we would use to figure out what bit-size to give the replacement expression, and one in Python, that emulated the C

Re: [Mesa-dev] [PATCH] gallium: Android build fixes

2018-12-05 Thread Emil Velikov
On Tue, 4 Dec 2018 at 18:51, Kristian H. Kristensen wrote: > > A couple of simple fixes for building on Android with autotools. Reviewed-by: Emil Velikov -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH mesa] radv: drop unused variable

2018-12-05 Thread Eric Engestrom
Added in 824cfc1ee5e0aba15b676 "radv: rework the TC-compat HTILE hardware bug with COND_EXEC", but it is unused. Signed-off-by: Eric Engestrom --- src/amd/vulkan/radv_cmd_buffer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c

[Mesa-dev] [PATCH 27/28] anv: enable support for SPV_KHR_shader_float_controls capabilities

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/vulkan/anv_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index d55e51adcbb..cadf9288ad9 100644 --- a/src/intel/vulkan/anv_pipeline.c +++

[Mesa-dev] [PATCH 28/28] anv: enable VK_KHR_shader_float_controls extension

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/vulkan/anv_extensions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_extensions.py index 9ca42d998ef..d572df3c342 100644 --- a/src/intel/vulkan/anv_extensions.py +++

[Mesa-dev] [PATCH 06/28] spirv/glsl450: fix atan2(0,0) lowering

2018-12-05 Thread Samuel Iglesias Gonsálvez
We were returning 3*pi/4 when we should return 0.0 according to IEEE 754. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/spirv/vtn_glsl450.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/compiler/spirv/vtn_glsl450.c b/src/compiler/spirv/vtn_glsl450.c

[Mesa-dev] [PATCH 18/28] intel/nir: call nir_opt_constant_folding before brw_nir_apply_trig_workarounds

2018-12-05 Thread Samuel Iglesias Gonsálvez
If we have fsin or fcos trigonometric operations with constant values as inputs, we will multiply the result by 0.7 in brw_nir_apply_trig_workarounds, making the result wrong. Running nir_opt_constant_folding before, we will calculate correctly the result for these trignometric ops.

[Mesa-dev] [PATCH 16/28] nir: fix fmin/fmax support for doubles

2018-12-05 Thread Samuel Iglesias Gonsálvez
Until now, it was using the floating point version of fmin, instead of the double version. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/nir/nir_opcodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_opcodes.py

[Mesa-dev] [PATCH 03/28] spirv/nir: keep track of SPV_KHR_shader_float_controls execution modes

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/shader_enums.h | 14 ++ src/compiler/shader_info.h| 3 +++ src/compiler/spirv/spirv_to_nir.c | 26 ++ 3 files changed, 43 insertions(+) diff --git a/src/compiler/shader_enums.h

[Mesa-dev] [PATCH 07/28] spirv/glsl450: fix atan2(x, x) case

2018-12-05 Thread Samuel Iglesias Gonsálvez
If x < 0 -> atan2(x, x) = -3*pi/4. If x > 0 -> atan2(x, x) = pi/4. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/spirv/vtn_glsl450.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/compiler/spirv/vtn_glsl450.c b/src/compiler/spirv/vtn_glsl450.c index

[Mesa-dev] [PATCH 24/28] i965/fs: remove brw_rounding_mode() and use brw_float_controls_mode() instead

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_eu.h | 4 --- src/intel/compiler/brw_eu_emit.c| 36 - src/intel/compiler/brw_fs_generator.cpp | 13 +++-- src/intel/compiler/brw_fs_nir.cpp | 18 +++-- 4 files

[Mesa-dev] [PATCH 26/28] anv: add support for VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES_KHR

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/vulkan/anv_device.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 17b73c115cd..af07c7c831e 100644 --- a/src/intel/vulkan/anv_device.c

[Mesa-dev] [PATCH 21/28] i965/fs/generator: add support to set floating points modes in control register

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_eu.h | 4 src/intel/compiler/brw_eu_defines.h | 10 ++ src/intel/compiler/brw_eu_emit.c| 26 + src/intel/compiler/brw_fs_generator.cpp | 8 +++-

[Mesa-dev] [PATCH 22/28] i965/fs: define emit_shader_float_controls_execution_mode() and aux functions

2018-12-05 Thread Samuel Iglesias Gonsálvez
We need this function to emit code that setups the control register later with the defined execution mode for the shader. Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_fs.h | 1 + src/intel/compiler/brw_fs_visitor.cpp | 52 +++ 2 files

[Mesa-dev] [PATCH 25/28] i965/fs: add support for shader float control to remove_extra_rounding_modes()

2018-12-05 Thread Samuel Iglesias Gonsálvez
The remove_extra_rounding_modes() optimization will remove duplicated rounding mode changes. Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_fs.cpp | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/intel/compiler/brw_fs.cpp

[Mesa-dev] [PATCH] loader: free error state, when checking the drawable type

2018-12-05 Thread Emil Velikov
From: Kirill Burtsev Currently we distinguish if the drawable is a window or pixmap by checking xcb_present_select_input throws an error or not. Yet, we don't always free the error state returned by xcb. Cc: Kirill Burtsev Cc: Boyan Ding Fixes: 6bd9ba7d074 ("loader: Add dri3 helper")

[Mesa-dev] [Bug 108742] Battlefield 4 in Wine Freezes when joining games since ~mesa-18.2.3

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108742 --- Comment #2 from Samuel Pitoiset --- Did you bisect? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH v3] nir/algebraic: Rewrite bit-size inference

2018-12-05 Thread Dylan Baker
For the python bits: Reviewed-by: Dylan Baker Quoting Connor Abbott (2018-12-05 04:20:30) > Before this commit, there were two copies of the algorithm: one in C, > that we would use to figure out what bit-size to give the replacement > expression, and one in Python, that emulated the C one and

[Mesa-dev] [PATCH 00/28] Add VK_KHR_shader_float_controls support to anv

2018-12-05 Thread Samuel Iglesias Gonsálvez
Hello, This patch series implements the support for VK_KHR_shader_float_controls for Intel platforms (Broadwell and later). This extension enables efficient use of floating-point computations through the ability to query and override the implementation's default behavior for rounding modes,

[Mesa-dev] [PATCH 02/28] spirv: check support for SPV_KHR_shader_float_controls capabilities

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/shader_info.h| 1 + src/compiler/spirv/spirv_to_nir.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index e745cc15fc5..21c3d371a63 100644 ---

[Mesa-dev] [Bug 108914] blocky shadow artifacts in The Forest with DXVK, RADV_DEBUG=nohiz fixes this

2018-12-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108914 --- Comment #16 from tempel.jul...@gmail.com --- Looking fine now with mesa-git, thanks again! -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the

Re: [Mesa-dev] [PATCH] radv: wait on the high 32 bits of timestamp queries

2018-12-05 Thread Samuel Pitoiset
Hi Emil, Yeah, that looks correct, Thanks! On 12/5/18 4:22 PM, Emil Velikov wrote: Hi guys On Wed, 5 Dec 2018 at 10:49, Bas Nieuwenhuizen wrote: Reviewed-by: Bas Nieuwenhuizen On Wed, Dec 5, 2018 at 11:43 AM Samuel Pitoiset wrote: In case we are unlucky if the low part is 0x.

Re: [Mesa-dev] [PATCH mesa] radv: drop unused variable

2018-12-05 Thread Samuel Pitoiset
So my compiler doesn't want to show me warnings? That's something I would need to fix up. Anyways, Reviewed-by: Samuel Pitoiset On 12/5/18 4:44 PM, Eric Engestrom wrote: Added in 824cfc1ee5e0aba15b676 "radv: rework the TC-compat HTILE hardware bug with COND_EXEC", but it is unused.

[Mesa-dev] [PATCH 01/28] spirv: Update SPIR-V json and headers to Khronos master

2018-12-05 Thread Samuel Iglesias Gonsálvez
This corresponds to commit 17da9f8231f78cf519b4958c2229463a63ead9e2 on GitHub. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/spirv/spirv.core.grammar.json | 316 +++-- src/compiler/spirv/spirv.h | 84 +++--- 2 files changed, 281 insertions(+), 119

[Mesa-dev] [PATCH 05/28] Revert "spirv: Don’t check for NaN for most OpFOrd* comparisons"

2018-12-05 Thread Samuel Iglesias Gonsálvez
This reverts commit c4ab1bdcc9710e3c7cc7115d3be9c69b7e7712ef. We need to check the arguments looking for NaNs, because they can introduce failures in tests for FOrd*, specially when running VK_KHR_shader_float_control tests in CTS. Signed-off-by: Samuel Iglesias Gonsálvez ---

[Mesa-dev] [PATCH 14/28] nir: fix denorms in unpack_half_1x16()

2018-12-05 Thread Samuel Iglesias Gonsálvez
According to VK_KHR_shader_float_controls: "Denormalized values obtained via unpacking an integer into a vector of values with smaller bit width and interpreting those values as floating-point numbers must: be flushed to zero, unless the entry point is declared with the code:DenormPreserve

[Mesa-dev] [PATCH 12/28] util: add fp64 -> fp32 conversion support for RTNE and RTZ rounding modes

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/util/Makefile.sources | 2 + src/util/double.c | 197 ++ src/util/double.h | 46 + src/util/meson.build | 2 + 4 files changed, 247 insertions(+) create mode 100644

[Mesa-dev] [PATCH 11/28] util: added float to float16 conversions with RTZ and RTNE

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/util/half_float.c | 74 +++ src/util/half_float.h | 7 2 files changed, 81 insertions(+) diff --git a/src/util/half_float.c b/src/util/half_float.c index 63aec5c5c14..5fdcb20045b 100644 ---

[Mesa-dev] [PATCH 17/28] intel/nir: call nir_opt_constant_folding before nir_opt_algebraic is executed

2018-12-05 Thread Samuel Iglesias Gonsálvez
This would do constant folding and also flush to zero denorms operands before the nir_opt_algebraic is executed. Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_nir.c

[Mesa-dev] [PATCH 19/28] i965/fs: add nir_op_f2f*_{rtne,rtz}

2018-12-05 Thread Samuel Iglesias Gonsálvez
This way, we can implement its support later if SPIR-V supports it. Right now, the RTZ, RTNE support in SPIR-V in FPRoundingMode only applies to f2f16 conversions. Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_fs_nir.cpp | 22 +- 1 file changed, 21

[Mesa-dev] [PATCH 23/28] i965/fs: emit shader float controls execution modes as first instruction of shaders

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_fs.cpp | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 32e0817ce02..18dcd92219c 100644 --- a/src/intel/compiler/brw_fs.cpp +++

[Mesa-dev] [PATCH 20/28] i965/fs/nir: add nir_op_unpack_half_2x16_split_*_flush_to_zero

2018-12-05 Thread Samuel Iglesias Gonsálvez
The denorm mode is set in the control register, no need to do something else. Signed-off-by: Samuel Iglesias Gonsálvez --- src/intel/compiler/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index

Re: [Mesa-dev] [PATCH mesa] radv: drop unused variable

2018-12-05 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Dec 5, 2018 at 4:44 PM Eric Engestrom wrote: > > Added in 824cfc1ee5e0aba15b676 "radv: rework the TC-compat HTILE > hardware bug with COND_EXEC", but it is unused. > > Signed-off-by: Eric Engestrom > --- > src/amd/vulkan/radv_cmd_buffer.c | 1 - > 1 file

[Mesa-dev] [PATCH 10/28] nir: create new conversion opcodes with floating point rounding modes

2018-12-05 Thread Samuel Iglesias Gonsálvez
It adds round-towards-zero and round-to-nearest-even opcodes for floating point conversions. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/nir/nir_opcodes.py | 2 +- src/compiler/nir/nir_opcodes_c.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[Mesa-dev] [PATCH 04/28] nir: add support for flushing to zero denorm constants

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/nir/nir_opt_constant_folding.c | 74 +++-- 1 file changed, 68 insertions(+), 6 deletions(-) diff --git a/src/compiler/nir/nir_opt_constant_folding.c b/src/compiler/nir/nir_opt_constant_folding.c index

[Mesa-dev] [PATCH 08/28] spirv/glsl450: fix reflect(denorm, denorm) FTZ = 0.0 case

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/spirv/vtn_glsl450.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/compiler/spirv/vtn_glsl450.c b/src/compiler/spirv/vtn_glsl450.c index 0115648cbb0..69588f56968 100644 ---

[Mesa-dev] [PATCH 09/28] nir/algebraic: fix (inf - inf) = NaN case

2018-12-05 Thread Samuel Iglesias Gonsálvez
If we have (inf - inf) we should return NaN, not 0.0. Same for (NaN - NaN) case. Fixes tests in Vulkan CTS that produce such kind subtractions. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/nir/nir_opt_algebraic.py | 2 -- 1 file changed, 2 deletions(-) diff --git

[Mesa-dev] [PATCH 15/28] nir: support for denorm flush-to-zero in nir_lower_double_ops

2018-12-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/nir/nir_lower_double_ops.c | 12 1 file changed, 12 insertions(+) diff --git a/src/compiler/nir/nir_lower_double_ops.c b/src/compiler/nir/nir_lower_double_ops.c index b3543bc6963..97b825d2fdb 100644 ---

  1   2   >