[Mesa-dev] [Bug 102809] Rust shadows(?) flash random colours

2017-09-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102809 --- Comment #1 from Tapani Pälli --- could you provide trace file (apitrace) of this? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___

Re: [Mesa-dev] [PATCH] i965: fix build warning on clang

2017-09-17 Thread Tapani Pälli
On 09/15/2017 07:40 PM, Matt Turner wrote: On Thu, Sep 14, 2017 at 12:26 AM, Tapani Pälli wrote: fixes following warning: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') cast is needed to avoid this turning in to another warning on 3

[Mesa-dev] [PATCH] ac/surface: handle S8 on gfx9

2017-09-17 Thread Dave Airlie
From: Dave Airlie If we don't have a depth piece, we don't get a correct swizzle mode and we hit an assert in addrlib. In case of no depth get the preferrred swizzle mode for stencil alone. Signed-off-by: Dave Airlie --- src/amd/common/ac_surface.c | 9 +++-- 1 file changed, 7 insertions(

[Mesa-dev] [PATCH] llvmpipe, gallivm: implement lod queries (LODQ opcode)

2017-09-17 Thread sroland
From: Roland Scheidegger This uses all the existing code to calculate lod values for mip linear filtering. Though we'll have to disable the simplifications (if we know some parts of the lod calculation won't actually matter for filtering purposes due to mip clamps etc.). For better or worse, we'l

[Mesa-dev] [ANNOUNCE] mesa 17.2.1

2017-09-17 Thread Emil Velikov
Mesa 17.2.1 is now available. In this release we have: Multiple fixes, making the GLSL shader cache more robust. The RADV driver has seen a few dozen patches, as a result Vega support was re-enabled. The i965, radeonsi, nvc0 and freedreno have received a few small fixes each. Whereas on EGL sid

Re: [Mesa-dev] [PATCH] anv: Implement VK_KHR_image_format_list

2017-09-17 Thread Lionel Landwerlin
On 17/09/17 16:02, Jason Ekstrand wrote: On September 17, 2017 3:57:39 AM Lionel Landwerlin wrote: On 15/09/17 17:18, Jason Ekstrand wrote: ---   src/intel/vulkan/anv_extensions.py |  1 +   src/intel/vulkan/anv_image.c   | 37 +++--   2 files changed, 36

Re: [Mesa-dev] [PATCH] radv: Add VK_KHR_bind_memory2 support.

2017-09-17 Thread Dave Airlie
On 18 September 2017 at 01:00, Jason Ekstrand wrote: > Reviewed: Jason Ekstrand Reviewed-by: Dave Airlie > > > > On September 17, 2017 5:00:01 AM Bas Nieuwenhuizen > wrote: > >> Nothing too exciting, just adding the possibility for a pNext pointer, >> and batch binding. Our binding is pretty

Re: [Mesa-dev] [PATCH 3/3] radv: Don't use a virtual function for getting the buffer virtual address.

2017-09-17 Thread Dave Airlie
On 17 September 2017 at 20:59, Bas Nieuwenhuizen wrote: > We are really not going to use a winsys which does not need to store > the va, so might as well store it in a standard field. > > Not sure this helps perf much though, as most of the cost is in the > cache miss accessing the bo anyway, whic

[Mesa-dev] [Bug 102573] fails to build on armel

2017-09-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102573 --- Comment #5 from Shmerl --- (In reply to Grazvydas Ignotas from comment #3) > It takes ~8h to build mesa configured with just swrast, and qemu can't make > use of multiple cores when emulating ARM, so not always a good option. Apparently, Qe

[Mesa-dev] [PATCH v2 4/9] configure.ac: Add tizen to supported platforms

2017-09-17 Thread Gwan-gyeong Mun
It checks tpl-egl/libtbm/libtdm packages and defines HAVE_PLATFORM_TIZEN. This feature is enabled by the config option '--with-platforms=tizen' Signed-off-by: Mun Gwan-gyeong --- configure.ac | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac i

[Mesa-dev] [PATCH v2 6/9] egl/tizen: add tizen specific implementations for BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL

2017-09-17 Thread Gwan-gyeong Mun
Tizen platform (actually WL_TBM protocol) internally processes similiar actions such as mesa's BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL. So the platform_tizen.c needs to implemment BindWaylandDisplayWL, UnbindWaylandDisplayWL and QueryWaylandBufferWL apart from mesa's. -

