Re: [Mesa-dev] [PATCH 1/2] radeonsi: set a per-buffer flag that disables inter-process sharing (v4)

2017-09-02 Thread Michel Dänzer
On 01/09/17 09:18 PM, Marek Olšák wrote: > Well, this patch shouldn't change behavior. Are you sure it's not some > random thing? Pretty sure. I never saw this GPUVM fault before this commit, but with it or later commits it's reproducible reliably. > I know, for example, that SI isn't very stabl

[Mesa-dev] [Bug 99591] Segmentation fault when running vulkaninfo with RADV Radeon Vulkan driver

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99591 --- Comment #16 from Michel Dänzer --- The recommended LLVM build configuration is -DBUILD_SHARED_LIBS=OFF -DLLVM_BUILD_LLVM_DYLIB=ON . BUILD_SHARED_LIBS is only intended for LLVM developers. -- You are receiving this mail because: You are the

[Mesa-dev] [Bug 102518] [apitrace, backtrace] Crash in _mesa_is_bufferobj during load of "XCOM 2: War of the Chosen"

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102518 Timothy Arceri changed: What|Removed |Added Status|NEW |NEEDINFO -- You are receiving this ma

[Mesa-dev] [Bug 102518] [apitrace, backtrace] Crash in _mesa_is_bufferobj during load of "XCOM 2: War of the Chosen"

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102518 --- Comment #2 from Timothy Arceri --- It's hitting an error in the no error path. Did you force no error via the env var? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___

[Mesa-dev] [PATCH 2/2] radv: Enable command buffer chaining by default.

2017-09-02 Thread Bas Nieuwenhuizen
For approx 5-10% performance improvement in dota2. --- src/amd/vulkan/radv_debug.h | 2 +- src/amd/vulkan/radv_device.c | 2 +- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/am

[Mesa-dev] [PATCH 1/2] radv: Put semaphore waits in preamble cs.

