Re: [Mesa-dev] [PATCH] egl/android: Fix build break with dri2_initialize_android _EGLDisplay parameter

2018-01-03 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 01/03/2018 06:28 PM, Rob Herring wrote: Commit 2f421651aca9 ("egl: let each platform decided how to handle LIBGL_ALWAYS_SOFTWARE") broke the build due to copy-n-paste of misnamed function parameter.: src/egl/drivers/dri2/platform_android.c:1183:8: error: use of und

Re: [Mesa-dev] Radeonsi NIR tess support V3

2018-01-03 Thread Dieter Nützel
Hello Tim, this third version didn't make it into Patchwork. Do you have a pointer? Thanks and a Happy New Year to you! Dieter Am 03.01.2018 06:04, schrieb Timothy Arceri: V3: - rebased on recent changes/fixes V2: - addressed feedback from Nicolai The following patches lack a reviewed-by:

Re: [Mesa-dev] [PATCH 1/1] nir: Use a freelist in nir_opt_dce to avoid spamming ralloc

2018-01-03 Thread Dieter Nützel
Hello to all of you and a Happy New Year! ;-) Any thoughts about this, Marek, Nicolai? I'm running this for four weeks without any hickup, now. Thanks, Dieter Am 06.12.2017 09:56, schrieb Dieter Nützel: Tested-by: Dieter Nützel Dieter Am 02.12.2017 15:49, schrieb Thomas Helland: Also, all

Re: [Mesa-dev] [PATCH] radv: Add support for ETC2 textures.

2018-01-03 Thread Roland Scheidegger
I thought the reason they are included nowadays in hardware is because they are required by gl 4.3 and of course GLES (I think they were added in GL via ES compatibility). Of course, for proper gles (3.2) you also need astc, but still it looks to me like these formats are here to stay. Roland Am

Re: [Mesa-dev] [PATCH 6/6] r600: don't emit tes samplers/views when tes isn't active

