Re: [Mesa-dev] [RFC] radv: copy indirect lowering settings from radeonsi

2017-10-16 Thread Bas Nieuwenhuizen
On Tue, Oct 17, 2017 at 7:41 AM, Timothy Arceri wrote: > It looks the original indirect mask was probably copied from > ANV. > > Here we drop lowering locals altogether and allow indirects > on inputs where supported. > > Sascha Willems demo results: > > tessellation ~4000 -> ~4200 fps > --- > >

Re: [Mesa-dev] [PATCH] radv: port to using updated anv entrypoint/extension generator.

2017-10-16 Thread Bas Nieuwenhuizen
On Tue, Oct 17, 2017 at 7:36 AM, Dave Airlie wrote: > From: Dave Airlie > > This ports radv to using the anv entrypoint/extension generator > code. > > No differences on enabled extensions list in vulkaninfo. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/.gitignore | 1 +

[Mesa-dev] [Bug 103062] Error starting game FS17

2017-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103062 --- Comment #11 from alexander --- It will be possible to download an older version of FS17. -- You are receiving this mail because: You are the assignee for the bug.___ mesa-dev mailing list mesa-de

[Mesa-dev] [RFC] radv: copy indirect lowering settings from radeonsi

2017-10-16 Thread Timothy Arceri
It looks the original indirect mask was probably copied from ANV. Here we drop lowering locals altogether and allow indirects on inputs where supported. Sascha Willems demo results: tessellation ~4000 -> ~4200 fps --- Radeonsi also does a couple of other things. 1. It sets the following llvm

[Mesa-dev] [PATCH] radv: port to using updated anv entrypoint/extension generator.

2017-10-16 Thread Dave Airlie
From: Dave Airlie This ports radv to using the anv entrypoint/extension generator code. No differences on enabled extensions list in vulkaninfo. Signed-off-by: Dave Airlie --- src/amd/vulkan/.gitignore | 1 + src/amd/vulkan/Makefile.am | 9 +- src/amd/vulkan/Makef

Re: [Mesa-dev] [PATCH v2] i965 : optimized bucket index calculation

2017-10-16 Thread Muthukumar, Aravindan
Hi Jason, Please review and let us know if any other changes need to be done for this patch. We have incorporated all the review comments in the second version of the patch. Thanks, Aravindan > -Original Message- > From: Muthukumar, Aravindan > Sent: Tuesday, October 3, 2017 10:0

Re: [Mesa-dev] [PATCH] main: remove redundant NULL check

2017-10-16 Thread Marek Olšák
Pushed, thanks! Marek On Sun, Oct 15, 2017 at 7:46 PM, Miklós Máté wrote: > update_single_program_texture() never returns NULL. > > Signed-off-by: Miklós Máté > --- > src/mesa/main/texstate.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/mesa/main/texstate.c b/src/mesa/main/tex

Re: [Mesa-dev] meson for remaining class drivers

2017-10-16 Thread Ilia Mirkin
On Mon, Oct 16, 2017 at 9:05 PM, Timothy Arceri wrote: > On 17/10/17 11:55, Dylan Baker wrote: >> >> Here is build support for the three remaining classic drivers, radeon >> (r100), >> r200, and the nouveau-veaux driver. None of these are too crazy, but I >> don't >> have hardware to test any of t

Re: [Mesa-dev] [PATCH 4/4] meson: build nouveau veaux driver

2017-10-16 Thread Ilia Mirkin
Old, not calves... On Oct 16, 2017 8:56 PM, "Dylan Baker" wrote: Build tested only. Signed-off-by: Dylan Baker --- meson.build | 4 +- meson_options.txt| 2 +- src/mesa/drivers/dri/meson.build | 3 ++ src/mesa/drivers/dri/nouveau

[Mesa-dev] [PATCH 1/2] nir: Add a helper for adding texture instruction sources

2017-10-16 Thread Jason Ekstrand
--- src/compiler/nir/nir.c | 22 +++ src/compiler/nir/nir.h | 4 src/compiler/nir/nir_lower_samplers.c| 27 ++-- src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 19 + 4 file

Re: [Mesa-dev] [PATCH] mesa: fix texture updates for ATI_fragment_shader

2017-10-16 Thread Marek Olšák
On Sun, Oct 15, 2017 at 7:10 PM, Miklós Máté wrote: > Hi, > > I'd like to ask you to revert this change. > > As Ian Romanick pointed out this makes ATI_fs behave like ARB_fp, however > there is a major difference between the two: with ATI_fs there is no way of > knowing the texture targets until t

[Mesa-dev] [PATCH 2/2] anv/apply_pipeline_layout: Use nir_tex_instr_remove_src

2017-10-16 Thread Jason Ekstrand
--- src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c index 1c86513..3ca2b04 100644 --- a/src/intel/vulkan/anv_

Re: [Mesa-dev] meson for remaining class drivers

2017-10-16 Thread Timothy Arceri
On 17/10/17 11:55, Dylan Baker wrote: Here is build support for the three remaining classic drivers, radeon (r100), r200, and the nouveau-veaux driver. None of these are too crazy, but I don't have hardware to test any of these. I can probably test out r200 later tonight. However are you going

[Mesa-dev] [PATCH 4/4] meson: build nouveau veaux driver