2017-09-02 Thread Bas Nieuwenhuizen
The separate flush cs gets in the way of batchchain. --- src/amd/vulkan/radv_device.c | 94 +-- src/amd/vulkan/radv_private.h | 3 +- 2 files changed, 37 insertions(+), 60 deletions(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device

Re: [Mesa-dev] [PATCH 23/23] anv: Implement VK_ANDROID_native_buffer

2017-09-02 Thread Jason Ekstrand
On September 2, 2017 1:20:09 AM Chad Versace wrote: This implementation is correct (afaict), but takes two shortcuts regarding the import/export of Android sync fds. Shortcut 1. When Android calls vkAcquireImageANDROID to import a sync fd into a VkSemaphore or VkFence, the driver instead

[Mesa-dev] [Bug 101832] [PATCH][regression][bisect] Xorg fails to start after f50aa21456d82c8cb6fbaa565835f1acc1720a5d

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101832 Bernhard Rosenkraenzer changed: What|Removed |Added Summary|[regression][bisect] Xorg |[PATCH][regression][bisect]

Re: [Mesa-dev] [PATCH 1/2] gallium: Add PIPE_CAP_HALFS

2017-09-02 Thread Erik Faye-Lund
On Sat, Sep 2, 2017 at 2:55 AM, Jan Vesely wrote: > Denotes native half precision float operations capability > > Signed-off-by: Jan Vesely > --- > I can change the spelling to HALVES, but simplified english sounded more > appropriate. > > src/gallium/docs/source/screen.rst | 1 + >

Re: [Mesa-dev] [PATCH 1/2] gallium: Add PIPE_CAP_HALFS

2017-09-02 Thread Aaron Watry
On Fri, Sep 1, 2017 at 7:55 PM, Jan Vesely wrote: > Denotes native half precision float operations capability > > Signed-off-by: Jan Vesely > --- > I can change the spelling to HALVES, but simplified english sounded more > appropriate. > > src/gallium/docs/source/screen.rst | 1 + >

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Kai changed: What|Removed |Added Depends on||95346 Referenced Bugs: https://bugs.freedesktop.

[Mesa-dev] [Bug 95346] Stellaris - Black/super dark planets

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=95346 Kai changed: What|Removed |Added Blocks||77449 Referenced Bugs: https://bugs.freedesktop.

[Mesa-dev] [Bug 102518] [apitrace, backtrace] Crash in _mesa_is_bufferobj during load of "XCOM 2: War of the Chosen"

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102518 Kai changed: What|Removed |Added Summary|Crash in _mesa_is_bufferobj |[apitrace,backtrace] Crash |dur

Re: [Mesa-dev] [PATCH 12/23] intel: Add simple logging façade for Android

2017-09-02 Thread Jason Ekstrand
n Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > I'm bringing up Vulkan in the Android container of Chrome OS (ARC++). > > On Android, stdio goes to /dev/null. On Android, remote gdb is even more > painful than the usual remote gdb. On Android, nothing works like you > expect and debugging is

Re: [Mesa-dev] [PATCH 22/23] HACK: anv: Fix query of ELF build-id on ARC++

2017-09-02 Thread Jason Ekstrand
. On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > NOT FOR UPSTREAM. > > To get the driver's build-id, anv_physical_device_init_uuids() searches > the current process for an ELF phdr for filename "libvulkan_intel.so". > However, Android requires that the library be named > "vulkan.${board}.s

Re: [Mesa-dev] [PATCH 18/23] anv: Add field anv_image::mem_is_owned

2017-09-02 Thread Jason Ekstrand
On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > If this flag is set, then the image and it's device memory have the same > lifetime. vkDestroyImage will free its anv_device_memory. > > We need this for VK_ANDROID_native_buffer, because that extension > creates the VkImage and imports its m

Re: [Mesa-dev] [PATCH 20/23] anv: Add flag IGNORE_SIZE_PARAM for anv_bo_cache_import()

2017-09-02 Thread Jason Ekstrand
On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > If ANV_BO_CACHE_IMPORT_IGNORE_SIZE_PARAM is set, then the function > ignores the 'size' parameter. Instead, on a cache hit, it uses the cached > bo's > size; on a cache miss, it queries the fd's size. > Again, I don't really like the flag. I

Re: [Mesa-dev] [PATCH 19/23] anv: Add flag NO_CLOSE_FD for anv_bo_cache_import()

2017-09-02 Thread Jason Ekstrand
On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > This patch adds a flag param to anv_bo_cache_import() and defines > exactly one flag, ANV_BO_CACHE_IMPORT_NO_CLOSE_FD. If set, the function > will not close the fd. > The other option (which I think I like better) would be to move the call to

Re: [Mesa-dev] [PATCH 09/23] anv: Annotate entrypoint table with index and func name

2017-09-02 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > This helps when debugging a broken entrypoint table. > --- > src/intel/vulkan/anv_entrypoints_gen.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/intel/vulkan/anv_entrypoints_g

Re: [Mesa-dev] [PATCH 08/23] anv/android: Disable surface and swapchain extensions

2017-09-02 Thread Jason Ekstrand
On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > Android's Vulkan loader implements VK_KHR_surface and VK_KHR_swapchain, > and applications cannot access the driver's implementation. Moreoever, > if the driver exposes the those extension strings, then tests > dEQP-VK.api.info.instance.extens

Re: [Mesa-dev] [PATCH 13/23] anv: Better support for Android logging

2017-09-02 Thread Jason Ekstrand
This is going to conflict badly with tapani's work to implement VK_EXT_debug_report (which I need to finish reviewing). On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > In src/intel/vulkan/*, redirect all instances of printf, vk_error, > anv_loge, anv_debug, anv_finishme, anv_perf_warn, anv

Re: [Mesa-dev] [PATCH 23/23] anv: Implement VK_ANDROID_native_buffer

2017-09-02 Thread Jason Ekstrand
On Sat, Sep 2, 2017 at 1:17 AM, Chad Versace wrote: > This implementation is correct (afaict), but takes two shortcuts > regarding the import/export of Android sync fds. > > Shortcut 1. When Android calls vkAcquireImageANDROID to import a sync > fd into a VkSemaphore or VkFence, the driver in

[Mesa-dev] [Bug 102518] Crash in _mesa_is_bufferobj during load of "XCOM 2: War of the Chosen"

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102518 Kai changed: What|Removed |Added Keywords||have-backtrace --- Comment #1 from Kai --- I've

[Mesa-dev] [Bug 102502] [bisected] Kodi crashes since commit 707d2e8b - gallium: fold u_trim_pipe_prim call from st/mesa to drivers

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102502 --- Comment #1 from Alexandre Demers --- It seems this change (commit 707d2e8b) is responsible for a segfault on launch. However, even when reverting priror to 707d2e8b, Kodi will segfault when launching a stream. I'm investigating this other bu

[Mesa-dev] [Bug 102518] Crash in _mesa_is_bufferobj during load of "XCOM 2: War of the Chosen"

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102518 Bug ID: 102518 Summary: Crash in _mesa_is_bufferobj during load of "XCOM 2: War of the Chosen" Product: Mesa Version: git Hardware: Other OS: All

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Kai changed: What|Removed |Added Depends on||102518 Referenced Bugs: https://bugs.freedesktop

Re: [Mesa-dev] [PATCH 00/23] anv: Implement VK_ANDROID_native_buffer

2017-09-02 Thread Chad Versace
Adding back people that got accidentally dropped from the CC list. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 0/1] VK_ANDROID_native_buffer RFC