[Mesa-dev] [PATCH v2 9/9] egl/tizen: add support of dri_image_loader

2017-09-17 Thread Gwan-gyeong Mun
It adds support of dri_image_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android's. It adds dri_image_back/dri_image_back member variables to dri_egl_surface for a management of back/front buffers. Signed-off-by: Mun Gwan-gyeong ---

[Mesa-dev] [PATCH v2 8/9] egl/tizen: add EGL_NATIVE_SURFACE_TIZEN target of eglCreateImageKHR()

2017-09-17 Thread Gwan-gyeong Mun
It adds TIZEN_image_native_surface extension string to _EGLExtensions. And it adds a routine of creating an EGLImage from a tbm_surface. - section overview from https://www.khronos.org/registry/EGL/extensions/TIZEN/EGL_TIZEN_image_native_surface.txt "Tizen Buffer Manager (TBM) is a use

[Mesa-dev] [PATCH v2 3/9] egl/tizen: add support of the swrast related features for tizen platform

2017-09-17 Thread Gwan-gyeong Mun
It implements the egl swrast related features for tizen platform on platform_tizen.c It works with libtpl-egl (Tizen Porting Layer for egl) and libtbm (Tizen Buffer Manager) where back buffers of windows are backed by GEM objects. In Tizen a native window has a queue (tbm_surface_queue) of back

[Mesa-dev] [PATCH v2 5/9] egl/tizen: add support of dri2_loader

2017-09-17 Thread Gwan-gyeong Mun
It adds support of dri2_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android. And it implements a query buffer age extesion for tizen and turn on swap_buffers_with_damage extension. - it add color buffer related member variables to dri_

[Mesa-dev] [PATCH v2 7/9] egl/tizen: add tizen specific implementation for EGL_WAYLAND_BUFFER_WL target of eglCreateImageKHR()

2017-09-17 Thread Gwan-gyeong Mun
In the tizen platform, a wl_buffer wraps a tbm_surface. The tbm_surface contains gem name or prime fd. For creating dri_image, we need to extract the tbm_surface from the wl_buffer and we use tpl_display_get_buffer_from_native_pixmap() api for that. Signed-off-by: Mun Gwan-gyeong --- src/egl/dri

[Mesa-dev] [PATCH v2 2/9] egl/dri2: Add some member variables for tizen platform on dri2_egl_display and dri2_egl_surface