2017-10-16 Thread Dylan Baker
Build tested only. Signed-off-by: Dylan Baker --- meson.build | 4 +- meson_options.txt| 2 +- src/mesa/drivers/dri/meson.build | 3 ++ src/mesa/drivers/dri/nouveau/meson.build | 92 4 files changed,

[Mesa-dev] [PATCH 3/4] meson: build r200 driver

2017-10-16 Thread Dylan Baker
Build tested only Signed-off-by: Dylan Baker --- meson.build | 4 +- meson_options.txt | 2 +- src/mesa/drivers/dri/meson.build | 3 ++ src/mesa/drivers/dri/r200/meson.build | 91 +++ 4 files changed, 98 insert

[Mesa-dev] [PATCH 1/4] install_megadrivers: print the full path with driver name

2017-10-16 Thread Dylan Baker
Instead of just the path. Signed-off-by: Dylan Baker --- bin/install_megadrivers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install_megadrivers.py b/bin/install_megadrivers.py index a5a46201ccb..a98d7dd177b 100755 --- a/bin/install_megadrivers.py +++ b/bin/install

[Mesa-dev] meson for remaining class drivers

2017-10-16 Thread Dylan Baker
Here is build support for the three remaining classic drivers, radeon (r100), r200, and the nouveau-veaux driver. None of these are too crazy, but I don't have hardware to test any of these. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https:

[Mesa-dev] [PATCH 2/4] meson: build r100 driver

2017-10-16 Thread Dylan Baker
build tested only Signed-off-by: Dylan Baker --- meson.build | 4 +- meson_options.txt | 2 +- src/mesa/drivers/dri/meson.build| 3 ++ src/mesa/drivers/dri/radeon/meson.build | 87 + 4 files changed, 94

Re: [Mesa-dev] [PATCH 09/10] anv: Implement VK_ANDROID_native_buffer (v9)

2017-10-16 Thread Jason Ekstrand
I made some fairly straightforward comments. with that, and the squash you sent, 1-6 and 8-10 are Reviewed-by: Jason Ekstrand I'd like to see the respin of patch 7 but I fully expect to give it my R-B almost immediately. --Jason On Mon, Oct 16, 2017 at 11:55 AM, Chad Versace wrote: > This i

Re: [Mesa-dev] [PATCH] radv: Do not read from the disk cache with RADV_DEBUG=nocache.

2017-10-16 Thread Timothy Arceri
On 17/10/17 10:02, Timothy Arceri wrote: On 16/10/17 22:54, Bas Nieuwenhuizen wrote: Otherwise the flag is borderline useless. This disk cache util checks for MESA_GLSL_CACHE_DISABLE. Maybe we should make the name more generic and combine these flags? Doesn't seem like much use having two as

Re: [Mesa-dev] [PATCH] squash! anv: Move close(fd) from anv_bo_cache_import to its callers

2017-10-16 Thread Jason Ekstrand
On October 16, 2017 4:18:45 PM Chad Versace wrote: Add missing close(fd) for case VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT_KHR, subcase ANV_SEMAPHORE_TYPE_BO. --- src/intel/vulkan/anv_queue.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a

Re: [Mesa-dev] [PATCH 0/3] meson for broadcom

2017-10-16 Thread Dylan Baker
As far as I can tell this looks good. for the series: Reviewed-by: Dylan Baker (I pushed the meson-gallium stuff so this should be possible to land) Dylan Quoting Eric Anholt (2017-10-16 13:57:08) > Since I think I've sent review for all the parts of Dylan's meson > gallium series, here's meson

Re: [Mesa-dev] [PATCH 07/10] anv: Add sizeless anv_bo_cache_import()

2017-10-16 Thread Jason Ekstrand
On Mon, Oct 16, 2017 at 11:55 AM, Chad Versace wrote: > The patch renames anv_bo_cache_import() to > anv_bo_cache_import_with_size(); and adds a new variant, > anv_bo_cache_import(), that lacks the 'size' parameter. Same as > pre-patch, anv_bo_cache_import_with_size() continues to validate the >

[Mesa-dev] [PATCH] squash! anv: Move close(fd) from anv_bo_cache_import to its callers

2017-10-16 Thread Chad Versace
Add missing close(fd) for case VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD_BIT_KHR, subcase ANV_SEMAPHORE_TYPE_BO. --- src/intel/vulkan/anv_queue.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_que

Re: [Mesa-dev] [PATCH] radv: Do not read from the disk cache with RADV_DEBUG=nocache.

2017-10-16 Thread Timothy Arceri
On 16/10/17 22:54, Bas Nieuwenhuizen wrote: Otherwise the flag is borderline useless. This disk cache util checks for MESA_GLSL_CACHE_DISABLE. Maybe we should make the name more generic and combine these flags? Doesn't seem like much use having two as you say. --- src/amd/vulkan/radv_pi

Re: [Mesa-dev] [PATCH 06/10] anv: Move close(fd) from anv_bo_cache_import to its callers

2017-10-16 Thread Jason Ekstrand
You're missing one other caller in anv_queue.c On Mon, Oct 16, 2017 at 11:55 AM, Chad Versace wrote: > This will allow us to implement VK_ANDROID_native_buffer without dup'ing > the fd. We must close the fd in VK_KHR_external_memory_fd, but we should > not in VK_ANDROID_native_buffer. > --- > s