2017-09-02 Thread Chad Versace
On Thu 31 Aug 2017, Tapani Pälli wrote: > Hi; Hi Tapani, I just sent my implementation to mesa-dev too. I see a few major differences in our approaches: - I'm using Autotools. You used Android.mk. I probably broke the Android.mk build... sorry. I haven't found the time yet to test that

[Mesa-dev] [Bug 102516] regression on glsl shaders on BE architecture mesa-17.2.0-rc6

2017-09-02 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102516 Bug ID: 102516 Summary: regression on glsl shaders on BE architecture mesa-17.2.0-rc6 Product: Mesa Version: git Hardware: Other OS: All Status

[Mesa-dev] [PATCH 22/23] HACK: anv: Fix query of ELF build-id on ARC++

2017-09-02 Thread Chad Versace
NOT FOR UPSTREAM. To get the driver's build-id, anv_physical_device_init_uuids() searches the current process for an ELF phdr for filename "libvulkan_intel.so". However, Android requires that the library be named "vulkan.${board}.so". Fix it with a quick #ifdef hack. I have a plan to properly fi

[Mesa-dev] [PATCH 19/23] anv: Add flag NO_CLOSE_FD for anv_bo_cache_import()

2017-09-02 Thread Chad Versace
This patch adds a flag param to anv_bo_cache_import() and defines exactly one flag, ANV_BO_CACHE_IMPORT_NO_CLOSE_FD. If set, the function will not close the fd. This prepares for implementing VK_ANDROID_native_buffer, which must not close the imported fd. --- src/intel/vulkan/anv_allocator.c | 26

[Mesa-dev] [PATCH 20/23] anv: Add flag IGNORE_SIZE_PARAM for anv_bo_cache_import()

2017-09-02 Thread Chad Versace
If ANV_BO_CACHE_IMPORT_IGNORE_SIZE_PARAM is set, then the function ignores the 'size' parameter. Instead, on a cache hit, it uses the cached bo's size; on a cache miss, it queries the fd's size. This prepares for implementing VK_ANDROID_native_buffer, in which the API provides no explicit size for

[Mesa-dev] [PATCH 21/23] anv: Add func anv_gem_get_tiling()

2017-09-02 Thread Chad Versace
Will use in VK_ANDROID_native_buffer. --- src/intel/vulkan/anv_gem.c | 16 src/intel/vulkan/anv_private.h | 1 + 2 files changed, 17 insertions(+) diff --git a/src/intel/vulkan/anv_gem.c b/src/intel/vulkan/anv_gem.c index 3994c6b66c2..34c09891086 100644 --- a/src/intel/vulka

[Mesa-dev] [PATCH 23/23] anv: Implement VK_ANDROID_native_buffer

2017-09-02 Thread Chad Versace
This implementation is correct (afaict), but takes two shortcuts regarding the import/export of Android sync fds. Shortcut 1. When Android calls vkAcquireImageANDROID to import a sync fd into a VkSemaphore or VkFence, the driver instead simply blocks on the sync fd, then puts the VkSemaphore