2017-09-17 Thread Gwan-gyeong Mun
It adds some member variables for tizen platform on dri2_egl_display and dri2_egl_surface. - tpl_display stores a object which encapsulates native disply (wl_display, gbm_device, tbm_bufmgr) for tizen platfom. - native_win stores native window (wl_surface, gbm_surface, tbm_surface_queue_h

[Mesa-dev] [PATCH v2 1/9] egl: add a treatment of tizen platform on egl display

2017-09-17 Thread Gwan-gyeong Mun
It adds a _EGL_PLATFORM_TIZEN enum value to _EGLPlatformType for tizen platform. It adds a detecting routine of tizen platform to _eglNativePlatformDetectNativeDisplay() and _eglGetNativePlatform(). - As tizen platform internally distinguishes native displays of drm/gbm and wayland client,

[Mesa-dev] [PATCH v2 0/9] Introduce supporting of Tizen to mesa's egl platform

2017-09-17 Thread Gwan-gyeong Mun
Hi, these commit series modified some items from previous version. 1. patches are seperated by feature implementation. 2. remove unclearly relevant pbuffer surface-creation code. 3. refactored for removing duplicated codes. 4. rebased for lastest code base. Gwan-gyeong Mun (9): egl: add a tre

[Mesa-dev] [PATCH 2/2] st/va: Implement vaExportSurfaceHandle()

2017-09-17 Thread Mark Thompson
This is a new interface in libva2 to support wider use-cases of passing surfaces to external APIs. In particular, this allows export of NV12 and P010 surfaces. Signed-off-by: Mark Thompson --- This implements a new interface I am proposing for libva2, which will allow export to work properly wi

[Mesa-dev] [PATCH 1/2] st/dri: Add definitions to allow importing 16-bit surfaces

2017-09-17 Thread Mark Thompson
Necessary to support P010/P016 surfaces for video. Signed-off-by: Mark Thompson --- src/gallium/state_trackers/dri/dri2.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index 1e8bb48104..276f6e0e0

Re: [Mesa-dev] [PATCH] anv: Implement VK_KHR_image_format_list

2017-09-17 Thread Jason Ekstrand
On September 17, 2017 3:57:39 AM Lionel Landwerlin wrote: On 15/09/17 17:18, Jason Ekstrand wrote: --- src/intel/vulkan/anv_extensions.py | 1 + src/intel/vulkan/anv_image.c | 37 +++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/

Re: [Mesa-dev] [PATCH] radv: Add VK_KHR_bind_memory2 support.

2017-09-17 Thread Jason Ekstrand
Reviewed: Jason Ekstrand On September 17, 2017 5:00:01 AM Bas Nieuwenhuizen wrote: Nothing too exciting, just adding the possibility for a pNext pointer, and batch binding. Our binding is pretty much trivial. It also adds VK_IMAGE_CREATE_ALIAS_BIT_KHR, but since we store no state in radv_

Re: [Mesa-dev] [PATCH 2/2] i965: Warn for GTT fallbacks when mapping the batch/state buffers.

2017-09-17 Thread Kenneth Graunke
On Sunday, September 17, 2017 1:58:16 AM PDT Chris Wilson wrote: > Quoting Kenneth Graunke (2017-09-16 09:31:27) > > This shouldn't really happen in practice, but I hit it a couple of times > > when running a driver with a bad memory leak. We may as well hook up > > the warning, because if it ever

Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-17 Thread Emil Velikov
On 15 September 2017 at 23:36, Jason Ekstrand wrote: >> --- a/src/intel/vulkan/anv_private.h >> +++ b/src/intel/vulkan/anv_private.h >> @@ -2162,12 +2162,22 @@ anv_pipeline_compile_cs(struct anv_pipeline >> *pipeline, >> struct anv_format_plane { >> enum isl_format isl_format:16; >> stru

[Mesa-dev] [PATCH] radv: Add VK_KHR_bind_memory2 support.

2017-09-17 Thread Bas Nieuwenhuizen
Nothing too exciting, just adding the possibility for a pNext pointer, and batch binding. Our binding is pretty much trivial. It also adds VK_IMAGE_CREATE_ALIAS_BIT_KHR, but since we store no state in radv_image, I don't think we have to do anything there. --- src/amd/vulkan/radv_device.c

[Mesa-dev] [PATCH 2/3] radv: Only enter the immutable samplers init loop when we have some.

2017-09-17 Thread Bas Nieuwenhuizen
--- src/amd/vulkan/radv_descriptor_set.c | 28 src/amd/vulkan/radv_descriptor_set.h | 2 ++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/amd/vulkan/radv_descriptor_set.c b/src/amd/vulkan/radv_descriptor_set.c index 314ab5a96d0..5b9cfe66331 100

[Mesa-dev] [PATCH 1/3] radv: Use for_each_bit in the descriptor set flush.

2017-09-17 Thread Bas Nieuwenhuizen
Since most games use only a few, iterating through all of them is a waste. Simplifies the code too. --- src/amd/vulkan/radv_cmd_buffer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 4ba552ebcbc..e0a

[Mesa-dev] [PATCH 3/3] radv: Don't use a virtual function for getting the buffer virtual address.

2017-09-17 Thread Bas Nieuwenhuizen
We are really not going to use a winsys which does not need to store the va, so might as well store it in a standard field. Not sure this helps perf much though, as most of the cost is in the cache miss accessing the bo anyway, which we stil need to do. --- src/amd/vulkan/radv_cmd_buffer.c

Re: [Mesa-dev] [PATCH] anv: Implement VK_KHR_image_format_list

2017-09-17 Thread Lionel Landwerlin
On 15/09/17 17:18, Jason Ekstrand wrote: --- src/intel/vulkan/anv_extensions.py | 1 + src/intel/vulkan/anv_image.c | 37 +++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_extensions.py b/src/intel/vulkan/anv_ext

[Mesa-dev] [Bug 93551] Divinity: Original Sin Enhanced Edition(Native) crash on start

2017-09-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93551 --- Comment #46 from a.kralovi...@gmail.com --- Step by step guide for GOG version: 1) Download the source for the LD_PRELOAD shim 2) Compile it using the command given inside the just downloaded patch file. This will give you a divos-hack.so file

Re: [Mesa-dev] Vulkan extensions

2017-09-17 Thread Mike Lothian
Maybe you could use the hardware feature list and have an extra option of unsupported, for the hardware that cannot do that feature and not include that in the percentages On Fri, 15 Sep 2017, 12:19 am Bas Nieuwenhuizen wrote: > On Fri, Sep 15, 2017 at 1:18 AM, Dave Airlie wrote: > > On 15 Sept

Re: [Mesa-dev] [PATCH] anv: Implement VK_KHR_bind_memory2

2017-09-17 Thread Lionel Landwerlin
I'll rebase my stuff on top of this. Reviewed-by: Lionel Landwerlin On 15/09/17 20:10, Jason Ekstrand wrote: --- src/intel/vulkan/anv_device.c | 41 +--- src/intel/vulkan/anv_extensions.py | 1 + src/intel/vulkan/anv_image.c | 43

Re: [Mesa-dev] [PATCH 11/15] anv: add new formats KHR_sampler_ycbcr_conversion

2017-09-17 Thread Lionel Landwerlin
On 15/09/17 23:36, Jason Ekstrand wrote:  struct anv_format_plane {     enum isl_format isl_format:16;     struct isl_swizzle swizzle; + +   /* Whether this plane contains chroma channels */ +   bool has_chroma; + +   /* For downscaling of YUV planes */ +   ui

Re: [Mesa-dev] [PATCH] gbm: Add gbm_device_get_format_modifier_plane_count to test

2017-09-17 Thread Andres Gomez
This is: Reviewed-by: Andres Gomez ... and pushed in a couple of minutes. Thanks for the patch, Gert ☺ On Sun, 2017-09-17 at 00:12 +0100, Eric Engestrom wrote: > On Saturday, 2017-09-16 16:04:15 +, Gert Wollny wrote: > > Adding gbm_device_get_format_modifier_plane_count made the > > test

Re: [Mesa-dev] [PATCH mesa] docs: update sourcetree following omx rename

2017-09-17 Thread Andres Gomez
This is: Reviewed-by: Andres Gomez On Sat, 2017-09-16 at 23:58 +0100, Eric Engestrom wrote: > Fixes: 6a8aa11c207b99920b93 "st/omx_bellagio: Rename state tracker and option" > Cc: Gurkirpal Singh > Signed-off-by: Eric Engestrom > --- > docs/sourcetree.html | 2 +- > 1 file changed, 1 insertion

Re: [Mesa-dev] [PATCH 2/2] i965: Warn for GTT fallbacks when mapping the batch/state buffers.

2017-09-17 Thread Chris Wilson
Quoting Kenneth Graunke (2017-09-16 09:31:27) > This shouldn't really happen in practice, but I hit it a couple of times > when running a driver with a bad memory leak. We may as well hook up > the warning, because if it ever triggers, we'll know something is wrong. Out of curiosity, the GTT mmap

Re: [Mesa-dev] [PATCH 1/2] i965: Plumb brw through to intel_batchbuffer_reset().

2017-09-17 Thread Chris Wilson
Quoting Kenneth Graunke (2017-09-16 09:31:26) > We'll want to pass this to brw_bo_map in a moment. Reviewed-by: Chris Wilson -Chris ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/7] clover: add missing include to compat.h

2017-09-17 Thread Gert Wollny
Compiles fine with this patch, Tested-by: Gert Wollny Am Samstag, den 16.09.2017, 22:05 -0400 schrieb Jan Vesely: > Fixes build issues with llvm-3.6 > Fixes: 3115687f9b9830417c408228db2bc679e346bba6 (clover: Fix build > after > LLVM r313390) > > Signed-off-by: Jan Vesely > --- >  src/galli

[Mesa-dev] [PATCH v2] configure+mesa/st: check -std=c++11 support and enable tests accordingly

2017-09-17 Thread Gert Wollny
The tests in mesa/st/tests require C++11. Check whether the compiler supports the -std=c++11 flag and if so, enable the tests. Otherwise skip compiling and running the tests altogether. Fixes: 7be6d8fe12 ("mesa/st: glsl_to_tgsi: add tests for the new temporary lifetime tracker") Bugzilla: https:/