Re: [Mesa-dev] [PATCH] clover: Fix compiling with LLVM >= r315871

2017-10-16 Thread Dieter Nützel
Tested-by: Dieter Nützel on RX580 Thanks, Dieter Am 16.10.2017 18:48, schrieb Vedran Miletić: --- src/gallium/state_trackers/clover/llvm/codegen/common.cpp | 5 +++-- src/gallium/state_trackers/clover/llvm/compat.hpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --gi

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

2017-10-16 Thread Jason Ekstrand
No meson love? On Mon, Oct 16, 2017 at 11:54 AM, Chad Versace wrote: > A first step to supporting Vulkan on ARC++. Mesa on ARC++ uses > Autotools, not Android.mk. > > Doing this now, even before VK_ANDROID_native_buffer is implemented, > allows us to incrementally add Android support to the Auto

Re: [Mesa-dev] Build fail since configure.ac: rework llvm libs handling for 3.9+

2017-10-16 Thread Dieter Nützel
Am 16.10.2017 20:13, schrieb Andy Furniss: Emil Velikov wrote: On 16 October 2017 at 03:22, Jan Vesely wrote: On Sun, 2017-10-15 at 00:00 +0100, Andy Furniss wrote: Andy Furniss wrote: Since commit 13a53c4f5cdd664fd155c9e78fb46a4387af006c Author: Emil Velikov Date: Thu Oct 5 11:19:05 201

Re: [Mesa-dev] [PATCH 09/10] anv: Implement VK_ANDROID_native_buffer (v9)

2017-10-16 Thread Chad Versace
On Mon 16 Oct 2017, Kristian Høgsberg wrote: > On Mon, Oct 16, 2017 at 11:55 AM, Chad Versace > wrote: > > v9: > > - Isolate as much Android code as possible, moving it from anv_image.c > > to anv_android.c. Connect the files with anv_image_from_gralloc(). > > Remove VkNativeBufferANDR

Re: [Mesa-dev] [PATCH 1/2] meson: provide Makefile.sources variables to meson build

2017-10-16 Thread Jakob Bornecrantz
On Mon, Oct 16, 2017 at 6:58 PM, Scott D Phillips wrote: > Dylan Baker writes: > >> Quoting Scott D Phillips (2017-10-16 10:04:45) >> > Dylan Baker writes: >> > >> > > Quoting Jakob Bornecrantz (2017-10-14 13:03:14) >> > > > On Sat, Oct 14, 2017 at 1:36 AM, Dylan Baker >> > > > wrote: >> > > >

[Mesa-dev] [PATCH 0/3] meson for broadcom

2017-10-16 Thread Eric Anholt
Since I think I've sent review for all the parts of Dylan's meson gallium series, here's meson for the Broadcom side of things. Note that compared to Dylan's stuff, I've put the subdir calls for my drivers under their condition flag. This seems to be a general meson style thing, which makes it ea

[Mesa-dev] [PATCH 3/3] meson: Add support for the vc5 driver.

2017-10-16 Thread Eric Anholt
--- meson.build| 2 + meson_options.txt | 2 +- src/broadcom/{ => compiler}/meson.build| 25 +++- src/broadcom/meson.build | 18 + src/broadcom/{ => qpu}/meson.build

[Mesa-dev] [PATCH 1/3] meson: Add support for the vc4 driver.

2017-10-16 Thread Eric Anholt
--- meson.build | 2 + meson_options.txt| 2 +- src/{ => broadcom/cle}/meson.build | 80 +++-- src/{ => broadcom}/meson.build | 50 ++--- src/gallium/drivers/vc4/meson.build

[Mesa-dev] [PATCH 2/3] meson: Add support for the pl111 driver.

2017-10-16 Thread Eric Anholt
--- meson.build | 2 ++ meson_options.txt| 2 +- src/gallium/meson.build | 4 +++- src/gallium/targets/dri/meson.build | 5 + src/gallium/winsys/pl111/drm/meson.build | 30 ++ 5 files cha

Re: [Mesa-dev] [PATCH 06/10] gbm: remove incorrect DRIImage version check in gbm_dri_bo_import()