[Mesa-dev] [PATCH 09/23] anv: Annotate entrypoint table with index and func name

2017-09-02 Thread Chad Versace
This helps when debugging a broken entrypoint table. --- src/intel/vulkan/anv_entrypoints_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py index 82221ef94bd..983be09a39b 100644 --- a/sr

[Mesa-dev] [PATCH 12/23] intel: Add simple logging façade for Android

2017-09-02 Thread Chad Versace
I'm bringing up Vulkan in the Android container of Chrome OS (ARC++). On Android, stdio goes to /dev/null. On Android, remote gdb is even more painful than the usual remote gdb. On Android, nothing works like you expect and debugging is hell. I need logging. This patch introduces a small, simple

[Mesa-dev] [PATCH 10/23] anv: Link to Android libraries in the autotools build

2017-09-02 Thread Chad Versace
A first step to supporting Vulkan on ARC++. Mesa on ARC++ uses Autotools, not Android.mk. --- src/intel/Makefile.vulkan.am | 5 + 1 file changed, 5 insertions(+) diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am index 8a19f96096a..d1b1132ed2e 100644 --- a/src/intel/Make

[Mesa-dev] [PATCH 13/23] anv: Better support for Android logging

2017-09-02 Thread Chad Versace
In src/intel/vulkan/*, redirect all instances of printf, vk_error, anv_loge, anv_debug, anv_finishme, anv_perf_warn, anv_assert, and their many variants to the new intel_log functions. I believe I caught them all. The other subdirs of src/intel are left for a future exercise. --- src/intel/vulkan

[Mesa-dev] [PATCH 11/23] intel: Move definition of LOG_TAG from header into Makefiles

2017-09-02 Thread Chad Versace
This patch prevents compilation failures in upcoming Android Vulkan patches, failures due to redefinition of LOG_TAG in Android system headers. This patch does not change the value of LOG_TAG. It remains "INTEL-MESA". (I don't like it, though. The all-caps smells like FORTRAN). Only one Intel hea

[Mesa-dev] [PATCH 17/23] anv: In anv_image, track anv_device_memory* instead of anv_bo*

2017-09-02 Thread Chad Versace
This will reduce fragility in the implementation of VK_ANDROID_native_buffer, which must do the equivalent of vkAllocateMemory inside of vkCreateImage. No behavioral change. --- src/intel/vulkan/anv_blorp.c | 12 ++-- src/intel/vulkan/anv_image.c | 12 ++-- src/intel/v

[Mesa-dev] [PATCH 08/23] anv/android: Disable surface and swapchain extensions

2017-09-02 Thread Chad Versace
Android's Vulkan loader implements VK_KHR_surface and VK_KHR_swapchain, and applications cannot access the driver's implementation. Moreoever, if the driver exposes the those extension strings, then tests dEQP-VK.api.info.instance.extensions and dEQP-VK.api.info.device fail due to the duplicated st

[Mesa-dev] [PATCH 15/23] anv/image: Refactor how tiling is chosen

2017-09-02 Thread Chad Versace
The code that restricts the VkImage's tiling flags, extract it into a new function named choose_isl_tiling_flags(). This reduces the diff in upcoming patches for VK_ANDROID_native_buffer. --- src/intel/vulkan/anv_image.c | 31 --- 1 file changed, 20 insertions(+), 11 d

[Mesa-dev] [PATCH 18/23] anv: Add field anv_image::mem_is_owned

2017-09-02 Thread Chad Versace
If this flag is set, then the image and it's device memory have the same lifetime. vkDestroyImage will free its anv_device_memory. We need this for VK_ANDROID_native_buffer, because that extension creates the VkImage and imports its memory in the same call, vkCreateImage. --- src/intel/vulkan/an

[Mesa-dev] [PATCH 14/23] anv/image: Better var names for image-create-info structs

2017-09-02 Thread Chad Versace
Upcoming patches teach vkCreateImage to understand VkNativeBufferANDROID. And much later patches will do the same for whatever VkImageCreateInfo-chained struct imports dma-bufs. And then again for the struct that will be introduced by the inevitable extension VK_ANDROID_external_memory_whatever. So

[Mesa-dev] [PATCH 16/23] anv/image: Refactor creation of aux surfaces

2017-09-02 Thread Chad Versace
Creation of hiz, ccs, and mcs surfaces was encoded in a large, deep 'if' tree at the tail of make_surface(). This patch extracts that 'if' tree into one function per aux type: try_make_hiz_surface() try_make_ccs_surface() try_make_mcs_surface() For clarity, also rename make_surface()

[Mesa-dev] [PATCH 07/23] anv: Feed vk_android_native_buffer.xml to generators

2017-09-02 Thread Chad Versace
Feed the XML to anv_extensions.py and anv_entrypoints_gen.py. Do it on all platforms, not just Android. Tested on Android and Fedora. We always parse the Android XML, regardless of target platform, to help reduce the chance that people working on non-Android break the Android build. --- src/intel

[Mesa-dev] [PATCH 05/23] vulkan/registry: Feed vk_android_native_buffer.xml to gen_enum_to_str.py

2017-09-02 Thread Chad Versace
Tested on Android and Fedora. --- src/vulkan/Android.mk | 9 +++-- src/vulkan/Makefile.am | 9 +++-- src/vulkan/util/gen_enum_to_str.py | 20 +++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/vulkan/Android.mk b/src/vulkan/A

[Mesa-dev] [PATCH 06/23] anv: Teach generator scripts how to parse mutliple XML files

2017-09-02 Thread Chad Versace
The taught scripts are anv_extensions.py and anv_entrypoints_gen.py. To give a script multiple XML files, call it like so: anv_extensions.py --xml a.xml --xml b.xml --xml c.xml ... The scripts parse the XML files in the given order. This will allow us to feed the scripts XML files for exten

[Mesa-dev] [PATCH 03/23] vulkan/registry: Add VK_ANDROID_native_buffer

2017-09-02 Thread Chad Versace
The VK_ANDROID_native_buffer extension is missing from the official vk.xml. This patch defines the extension in a separate, minimal XML file: vk_android_native_buffer.xml. I chose to add the extension to a new XML file instead of adding it to the official vk.xml in order to avoid conflicts each ti

[Mesa-dev] [PATCH 04/23] vulkan/util: Teach gen_enum_to_str.py to parse mutliple XML files

2017-09-02 Thread Chad Versace
To give the script multiple XML files, call it like so: gen_enum_to_str.py --xml a.xml --xml b.xml --xml c.xml ... The script parses the XML files in the given order. This will allow us to feed the script XML files for extensions that are missing from the official vk.xml, such as VK_ANDROID_

[Mesa-dev] [PATCH 00/23] anv: Implement VK_ANDROID_native_buffer

2017-09-02 Thread Chad Versace
This series adds Android support to Anvil. And Android requires VK_ANDROID_native_buffer. I tested the series on 64-bit ARC++ on a Skylake Chromebook with a 3.18 kernel. (ARC++ is the Android container in Chrome OS). (Yes, I said 3.18. That's not a typo). Here's my test results: - A little,

[Mesa-dev] [PATCH 01/23] vulkan: Import vk_android_native_buffer.h

2017-09-02 Thread Chad Versace
Just as Mesa imports the Khronos Vulkan headers, it should import this Android-private Vulkan header too. This guarantees that Mesa will continue to build even when upstream Android breaks header compatibility. This header is only for *implementers* of Vulkan, not for consumers of Vulkan. Importe

[Mesa-dev] [PATCH 02/23] vulkan: Add #ifdef hack to vk_android_native_buffer.h

2017-09-02 Thread Chad Versace
This patch consolidates many potential `#ifdef ANDROID` messes throughout src/vulkan and src/intel/vulkan into a simple, localized hack. The hack is an `#ifdef ANDROID` in vk_android_native_buffer.h that, on non-Android platorms, avoids including the Android platform headers and typedefs any Androi

[Mesa-dev] [PATCH v4] glsl: Add 16-bit types

2017-09-02 Thread Alejandro Piñeiro
From: Eduardo Lima Mitev Adds new INT16, UINT16 and FLOAT16 base types. The corresponding GL types for half floats were reused from the AMD_gpu_shader_half_float extension. The int16 and uint16 types come from NV_gpu_shader_5 extension. This adds the builtins and the lexer support. To avoid a