2018-01-03 Thread Roland Scheidegger
Thanks for testing. I fixed the whitespace, and resent patch 4 due to a bug. Roland Am 03.01.2018 um 08:29 schrieb Konstantin Kharlamov: > Sorry, I don't have an expertise to give a r-b, but here's my t-b :) I > found no statistically significant changes at "the big keybench" of > `vblank_mode=0

[Mesa-dev] [PATCH] anv/query: implement multiview interactions

2018-01-03 Thread Iago Toral Quiroga
From the Vulkan spec with KHX extensions: "If queries are used while executing a render pass instance that has multiview enabled, the query uses N consecutive query indices in the query pool (starting at query) where N is the number of bits set in the view mask in the subpass the query

Re: [Mesa-dev] [PATCH] radv: Add support for ETC2 textures.

2018-01-03 Thread Mao, David
Hi Bas, AMD does not support ETC2 officially on the GFX9. It would be risky for Radv to export that feature for gfx9 family. Anyway, t’s just a heads up, and it is up to you to make the final call. FYI: AMDVLK and proprietary AMD vulkan driver don’t’ support that. Thanks. Best Regards, David

[Mesa-dev] [PATCH] r600: RFC: use GET_BUFFER_RESINFO vtx fetch on eg instead of setting up consts

2018-01-03 Thread sroland
From: Roland Scheidegger Contrary to what the comment said, this appears to work just fine on my rv770 (tested with piglit textureSize 140 fs/vs samplerBuffer). I have no clue though if it's actually preferrable to use it (unfortunately we cannot get rid of the tex constants completely, as we sti

[Mesa-dev] [PATCH v2] i965: allocate a SGVS element when VertexID or InstanceID are read

2018-01-03 Thread Iago Toral Quiroga
Although on gen8+ platforms we can in theory use 3DSTATE_VF_SGVS to put these beyond the last vertex element it seems that we still need to allocate the SVGS element, otherwise we have observed cases where we end up reading garbage. Specifically, the CTS test mentioned below was flaky with a fail r

[Mesa-dev] [PATCH] radv: reset semaphores & fences on sync_file export.

2018-01-03 Thread Bas Nieuwenhuizen
Per spec: "Additionally, exporting a fence payload to a handle with copy transference has the same side effects on the source fence’s payload as executing a fence reset operation. If the fence was using a temporarily imported payload, the fence’s prior permanent payload will be restored." And

Re: [Mesa-dev] [PATCH] radeonsi: don't expose 8xMSAA on slowest APUs

2018-01-03 Thread Roland Scheidegger
Deos AMD degrade these chips to d3d10.1 on windows? Just asking because d3d11 requires 8x msaa ;-). (But I won't say what I think about this patch...) Roland Am 04.01.2018 um 01:54 schrieb Marek Olšák: > From: Marek Olšák > > i.e. Kabini, Mullins, Stoney. > > This was requested internally. >

[Mesa-dev] [PATCH v3 6/6] spirv: Do implicit conversions of uint to bool in OpStore

2018-01-03 Thread Jason Ekstrand
Technically, the GLSLang bug related to this can also affect SSBO writes where the bool -> uint conversion is missing. However, the only known shipping application with an old enough version of GLSLang to cause issues with this is the new DOOM game so we keep the workaround as small as possible.

[Mesa-dev] [PATCH v3 3/6] spirv: Add a vtn_types_compatible helper

2018-01-03 Thread Jason Ekstrand
Tested-by: Eero Tamminen --- src/compiler/spirv/spirv_to_nir.c | 52 +++ src/compiler/spirv/vtn_private.h | 3 +++ 2 files changed, 55 insertions(+) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 89e9286..08a7205 10

[Mesa-dev] [PATCH v3 5/6] spirv: Loosen the validation for load/store type matching

2018-01-03 Thread Jason Ekstrand
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104338 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104424 Tested-by: Eero Tamminen --- src/compiler/spirv/vtn_variables.c | 39 -- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/s

[Mesa-dev] [PATCH v3 4/6] spirv: Require a storage type for OpStore destinations

2018-01-03 Thread Jason Ekstrand
This rules out things such as trying to store a pointer to a local variable. --- src/compiler/spirv/vtn_variables.c | 4 1 file changed, 4 insertions(+) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 2b3b340..399860b 100644 --- a/src/compiler/spir

[Mesa-dev] [PATCH v3 2/6] spirv: Store the id of the type in vtn_type

2018-01-03 Thread Jason Ekstrand
Previously, we were storing a pointer to the vtn_value because we use it to look up decorations when we create input/output variables. This works, but it also may be useful to have the id itself so we may as well store that instead. --- src/compiler/spirv/spirv_to_nir.c | 2 +- src/compiler/spir

[Mesa-dev] [PATCH v3 1/6] spirv: Add a mechanism for dumping failing shaders

2018-01-03 Thread Jason Ekstrand
--- src/compiler/spirv/spirv_to_nir.c | 28 src/compiler/spirv/vtn_private.h | 1 + 2 files changed, 29 insertions(+) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index dcff56f..66ea267 100644 --- a/src/compiler/spirv/spirv_to_

[Mesa-dev] [PATCH] radv: Use correct flush bits for flushing L2 during CB/DB flushes.

2018-01-03 Thread Bas Nieuwenhuizen
Copied from radeonsi. Putting in the correct metadata flush commands for eventually not flushing L2 on CB/DB switch. Does not remove the need for V_028A90_CACHE_FLUSH_AND_INV_TS_EVENT at the moment. --- src/amd/vulkan/si_cmd_buffer.c | 29 - 1 file changed, 16 inserti

Re: [Mesa-dev] [PATCH v3 3/4] meson: build clover

2018-01-03 Thread Francisco Jerez
Dylan Baker writes: > This has only been compile tested. > > v2: - Have a single option for opencl (Eric E) > - fix typo "tgis" -> "tgsi" (Curro) > - Don't add "lib" to pipe loader libraries, which matches the > autotools behavior > v3: - Remove trailing whitespace > - Make PIPE

Re: [Mesa-dev] [PATCH] radeonsi: fix alpha-to-coverage if color writes are disabled

2018-01-03 Thread Marek Olšák
Thanks! I slightly modified the patch and pushed it. Marek On Sun, Dec 31, 2017 at 10:19 AM, Józef Kucia wrote: > If alpha-to-coverage is enabled, we have to compute alpha > even if color writes are disabled. > > Signed-off-by: Józef Kucia > --- > > Found while running The Witness under Wine. >

[Mesa-dev] [PATCH 1/2] ac: add ac_build_fmin/fmax helpers

2018-01-03 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_llvm_build.c | 32 ++-- src/amd/common/ac_llvm_build.h | 5 - 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 96ad715..7100e52 100644 --

[Mesa-dev] [PATCH 2/2] radeonsi: use pknorm_i16/u16 and pk_i16/u16 LLVM intrinsics

2018-01-03 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_llvm_build.c | 164 +++ src/amd/common/ac_llvm_build.h | 13 +++ src/gallium/drivers/radeonsi/si_shader.c | 152 3 files changed, 216 insertions(+), 113 deletions(-) diff --git

[Mesa-dev] [PATCH] radeonsi: don't expose 8xMSAA on slowest APUs

2018-01-03 Thread Marek Olšák
From: Marek Olšák i.e. Kabini, Mullins, Stoney. This was requested internally. --- src/gallium/drivers/radeonsi/si_state.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index f88bf29..d52fccd 100644 --

[Mesa-dev] [PATCH] radv: Invildate L1 for VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT.

2018-01-03 Thread Bas Nieuwenhuizen
These are just shaders reads, so we need to invalidate L1. Fixes: 6dbb0eaccc "radv: handle subpass cache flushes" --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 6dc8

[Mesa-dev] [PATCH] radv: Add support for ETC2 textures.

2018-01-03 Thread Bas Nieuwenhuizen
Was surprised that is even supported by Vega. --- src/amd/vulkan/radv_device.c| 4 +++- src/amd/vulkan/radv_formats.c | 36 src/amd/vulkan/vk_format_layout.csv | 20 ++-- 3 files changed, 49 insertions(+), 11 deletions(-) diff --

Re: [Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Dylan Baker
Quoting Igor Gnatenko (2018-01-03 15:22:36) > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On Wed, 2018-01-03 at 13:31 -0800, Dylan Baker wrote: > > This patch adds a complete meson build system, including tests and > > install. It has the necessary hooks to allow it be used as a subproje

Re: [Mesa-dev] [PATCH] ac: rename has_sync_file to has_fence_to_handle.

2018-01-03 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Jan 4, 2018 at 12:24 AM, Bas Nieuwenhuizen wrote: > sync_files are in linux since 4.7, while the amdgpu fence_to_handle > ioctl is only in 4.15. > > In particular we don't need it for sync_file in radv, because > everything happens via syncobjs, which got

[Mesa-dev] [PATCH] ac: rename has_sync_file to has_fence_to_handle.

2018-01-03 Thread Bas Nieuwenhuizen
sync_files are in linux since 4.7, while the amdgpu fence_to_handle ioctl is only in 4.15. In particular we don't need it for sync_file in radv, because everything happens via syncobjs, which got support earlier than fence_to_handle. --- src/amd/common/ac_gpu_info.c| 4 ++-- src/amd/c

Re: [Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Igor Gnatenko
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wed, 2018-01-03 at 13:31 -0800, Dylan Baker wrote: > This patch adds a complete meson build system, including tests and > install. It has the necessary hooks to allow it be used as a subproject > for other meson based builds such as mesa. It is f

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #19 from Sven --- It sound like bug 104392 . -- You are receiving this mail because: You are the QA Contact for the bug.___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://li

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #18 from Evangelos Foutras --- Could this be related to bug 104342 (and the most likely duplicate bugs I've added to its "See Also" bugs)? The backtrace here looks a bit different but the brw_clear() call is common (and a few other c

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #17 from Sven --- The bug I originally reported (dota crashed when switching between game and desktop) is not yet fixed. I managed to rebuild mesa with the patch applied. I will try to enable debug symbols next and then I'll try to p

Re: [Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Dylan Baker
Quoting Dylan Baker (2018-01-03 13:31:28) > diff --git a/freedreno/meson.build b/freedreno/meson.build > new file mode 100644 > index 000..47d6e44 > --- /dev/null > +++ b/freedreno/meson.build > @@ -0,0 +1,82 @@ > +# Copyright © 2017 Intel Corporation > + > +# Permission is hereby granted, fre

Re: [Mesa-dev] [PATCH] ac: rename has_syncobj_wait -> has_syncobj_wait_for_submit

2018-01-03 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen We should probably do something similar for has_sync_file since sync_files are significantly older. On Wed, Jan 3, 2018 at 10:51 PM, Marek Olšák wrote: > From: Marek Olšák > > --- > src/amd/common/ac_gpu_info.c | 2 +- > src/amd/common/ac_gpu_info.h |

[Mesa-dev] [PATCH] mesa: remove dd_function_table::GetCompressedTexSubImage and clean it up

2018-01-03 Thread Marek Olšák
From: Marek Olšák --- src/mesa/drivers/common/driverfuncs.c | 1 - src/mesa/main/dd.h | 10 -- src/mesa/main/texgetimage.c| 23 +++ src/mesa/main/texgetimage.h| 8 src/mesa/state_tracker/st_cb_texture.c | 1 - 5

[Mesa-dev] [PATCH] ac: rename has_syncobj_wait -> has_syncobj_wait_for_submit

2018-01-03 Thread Marek Olšák
From: Marek Olšák --- src/amd/common/ac_gpu_info.c | 2 +- src/amd/common/ac_gpu_info.h | 2 +- src/amd/vulkan/radv_device.c | 6 +++--- src/amd/vulkan/radv_extensions.py | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/am

[Mesa-dev] [PATCH 1/3] Add meson build system

2018-01-03 Thread Dylan Baker
This patch adds a complete meson build system, including tests and install. It has the necessary hooks to allow it be used as a subproject for other meson based builds such as mesa. Signed-off-by: Dylan Baker --- .editorconfig | 4 +- amdgpu/.editorconfig| 5 +- amdgpu/

[Mesa-dev] [PATCH 3/3] README: Add note about meson

2018-01-03 Thread Dylan Baker
Signed-off-by: Dylan Baker --- README | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README b/README index 26cab9d..58e55bc 100644 --- a/README +++ b/README @@ -15,9 +15,24 @@ with an older kernel. Compiling - -libdrm is a standard autot

[Mesa-dev] [PATCH 2/3] autotools: Include meson.build files in tarball

2018-01-03 Thread Dylan Baker
I have tested that a tarball generated by autotools can be built with meson. Signed-off-by: Dylan Baker --- Makefile.am | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7b86214..66f70ca 100644 --- a/Makefile.am +++

[Mesa-dev] [PATCH 0/3] Meson build system

2018-01-03 Thread Dylan Baker
This is a third iteration of the meson build system for libdrm. This version is significantly cleaned up from the last version and uses a style more like the build system in mesa. It builds all of the drivers and tests, and the tests can be run via `ninja test`. It has support for being used as a

Re: [Mesa-dev] [PATCH] i965/miptree: Fail gracefully when make_surface returns NULL

2018-01-03 Thread Jason Ekstrand
This patch looks good in isolation and you can have my rb. However, this all a bit concerning and it makes me wonder if we're papering over the real bug. On January 3, 2018 12:41:56 "Ian Romanick" wrote: From: Ian Romanick Every other caller of make_surface does something sensible when N

Re: [Mesa-dev] 10-bit Mesa/Gallium support

2018-01-03 Thread Ilia Mirkin
On Tue, Jan 2, 2018 at 11:51 PM, Mario Kleiner wrote: > On 12/31/2017 05:53 PM, Ilia Mirkin wrote: >> I went through and added support for xbgr2101010 throughout (and >> hacked the kernel to assume that 30bpp == that). >> > > Cool! > >> Your (I hope latest) patches + my mesa patches are available

[Mesa-dev] [PATCH] radv: Use correct HTILE expanded words.

2018-01-03 Thread Bas Nieuwenhuizen
Seems like users are actually hitting 0x actually making things broken for them, and the mad max regression is fixed, so lets put this in once more. v2: Use 0xf for depth-only htile. (Dave) Fixes: af2844116fd "radv: Revert HTILE reset word to 0x." --- src/amd/vulkan/radv_cmd_buff

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 Ian Romanick changed: What|Removed |Added Status|NEEDINFO|ASSIGNED --- Comment #16 from Ian Romani

Re: [Mesa-dev] [PATCH 02/22] gallium: rename pipe fences to semaphores

2018-01-03 Thread Cherniak, Bruce
On Dec 21, 2017, at 6:41 PM, Andres Rodriguez mailto:andre...@gmail.com>> wrote: Rename fences -> semaphores in preparation for upgrading fence functionality. This series renames the following symbols: - pipe_fence_handle -> pipe_semaphore_handle - fence_server_sync -> semaphore_server_sync

[Mesa-dev] [PATCH] radv: Use correct HTILE expanded words.

2018-01-03 Thread Bas Nieuwenhuizen
Seems like users are actually hitting 0x actually making things broken for them, and the mad max regression is fixed, so lets put this in once more. Fixes: af2844116fd "radv: Revert HTILE reset word to 0x." --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+

Re: [Mesa-dev] [PATCH] mesa/bindless: fix missing image _Layer initialization

2018-01-03 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 12/30/2017 06:30 AM, Ilia Mirkin wrote: Some later code relies on _Layer to set first/last_layer. Make sure it's always initialized. Detected by valgrind's conditional jump/move with uninit value logic. Signed-off-by: Ilia Mirkin --- src/mesa/main/texturebin

Re: [Mesa-dev] Allocator Nouveau driver, Mesa EXT_external_objects, and DRM metadata import interfaces

2018-01-03 Thread James Jones
On 12/28/2017 10:24 AM, Miguel Angel Vico wrote: (Adding dri-devel back, and trying to respond to some comments from the different forks) James Jones wrote: Your worst case analysis above isn't far off from our HW, give or take some bits and axes here and there. We've started an internal disc

[Mesa-dev] [PATCH] i965/miptree: Fail gracefully when make_surface returns NULL

2018-01-03 Thread Ian Romanick
From: Ian Romanick Every other caller of make_surface does something sensible when NULL is returned. Signed-off-by: Ian Romanick Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104214 Tested-by: Cyril Cc: "17.3" --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 +++ 1 file changed

Re: [Mesa-dev] [PATCH] meson: nir_control_flow_test needs to depend on nir_builder_opcodes_h

2018-01-03 Thread Dylan Baker
I have such a patch series :) It just needs a little more testing and this resolves an intermittent build failure in the CI. Quoting Jason Ekstrand (2018-01-03 09:37:36) > Is there any way we can just make a "nir_deps" helper list and put > nir_builder_opcodes_h in it?  Requiring everything which

Re: [Mesa-dev] [PATCH] meson: nir_control_flow_test needs to depend on nir_builder_opcodes_h

2018-01-03 Thread Jason Ekstrand
Is there any way we can just make a "nir_deps" helper list and put nir_builder_opcodes_h in it? Requiring everything which depends on nir gather up a bunch of random generator dependencies seems a bit fragile. On Wed, Jan 3, 2018 at 9:28 AM, Dylan Baker wrote: > Fixes a race condition in the bu

[Mesa-dev] [PATCH] meson: nir_control_flow_test needs to depend on nir_builder_opcodes_h

2018-01-03 Thread Dylan Baker
Fixes a race condition in the build which causes sporadic failures when -Dbuild-tests=true and a significant number of cores is present. Fixes: d1992255bb29 ("meson: Add build Intel "anv" vulkan driver") CC: Mark Janes Signed-off-by: Dylan Baker --- src/compiler/nir/meson.build | 20 +++

Re: [Mesa-dev] [PATCH] swr/rast: fix build break for llvm-6

2018-01-03 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Jan 2, 2018, at 10:57 AM, Tim Rowley wrote: > > LLVM api change. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104381 > --- > src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/

Re: [Mesa-dev] [PATCH 1/3] spirv: Add a mechanism for dumping failing shaders

2018-01-03 Thread Jason Ekstrand
On Tue, Jan 2, 2018 at 4:55 PM, Ian Romanick wrote: > On 01/02/2018 04:24 PM, Grazvydas Ignotas wrote: > > On Tue, Jan 2, 2018 at 6:30 PM, Jason Ekstrand > wrote: > >> --- > >> src/compiler/spirv/spirv_to_nir.c | 29 + > >> src/compiler/spirv/vtn_private.h | 1 + >

[Mesa-dev] [PATCH] egl/android: Fix build break with dri2_initialize_android _EGLDisplay parameter

2018-01-03 Thread Rob Herring
Commit 2f421651aca9 ("egl: let each platform decided how to handle LIBGL_ALWAYS_SOFTWARE") broke the build due to copy-n-paste of misnamed function parameter.: src/egl/drivers/dri2/platform_android.c:1183:8: error: use of undeclared identifier 'disp' Rather than just fixing 'disp', rename the fu

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #15 from Cyril --- (In reply to Ian Romanick from comment #14) > (In reply to Cyril from comment #13) > > The game start with the patch on top of mesa-17.3.1. > > > > Also tried the Steam overlay (Shift+tab) and switching desktop wh

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 Ian Romanick changed: What|Removed |Added Status|NEW |NEEDINFO Assignee|mesa-dev@lis

Re: [Mesa-dev] Allocator Nouveau driver, Mesa EXT_external_objects, and DRM metadata import interfaces

2018-01-03 Thread Rob Clark
On Thu, Dec 28, 2017 at 1:24 PM, Miguel Angel Vico wrote: > (Adding dri-devel back, and trying to respond to some comments from > the different forks) > > James Jones wrote: > >> Your worst case analysis above isn't far off from our HW, give or take >> some bits and axes here and there. We've sta

Re: [Mesa-dev] [PATCH][RFC] i965: allocate a SGVS element when VertexID or InstanceID are read in gen9+

2018-01-03 Thread Jason Ekstrand
On January 3, 2018 03:21:51 Iago Toral Quiroga wrote: Although in theory this should not be necessary it seems that doing this fixes a spurious low rate failure of ~1% in a CTS test that seems to happen in some gen9+ platforms only. Fixes flakyness in: KHR-GL45.vertex_attrib_64bit.limits_test

Re: [Mesa-dev] bad object in mesa git repo

2018-01-03 Thread Jason Ekstrand
On January 3, 2018 02:15:08 Kevin Gallagher wrote: Hi, Upon cloning the main mesa repository, git with fsckObjects enabled (receive, transfer, fetch) reports an error: error: object c2908f1b53c841bfa450b066c6fa1ee78c2fdb85: missingSpaceBeforeDate: invalid author/committer line - missi

[Mesa-dev] [Bug 104478] Add EGL information to docs/features.txt

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104478 Dennis Schridde changed: What|Removed |Added See Also||https://github.com/MightyCr

[Mesa-dev] [Bug 104478] Add EGL information to docs/features.txt

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104478 Bug ID: 104478 Summary: Add EGL information to docs/features.txt Product: Mesa Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal

Re: [Mesa-dev] [PATCH v3 17/20] st/glsl_to_nir/radeonsi: enable tessellation shaders

2018-01-03 Thread Karol Herbst
in case v3 doesn't get into mesa, could you extract the src/mesa/state_tracker/st_glsl_to_nir.cpp change into a seperate patch and just push that one? I kind of needs this as well and have a patch doing exactly this in my repository as well. A patch with only this would be Reviewed-by: Karol Herbs

Re: [Mesa-dev] [PATCH] swr/rast: fix build break for llvm-6

2018-01-03 Thread Laurent Carlier
Le mardi 2 janvier 2018, 17:57:03 CET Tim Rowley a écrit : > LLVM api change. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104381 Tested-by: Laurent Carlier > --- > src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 4 > 1 file changed, 4 insertions(+) > > diff --gi

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2018-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #13 from Cyril --- The game start with the patch on top of mesa-17.3.1. Also tried the Steam overlay (Shift+tab) and switching desktop while in game, had no crash so it seems good. -- You are receiving this mail because: You are t

[Mesa-dev] [PATCH][RFC] i965: allocate a SGVS element when VertexID or InstanceID are read in gen9+

2018-01-03 Thread Iago Toral Quiroga
Although in theory this should not be necessary it seems that doing this fixes a spurious low rate failure of ~1% in a CTS test that seems to happen in some gen9+ platforms only. Fixes flakyness in: KHR-GL45.vertex_attrib_64bit.limits_test Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=10

[Mesa-dev] [PATCH 02/14] vc4, vc5: add ETIME fallback define

2018-01-03 Thread Greg V
FreeBSD only has ETIMEDOUT, not ETIME --- src/gallium/drivers/vc4/vc4_bufmgr.c | 4 src/gallium/drivers/vc5/vc5_bufmgr.c | 4 2 files changed, 8 insertions(+) diff --git a/src/gallium/drivers/vc4/vc4_bufmgr.c b/src/gallium/drivers/vc4/vc4_bufmgr.c index 274c4c3120..cbc1e1ae1b 100644 --

[Mesa-dev] [PATCH 12/14] swr: build on FreeBSD/DragonFlyBSD

2018-01-03 Thread Greg V
(Needs CPU topology detection to actually work) --- src/gallium/drivers/swr/rasterizer/common/os.h | 3 ++- src/gallium/drivers/swr/rasterizer/core/threads.cpp | 4 ++-- src/gallium/drivers/swr/swr_fence.cpp | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/

[Mesa-dev] [PATCH 06/14] anv: remove unused Linux-specific include

2018-01-03 Thread Greg V
--- src/intel/vulkan/anv_queue.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index b1662c1720..5da652df68 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -27,7 +27,6 @@ #include #include -#incl

[Mesa-dev] [PATCH 14/14] meson: glsl: add missing nir header dependency

2018-01-03 Thread Greg V
--- src/compiler/glsl/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/meson.build b/src/compiler/glsl/meson.build index 6aaa9bab05..9e7589c325 100644 --- a/src/compiler/glsl/meson.build +++ b/src/compiler/glsl/meson.build @@ -200,7 +200,7 @@ files_

[Mesa-dev] [PATCH 10/14] meson: handle LLVM 'x.x.xgit-revision' versions

2018-01-03 Thread Greg V
When LLVM is built inside of a git repo (even way below, e.g. /usr/ports/.git exists, and LLVM is built in /usr/ports/devel/llvm50/work), its version becomes something like 5.0.0git-f8ab206b2176. Don't blow up on these versions. --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git

[Mesa-dev] [PATCH 00/14] BSD portability (Meson, ANV, RADV, VC4/5, SWR)

2018-01-03 Thread Greg V
Hello everyone and happy new year! :) This set of patches makes the Meson build work on FreeBSD, including RADV, ANV, wayland-egl, VAAPI, VDPAU. I also managed to get SWR working, but I haven't included the CPU topology detection code in here. CPU topology is exposed as XML on FreeBSD, so my i

[Mesa-dev] bad object in mesa git repo

2018-01-03 Thread Kevin Gallagher
Hi, Upon cloning the main mesa repository, git with fsckObjects enabled (receive, transfer, fetch) reports an error: error: object c2908f1b53c841bfa450b066c6fa1ee78c2fdb85: missingSpaceBeforeDate: invalid author/committer line - missing space before date ba This is true of anongi

[Mesa-dev] [PATCH 07/14] anv: FreeBSD support in the allocator

2018-01-03 Thread Greg V
Use umtx for futex, and SHM_ANON for memfd. Also use temp files as memfd fallback for other OSes. Obtained from: FreeBSD ports --- src/intel/vulkan/anv_allocator.c | 56 1 file changed, 56 insertions(+) diff --git a/src/intel/vulkan/anv_allocator.c b/src

[Mesa-dev] [PATCH 05/14] anv: use POSIX sysconf to get memory info on non-glibc systems

2018-01-03 Thread Greg V
--- src/intel/vulkan/anv_device.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 6f77d33f93..2d3062d103 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -25,7 +25,9 @@ #include #incl

[Mesa-dev] [PATCH 09/14] meson: do not redeclare pkg-config dependencies (yet)

2018-01-03 Thread Greg V
get_pkgconfig_variable('cflags') always returns an empty list. This only worked on Linux because the libraries were in the standard include path. --- meson.build | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/meson.build b/meson.build index af62b

[Mesa-dev] [PATCH 03/14] radv: add ETIME fallback define

2018-01-03 Thread Greg V
FreeBSD only has ETIMEDOUT, not ETIME --- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index 4578a9b548..84ceee2f5d 100644 --- a/src/amd/vulkan/win

[Mesa-dev] [PATCH 01/14] util: fix ElfW macro

2018-01-03 Thread Greg V
Elf64_Nhdr exists, Elf_Nhdr does not. Obtained from: FreeBSD ports --- src/util/build_id.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/build_id.c b/src/util/build_id.c index 536c74360e..cb35e90b09 100644 --- a/src/util/build_id.c +++ b/src/util/build_id.c @@

[Mesa-dev] [PATCH 13/14] swr: fix clang 5 null cast warning

2018-01-03 Thread Greg V
--- src/gallium/drivers/swr/rasterizer/memory/TilingFunctions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/memory/TilingFunctions.h b/src/gallium/drivers/swr/rasterizer/memory/TilingFunctions.h index 6c801c7ff6..abb0c53ec4 100644 -

[Mesa-dev] [PATCH 08/14] meson: fix BSD build

2018-01-03 Thread Greg V
--- meson.build | 43 ++- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/meson.build b/meson.build index d9f7ea9b2c..af62baf437 100644 --- a/meson.build +++ b/meson.build @@ -199,12 +199,13 @@ if with_dri_i915 or with_gallium_i915 dep_lib

[Mesa-dev] [PATCH 04/14] anv: add ETIME fallback define

2018-01-03 Thread Greg V
FreeBSD only has ETIMEDOUT, not ETIME --- src/intel/vulkan/anv_device.c | 4 src/intel/vulkan/anv_gem.c| 4 src/intel/vulkan/anv_queue.c | 4 3 files changed, 12 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 680f5a752d..6f77d33f

[Mesa-dev] [PATCH 11/14] meson: fix missing dependencies

2018-01-03 Thread Greg V
--- src/gallium/drivers/radeonsi/meson.build | 2 +- src/mesa/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/meson.build b/src/gallium/drivers/radeonsi/meson.build index 58132bf072..8a7045de0d 100644 --- a/src/gall