2017-10-16 Thread Jakob Bornecrantz
On Mon, Oct 16, 2017 at 5:04 PM, Emil Velikov wrote: > From: Emil Velikov > > The version of the extension does not imply success for the > queryImage(... WIDTH/HEIGHT ...) calls. > > With that properly handled (as of last commit), we can drop the check. > > Fixes: 93ebec87ed4 ("dri: Make query i

Re: [Mesa-dev] [PATCH 05/10] gbm: handle queryImage() failure through rest of gbm_dri_bo_import()

2017-10-16 Thread Jakob Bornecrantz
On Mon, Oct 16, 2017 at 5:04 PM, Emil Velikov wrote: > From: Emil Velikov > > Fixes: 6a7dea93fa7 ("dri: Rework planar image interface") > Cc: Jakob Bornecrantz > Signed-off-by: Emil Velikov Reviewed-by: Jakob Bornecrantz Cheers, Jakob. > --- > src/gbm/backends/dri/gbm_dri.c | 23 ++

Re: [Mesa-dev] [PATCH 09/10] anv: Implement VK_ANDROID_native_buffer (v9)

2017-10-16 Thread Kristian Høgsberg
On Mon, Oct 16, 2017 at 11:55 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 i

Re: [Mesa-dev] [PATCH v2] Android: add libmesa_nir dependency to libmesa_dricore

2017-10-16 Thread Rob Herring
On Mon, Oct 16, 2017 at 2:32 PM, Kenneth Graunke wrote: > On Monday, October 16, 2017 12:07:47 PM PDT Rob Herring wrote: >> Commit 32fcced7b479 ("meta: Unset the textures_used_by_txf bitfield.") >> added a dependency in libmesa_dricore to NIR headers, but failed to add >> libmesa_nir as a dependen

Re: [Mesa-dev] [PATCH 1/6] i965: Only put external handles into the handle ht

2017-10-16 Thread Chris Wilson
Quoting Kenneth Graunke (2017-10-16 20:07:05) > Patches 2 and 5 look good to me as well. I'd like to try out the > AMD_pinned_memory support with Left 4 Dead 2, as I know a bunch of > the Source 1 games use AMD_pinned_memory for better performance... > but those games apparently started crashing t

Re: [Mesa-dev] [PATCH v2] Android: add libmesa_nir dependency to libmesa_dricore

2017-10-16 Thread Kenneth Graunke
On Monday, October 16, 2017 12:07:47 PM PDT Rob Herring wrote: > Commit 32fcced7b479 ("meta: Unset the textures_used_by_txf bitfield.") > added a dependency in libmesa_dricore to NIR headers, but failed to add > libmesa_nir as a dependency resulting in a build error: > > In file included from exte

Re: [Mesa-dev] [PATCH 1/6] i965: Only put external handles into the handle ht

2017-10-16 Thread Kenneth Graunke
On Friday, October 13, 2017 2:34:51 AM PDT Chris Wilson wrote: > We know that we will only ever need to lookup an external handle and so > can defer adding a bo to the external ht until it is ever exported or > imported, keeping that hashtable compact. > > Cc: Kenneth Graunke > --- > src/mesa/dr

[Mesa-dev] [PATCH v2] Android: add libmesa_nir dependency to libmesa_dricore

2017-10-16 Thread Rob Herring
Commit 32fcced7b479 ("meta: Unset the textures_used_by_txf bitfield.") added a dependency in libmesa_dricore to NIR headers, but failed to add libmesa_nir as a dependency resulting in a build error: In file included from external/mesa3d/src/mesa/drivers/common/meta.c:90: external/mesa3d/src/compil

[Mesa-dev] [PATCH v2] r600/sb: bail out if prepare_alu_group() doesn't find a proper scheduling

2017-10-16 Thread Gert Wollny
It is possible that the optimizer ends up in an infinite loop in post_scheduler::schedule_alu(), because post_scheduler::prepare_alu_group() does not find a proper scheduling. This can be deducted from pending.count() being larger than zero and not getting smaller. This patch works around this pro

Re: [Mesa-dev] [PATCH v4 0/2] build system: Unify c++11 detection and used [was: configure+mesa/st:check -std=c++11 support and enable tests accordingly]

2017-10-16 Thread Gert Wollny
Am Montag, den 16.10.2017, 10:31 -0400 schrieb Chuck Atkins: > Hi Gert, Emil, > > > I think that using the -std=c++11 check should be good, > > A few things to consider, neither of which is a deal breaker, I just > want to make sure they're not forgotten about: > #1 -std=c++ will cover many case

[Mesa-dev] [PATCH 07/10] anv: Add sizeless anv_bo_cache_import()

2017-10-16 Thread Chad Versace
The patch renames anv_bo_cache_import() to anv_bo_cache_import_with_size(); and adds a new variant, anv_bo_cache_import(), that lacks the 'size' parameter. Same as pre-patch, anv_bo_cache_import_with_size() continues to validate the imported size. The patch is essentially a refactor patch. It sho

[Mesa-dev] [PATCH 10/10] anv: Install as Vulkan HAL module in Android.mk build

2017-10-16 Thread Chad Versace
From: Tapani Pälli Now that anvil fully implements the Vulkan HAL interface, we can install it as the vendor HAL module at /vendor/lib/hw/vulkan.${board}.so. To do so: - Rename LOCAL_MODULE to vulkan.$(TARGET_BOARD_PLATFORM). - Use LOCAL_PROPRIETARY_MODULE to install under vendor path. Test

[Mesa-dev] [PATCH 09/10] anv: Implement VK_ANDROID_native_buffer (v9)

2017-10-16 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 04/10] anv: Better support for Android logging (v2)

2017-10-16 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. v2: - Rebase onto

[Mesa-dev] [PATCH 08/10] anv: Add func anv_gem_get_tiling()

2017-10-16 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 3994c6b66c..34c0989108 100644 --- a/src/intel/vulkan/

[Mesa-dev] [PATCH 03/10] intel: Add simple logging façade for Android (v2)

2017-10-16 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 00/10] anv: Implement VK_ANDROID_native_buffer (v4)

2017-10-16 Thread Chad Versace
(This is v4 submission of the series, but contains v9 of the key patch). 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,

[Mesa-dev] [PATCH 02/10] anv/android: Link to libsync, liblog in Android.mk

2017-10-16 Thread Chad Versace
From: Tapani Pälli chadv: I made this patch by extracting the hunk from Tapani's patch in https://lists.freedesktop.org/archives/mesa-dev/2017-September/169602.html. Signed-off-by: Chad Versace --- src/intel/Android.vulkan.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

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

2017-10-16 Thread Chad Versace
A first step to supporting Vulkan on ARC++. Mesa on ARC++ uses Autotools, not Android.mk. Doing this now, even before VK_ANDROID_native_buffer is implemented, allows us to incrementally add Android support to the Autotools build. --- src/intel/Makefile.vulkan.am | 5 + 1 file changed, 5 inser

[Mesa-dev] [PATCH 05/10] anv: Add field anv_image::planes[]::bo_is_owned (v2)

2017-10-16 Thread Chad Versace
If this flag is set, then the image and the bo have the same lifetime. vkDestroyImage will release the bo. We need this for VK_ANDROID_native_buffer, because that extension creates the VkImage *and* imports its memory during the same call, vkCreateImage. v2: Rebase onto VK_KHR_bind_memory2. ---

[Mesa-dev] [PATCH 06/10] anv: Move close(fd) from anv_bo_cache_import to its callers

2017-10-16 Thread Chad Versace
This will allow us to implement VK_ANDROID_native_buffer without dup'ing the fd. We must close the fd in VK_KHR_external_memory_fd, but we should not in VK_ANDROID_native_buffer. --- src/intel/vulkan/anv_allocator.c | 12 src/intel/vulkan/anv_device.c| 11 +++ src/intel/vu

Re: [Mesa-dev] [PATCH] configure.ac: set -O0 on --enable-debug

2017-10-16 Thread Miklós Máté
On 16/10/17 13:21, Emil Velikov wrote: Hi Miklós, On 15 October 2017 at 18:46, Miklós Máté wrote: Autoconf sets CFLAGS="-g -O2" by default. Signed-off-by: Miklós Máté --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 62d33a1941..c83

Re: [Mesa-dev] Build fail since configure.ac: rework llvm libs handling for 3.9+

2017-10-16 Thread Andy Furniss
Emil Velikov wrote: On 16 October 2017 at 03:22, Jan Vesely wrote: On Sun, 2017-10-15 at 00:00 +0100, Andy Furniss wrote: Andy Furniss wrote: Since commit 13a53c4f5cdd664fd155c9e78fb46a4387af006c Author: Emil Velikov Date: Thu Oct 5 11:19:05 2017 +0100 configure.ac: rework llvm lib

Re: [Mesa-dev] [PATCH] clover: Fix compiling with LLVM >= r315871

2017-10-16 Thread Jan Vesely
On Mon, 2017-10-16 at 18:48 +0200, Vedran Miletić wrote: > --- > src/gallium/state_trackers/clover/llvm/codegen/common.cpp | 5 +++-- > src/gallium/state_trackers/clover/llvm/compat.hpp | 2 +- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/src/gallium/state_trackers/

Re: [Mesa-dev] [PATCH 1/2] meson: provide Makefile.sources variables to meson build

2017-10-16 Thread Scott D Phillips
Dylan Baker writes: > Quoting Scott D Phillips (2017-10-16 10:04:45) > > Dylan Baker writes: > > > > > Quoting Jakob Bornecrantz (2017-10-14 13:03:14) > > > > On Sat, Oct 14, 2017 at 1:36 AM, Dylan Baker > > > > wrote: > > > > > I'm not sure about this approach, we would need a way to add > >

Re: [Mesa-dev] [PATCH] egl/android: add a note about .swap_buffers_with_damage

2017-10-16 Thread Eric Engestrom
On Monday, 2017-10-16 16:10:42 +, Emil Velikov wrote: > From: Emil Velikov > > Android implements the API and does the native damage handling itself. > At the same time it > a) does call the vendor's eglSwapBuffersWithDamageKHR > b) does not implement eglSetDamageRegionKHR > > There's some

Re: [Mesa-dev] [PATCH 2/2] configure: enable the OpenCL ICD by default

2017-10-16 Thread Francisco Jerez
Series is: Reviewed-by: Francisco Jerez Emil Velikov writes: > From: Emil Velikov > > Nearly all the distributions* that build Mesa OpenCL, enable the ICD. > Since building a non-ICD driver has the chance of conflicting with > existing OpenCL binary (libOpenCL.so). > > Furthermore, some appli

Re: [Mesa-dev] [PATCH v3 2/2] meson: build freedreno

2017-10-16 Thread Dylan Baker
Quoting Rob Clark (2017-10-15 04:04:04) > On Sat, Oct 14, 2017 at 11:10 PM, Dylan Baker wrote: > > Quoting Rob Clark (2017-10-14 11:41:49) > > > > Do we have a files() object for this? Since both freedreno and i965 need > > this, > > why don't we add a files_nir_algebraic_py (or whatever) in nir

Re: [Mesa-dev] [PATCH] egl/wayland: Support for KHR_partial_update

2017-10-16 Thread Eric Engestrom
On Monday, 2017-10-16 13:54:25 +, Emil Velikov wrote: > Hi Harish, > > Overall looks great, a few comments/questions inline. > I agree with everything Emil said :) > On 13 October 2017 at 19:49, Harish Krupo wrote: > > This passes 33/37 deqp tests related to partial_update, 4 are not > > s

Re: [Mesa-dev] [PATCH 2/2] loader/dri3: Make sure we invalidate a drawable on size change

2017-10-16 Thread Thomas Hellstrom
On 10/16/2017 04:39 PM, Michel Dänzer wrote: On 16/10/17 02:21 PM, Thomas Hellstrom wrote: On 10/16/2017 12:53 PM, Thomas Hellstrom wrote: Hi, Michel, On 10/16/2017 12:35 PM, Michel Dänzer wrote: Hi Thomas, On 05/09/17 10:15 AM, Thomas Hellstrom wrote: If we're seeing a drawable size change

Re: [Mesa-dev] [RFC v4 00/23] DRI3 v1.1, ANV dmabuf

2017-10-16 Thread Jason Ekstrand
I think there's a decent chance I'll actually get around to reviewing these soon. Before it in my review queue is Chad's android patches and 16bit storage. On October 16, 2017 12:04:46 AM Louis-Francis Ratté-Boulianne wrote: Hi, With full support for modifiers in DRIimage, this patch se

Re: [Mesa-dev] [PATCH mesa 2/2] svga: format the version string like the rest of mesa

2017-10-16 Thread Brian Paul
On 10/16/2017 10:25 AM, Eric Engestrom wrote: All 4 other version strings do it like this. ((Also, double parentheses just look confusing)) Signed-off-by: Eric Engestrom --- src/gallium/drivers/svga/svga_screen.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/

Re: [Mesa-dev] [PATCH 1/2] meson: provide Makefile.sources variables to meson build

2017-10-16 Thread Dylan Baker
Quoting Scott D Phillips (2017-10-16 10:04:45) > Dylan Baker writes: > > > Quoting Jakob Bornecrantz (2017-10-14 13:03:14) > > > On Sat, Oct 14, 2017 at 1:36 AM, Dylan Baker wrote: > > > > I'm not sure about this approach, we would need a way to add > > > > depends to meson, > > 'add depends' m

Re: [Mesa-dev] [PATCH v2] Makefile.tools.am/Makefile.common.am: move handling of Expat to Makefile.common.am

2017-10-16 Thread Emil Velikov
Hi Hongxu, The one line message is unreadable, I'm afraid. How about; automake: intel: move expat handling where it's used On 12 October 2017 at 02:39, Hongxu Jia wrote: > While built with "-fvisibility=default" > ... > |i586-oe-linux-gcc ... -fvisibility=default ... -o > common/.libs/common_li

Re: [Mesa-dev] [PATCH 1/2] meson: provide Makefile.sources variables to meson build

2017-10-16 Thread Scott D Phillips
Dylan Baker writes: > Quoting Jakob Bornecrantz (2017-10-14 13:03:14) > > On Sat, Oct 14, 2017 at 1:36 AM, Dylan Baker wrote: > > > I'm not sure about this approach, we would need a way to add > > > depends to meson, 'add depends' meaning having a way for the build steps themselves to depend on

[Mesa-dev] [PATCH] clover: Fix compiling with LLVM >= r315871

2017-10-16 Thread Vedran Miletić
--- src/gallium/state_trackers/clover/llvm/codegen/common.cpp | 5 +++-- src/gallium/state_trackers/clover/llvm/compat.hpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/clover/llvm/codegen/common.cpp b/src/gallium/state_trackers/clover/l

Re: [Mesa-dev] [PATCH 1/2] configure.ac: add _DEBUG to strip_unwanted_llvm_flags

2017-10-16 Thread Emil Velikov
On 16 October 2017 at 17:33, Rowley, Timothy O wrote: > Ping. This is useful for those building their own llvm. > Thanks Tim. Did not see this the first time around. >> On Oct 3, 2017, at 3:23 PM, Rowley, Timothy O >> wrote: >> >> Assert-enabled builds of llvm add _DEBUG to the LLVM_CFLAGS. >>

Re: [Mesa-dev] [PATCH 1/2] configure.ac: add _DEBUG to strip_unwanted_llvm_flags

2017-10-16 Thread Rowley, Timothy O
Ping. This is useful for those building their own llvm. > On Oct 3, 2017, at 3:23 PM, Rowley, Timothy O > wrote: > > Assert-enabled builds of llvm add _DEBUG to the LLVM_CFLAGS. > > This was causing a crash with swr running the ParaView > waveletcontour.py test, due to a bug in our _DEBUG cod

[Mesa-dev] [PATCH mesa 1/2] git_sha1_gen: use git_sha1.h.in on all build systems

2017-10-16 Thread Eric Engestrom
Meson already uses this, let's get the other build sys to use it too. Note: rstrip() was dropped, as truncating to the first 10 chars already gets rid of the terminating newline (not an issue with the env var either, unless maliciously crafted to break the build... not sure this is a real-world is

[Mesa-dev] [PATCH mesa 2/2] svga: format the version string like the rest of mesa

2017-10-16 Thread Eric Engestrom
All 4 other version strings do it like this. ((Also, double parentheses just look confusing)) Signed-off-by: Eric Engestrom --- src/gallium/drivers/svga/svga_screen.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gall

[Mesa-dev] [Bug 103062] Error starting game FS17

2017-10-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103062 --- Comment #10 from Emil Velikov --- Alexander, I'm struggling to understand what you mean. Compatibility GL Profile is _not_ aimed at old hardware, but at old software. Newly written applications should not use it, without a very compelling r

[Mesa-dev] [PATCH] egl/android: add a note about .swap_buffers_with_damage

2017-10-16 Thread Emil Velikov
From: Emil Velikov Android implements the API and does the native damage handling itself. At the same time it a) does call the vendor's eglSwapBuffersWithDamageKHR b) does not implement eglSetDamageRegionKHR There's something strange happening here. For now simply note about the 'lack' of eglS

[Mesa-dev] [PATCH 07/10] gbm: unify error handling in gbm_dri_bo_import()

2017-10-16 Thread Emil Velikov
From: Emil Velikov Fold the error handling for image creation/duplication in a single place. Effectively providing the same errno across the board and plugging a memory leak in the GBM_BO_IMPORT_WL_BUFFER case. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Emil Velikov --- src/gbm/back

[Mesa-dev] [PATCH 09/10] i915: implement DRIImage::createImageFromRenderbuffer2

2017-10-16 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i915/intel_screen.c | 33 +--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index ba49e90fef

[Mesa-dev] [PATCH 04/10] gbm: handle queryImage() failure for GBM_BO_IMPORT_EGL_IMAGE

2017-10-16 Thread Emil Velikov
From: Emil Velikov The function can fail. Check and teardown accordingly. Fixes: a43d286ef7f ("gbm: Add import from fd") Cc: Kristian Høgsberg Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_dri.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gbm/back

[Mesa-dev] [PATCH 10/10] radeon: implement DRIImage::createImageFromRenderbuffer2

2017-10-16 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/radeon/radeon_screen.c | 37 +++-- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 51a

[Mesa-dev] [PATCH 05/10] gbm: handle queryImage() failure through rest of gbm_dri_bo_import()

2017-10-16 Thread Emil Velikov
From: Emil Velikov Fixes: 6a7dea93fa7 ("dri: Rework planar image interface") Cc: Jakob Bornecrantz Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_dri.c | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gb

[Mesa-dev] [PATCH 06/10] gbm: remove incorrect DRIImage version check in gbm_dri_bo_import()

2017-10-16 Thread Emil Velikov
From: Emil Velikov The version of the extension does not imply success for the queryImage(... WIDTH/HEIGHT ...) calls. With that properly handled (as of last commit), we can drop the check. Fixes: 93ebec87ed4 ("dri: Make query image WIDTH and HEIGHT be version 4") Cc: Jakob Bornecrantz Signed-

[Mesa-dev] [PATCH 08/10] i965: implement DRIImage::createImageFromRenderbuffer2

2017-10-16 Thread Emil Velikov
From: Emil Velikov The new entry point has a way to feedback the error. Thus we no longer need to call _mesa_error() but instead we can pass the correct value. Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i965/intel_screen.c | 31 ++- 1 file changed, 26 inse

[Mesa-dev] [PATCH 03/10] gbm: don't deference validateUsage when it's NULL

2017-10-16 Thread Emil Velikov
From: Emil Velikov The entry-point can be NULL, even if the version advertised is >= 2. Fixes: 221c678329f ("gbm: Validate usage flags in gbm_bo_create_from_egl_image()") Cc: Kristian Høgsberg Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_dri.c | 1 + 1 file changed, 1 insertion(+

[Mesa-dev] [PATCH 01/10] gbm: remove unneeded null check

2017-10-16 Thread Emil Velikov
From: Emil Velikov The presense of DRI_IMAGE is checked further up, at the start of the function gbm_dri_bo_import(). Signed-off-by: Emil Velikov diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 0a4853bf63d..531361a04d9 100644 --- a/src/gbm/backends/dri/gbm_dr

[Mesa-dev] [PATCH 02/10] gbm: don't deference createImageFromFds when it's NULL

2017-10-16 Thread Emil Velikov
From: Emil Velikov Entry-point was introduced with v7 and may be NULL. Check and bail out accordingly. Fixes: a43d286ef7f ("gbm: Add import from fd") Cc: Kristian Høgsberg Signed-off-by: Emil Velikov diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 531361a04d

Re: [Mesa-dev] [PATCH] svga: fix format_conversion_table breakage

2017-10-16 Thread Eric Engestrom
On Monday, 2017-10-16 14:28:57 +, Brian Paul wrote: > On 10/16/2017 04:24 AM, Eric Engestrom wrote: > > On Saturday, 2017-10-14 16:52:29 +, Brian Paul wrote: > > > The new A1B5G5R5_UNORM, X1B5G5R5_UNORM formats were added in the > > > wrong place > > > > Can you explain why this was wrong,

Re: [Mesa-dev] [PATCH] egl/wayland: Support for KHR_partial_update

2017-10-16 Thread Eric Engestrom
On Monday, 2017-10-16 15:37:31 +, Emil Velikov wrote: > On 16 October 2017 at 16:21, Eric Engestrom wrote: > > On Monday, 2017-10-16 14:29:02 +, Emil Velikov wrote: > >> On 13 October 2017 at 19:49, Harish Krupo > >> wrote: > >> > This passes 33/37 deqp tests related to partial_update, 4

[Mesa-dev] [PATCH 1/2] targets/opencl: don't hardcode the icd file install to /etc/...

2017-10-16 Thread Emil Velikov
From: Emil Velikov Use $(sysconfdir) instead of hardcoding /etc. While the OpenCL spec expects the file in /etc, people building their stack can override that, esp. !Linux users. Furthermore this removes a fundamental violation, which results in the system file being overwritten even as one exp

[Mesa-dev] [PATCH 2/2] configure: enable the OpenCL ICD by default

2017-10-16 Thread Emil Velikov
From: Emil Velikov Nearly all the distributions* that build Mesa OpenCL, enable the ICD. Since building a non-ICD driver has the chance of conflicting with existing OpenCL binary (libOpenCL.so). Furthermore, some applications expect the library to provide annotated/versioned symbols. https://li

Re: [Mesa-dev] [PATCH] egl/wayland: Support for KHR_partial_update

2017-10-16 Thread Emil Velikov
On 16 October 2017 at 16:21, Eric Engestrom wrote: > On Monday, 2017-10-16 14:29:02 +, Emil Velikov wrote: >> On 13 October 2017 at 19:49, Harish Krupo wrote: >> > This passes 33/37 deqp tests related to partial_update, 4 are not >> > supported. >> > >> Mildly related: >> Android's .swap_buff

Re: [Mesa-dev] [PATCH v3 00/43] anv: SPV_KHR_16bit_storage/VK_KHR_16bit_storage for gen8+

2017-10-16 Thread Pohjolainen, Topi
On Mon, Oct 16, 2017 at 08:03:41AM -0700, Jason Ekstrand wrote: > FYI: I'm planning to review this some time this week. Probably not today > though. Great, I was hoping you would. I'm just reading out of curiosity and asking random questions. Mostly trying to remind myself how compiler works :) I

Re: [Mesa-dev] [PATCH] egl/wayland: Support for KHR_partial_update

2017-10-16 Thread Eric Engestrom
On Monday, 2017-10-16 14:29:02 +, Emil Velikov wrote: > On 13 October 2017 at 19:49, Harish Krupo wrote: > > This passes 33/37 deqp tests related to partial_update, 4 are not > > supported. > > > Mildly related: > Android's .swap_buffers_with_damage seems to be missing. AFAICT should > be able

Re: [Mesa-dev] [PATCH v3 30/43] i965/fs: Support 16-bit types at load_input and store_output

2017-10-16 Thread Pohjolainen, Topi
On Thu, Oct 12, 2017 at 08:38:19PM +0200, Jose Maria Casanova Crespo wrote: > Enables the support of 16-bit types on load_input and > store_outputs intrinsics intra-stages. > > The approach was based on re-using the 32-bit URB read > and writes between stages, shuffling pairs of 16-bit values into

Re: [Mesa-dev] [PATCH v3 00/43] anv: SPV_KHR_16bit_storage/VK_KHR_16bit_storage for gen8+

2017-10-16 Thread Jason Ekstrand
FYI: I'm planning to review this some time this week. Probably not today though. On Thu, Oct 12, 2017 at 11:37 AM, Jose Maria Casanova Crespo < jmcasan...@igalia.com> wrote: > Hello, > > this is the V3 series for the implementation of the > SPV_KHR_16bit_storage and VK_KHR_16bit_storage extensio

Re: [Mesa-dev] [PATCH 2/2] loader/dri3: Make sure we invalidate a drawable on size change

2017-10-16 Thread Michel Dänzer
On 16/10/17 02:21 PM, Thomas Hellstrom wrote: > > On 10/16/2017 12:53 PM, Thomas Hellstrom wrote: >> Hi, Michel, >> >> On 10/16/2017 12:35 PM, Michel Dänzer wrote: >>> Hi Thomas, >>> >>> On 05/09/17 10:15 AM, Thomas Hellstrom wrote: If we're seeing a drawable size change, in particular after

Re: [Mesa-dev] [PATCH] svga: fix format_conversion_table breakage

2017-10-16 Thread Emil Velikov
On 16 October 2017 at 15:29, Brian Paul wrote: > On 10/16/2017 08:07 AM, Emil Velikov wrote: >> >> On 16 October 2017 at 11:24, Eric Engestrom >> wrote: >>> >>> On Saturday, 2017-10-14 16:52:29 +, Brian Paul wrote: The new A1B5G5R5_UNORM, X1B5G5R5_UNORM formats were added in the >>>

Re: [Mesa-dev] [PATCH v4 0/2] build system: Unify c++11 detection and used [was: configure+mesa/st:check -std=c++11 support and enable tests accordingly]

2017-10-16 Thread Chuck Atkins
Hi Gert, Emil, I think that using the -std=c++11 check should be good, A few things to consider, neither of which is a deal breaker, I just want to make sure they're not forgotten about: 1. -std=c++ will cover many cases, but not all. Many commercial compilers use a different set of opti

Re: [Mesa-dev] [PATCH] egl/wayland: Support for KHR_partial_update

2017-10-16 Thread Emil Velikov
On 13 October 2017 at 19:49, Harish Krupo wrote: > This passes 33/37 deqp tests related to partial_update, 4 are not > supported. > Mildly related: Android's .swap_buffers_with_damage seems to be missing. AFAICT should be able to implement it via droid_set_damage_region? Speaking of which: One co

  1   2   >