[Mesa-dev] [PATCH] radeonsi/nir: add depth layout to scan pass

2018-02-09 Thread Timothy Arceri
--- src/gallium/drivers/radeonsi/si_shader_nir.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index d42ed5edcc..22787baec3 100644 ---

[Mesa-dev] [PATCH 02/11] mesa/st/glsl_to_tgsi: rename lifetime to register_live_range

2018-02-09 Thread Gert Wollny
On one hand "live range" is the term used in the literature, and on the other hand a distinction is needed from the array live ranges that will be introduced later. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 16 ++---

[Mesa-dev] [PATCH 04/11] mesa/st/glsl_to_tgsi: Add class to hold array information

2018-02-09 Thread Gert Wollny
Implememt a class that holds the information required by the array merging and interleave algorithm, namely array ID, live range, access mask, accessed components, and the number of accessed components. Signed-off-by: Gert Wollny ---

[Mesa-dev] [PATCH 00/11] TGSI: split, merge and interleave arrays

2018-02-09 Thread Gert Wollny
Dear all, this series of patches introduces array splitting, merging, and interleaving. Patch 1: Split arrays that are only accessed directly: I posted a first version off the the array splitting in patch 1 some time ago. Eric Anholt pointed out that this might be done in

[Mesa-dev] [PATCH 03/11] mesa/st: Add helper classes for array merging and interleaving

2018-02-09 Thread Gert Wollny
This class implements the live range merge and component interleave remapping logic. Signed-off-by: Gert Wollny --- src/mesa/Makefile.sources | 2 + src/mesa/meson.build | 2 +

Re: [Mesa-dev] [PATCH] st/mesa: Initialize tex_target otherwise it might be used uninitialized.

2018-02-09 Thread Michel Dänzer
On 2018-02-09 08:54 AM, Gert Wollny wrote: > The initialization of tex_target was dropped and since the value > is used uninitialized (e.g. with Unreal Editor), an assertion > fires in tgsi/tgsi_util.c:502: tgsi_util_get_texture_coord_dim: > Assertion `!"unknown texture target"' failed. > >

Re: [Mesa-dev] [PATCH] i965: prevent potentially null pointer access

2018-02-09 Thread Alejandro Piñeiro
Is there any reason to not add a fmt check before, so we would prevent calling isl_drm_modifier_get_info if not needed? In any case, that's a nitpick. Just in the case there is a reason, this patch: Reviewed-by: Alejandro Piñeiro On 09/02/18 10:57, Lionel Landwerlin

Re: [Mesa-dev] [PATCH 1/4] r600: add PIPE_SHADER_IR_NATIVE to supported shaders for cs

2018-02-09 Thread Pierre Moreau
On 2018-02-09 — 12:06, Timothy Arceri wrote: > --- > src/gallium/drivers/r600/r600_pipe.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/src/gallium/drivers/r600/r600_pipe.c > b/src/gallium/drivers/r600/r600_pipe.c > index 6c021e568d..719ab349ef 100644 >

Re: [Mesa-dev] [PATCH] nir: remove the abs call in is_neg_power_of_two

2018-02-09 Thread Gustaw Smolarczyk
2018-02-09 0:16 GMT+01:00 Matt Turner : > On Mon, Feb 5, 2018 at 7:16 PM, Vlad Golovkin > wrote: > > val->i32[swizzle[i]] is guaranteed to have non-positive value before the > > __is_power_of_two call, so unary minus is equivalent to abs in this

Re: [Mesa-dev] [PATCH 1/4] r600: add PIPE_SHADER_IR_NATIVE to supported shaders for cs

2018-02-09 Thread Timothy Arceri
On 09/02/18 21:36, Pierre Moreau wrote: On 2018-02-09 — 12:06, Timothy Arceri wrote: --- src/gallium/drivers/r600/r600_pipe.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index

[Mesa-dev] [Bug 104820] White screen in SDDM after upgrade to latest padoka

2018-02-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104820 krzys...@cybulski.info changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: [Mesa-dev] [PATCH 1/2] spirv: Add SpvCapabilityShaderViewportIndexLayerEXT

2018-02-09 Thread Iago Toral
On Fri, 2018-02-09 at 09:08 +0100, Iago Toral wrote: > On Sat, 2018-01-27 at 18:58 -0800, Caio Marcelo de Oliveira Filho > wrote: > > --- > > > > In the last chunk of the diff, should accepting stage of vertex > > shader > > should be conditioned on shader_viewport_index_layer? > > I was going

[Mesa-dev] GBM, KMS/DRM, triple buffering

2018-02-09 Thread Carlos Rafael Giani
I want to implement triple buffering instead of double buffering for a program that uses EGL on GBM on a KMS-enabled platform. So far, I used kmscube as an example. However, I do not see where I can specify that I want to have 3 buffers allocated instead of 2. From what I saw, I could try to

[Mesa-dev] [PATCH demos 2/4] glxinfo/wglinfo: Fix typo

2018-02-09 Thread Andreas Boll
Fixes: 6eaf6ab3 "glxinfo/wglinfo: query/print more GL limits" Signed-off-by: Andreas Boll --- src/xdemos/glinfo_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c index

[Mesa-dev] [PATCH demos 1/4] egl: Update .gitignore

2018-02-09 Thread Andreas Boll
There are no *_screen binaries anymore. Fixes: 66136b95 "egl: Build some OpenGL demos for Wayland" Signed-off-by: Andreas Boll --- src/egl/opengl/.gitignore| 2 -- src/egl/opengles2/.gitignore | 1 - 2 files changed, 3 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] ac: pass struct ac_llvm_context to emit_membar()

2018-02-09 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 02/09/2018 12:39 AM, Timothy Arceri wrote: Fixes segfault in piglit test: ./bin/arb_shader_image_load_store-shader-mem-barrier --quick -auto -fbo --- src/amd/common/ac_nir_to_llvm.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[Mesa-dev] [PATCH] i965: perf: ensure reading config IDs from sysfs isn't interrupted

2018-02-09 Thread Lionel Landwerlin
Fixes: 458468c136e "i965: Expose OA counters via INTEL_performance_query" Signed-off-by: Lionel Landwerlin Cc: "18.0" --- src/mesa/drivers/dri/i965/brw_performance_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[Mesa-dev] [PATCH 05/11] mesa/st/glsl_to_tgsi: Add array merge logic

2018-02-09 Thread Gert Wollny
Add the functions that evaluate array live range merging and array interleaving based on the array information. Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 385 - .../state_tracker/st_glsl_to_tgsi_array_merge.h

[Mesa-dev] [PATCH 01/11] mesa/st: glsl_to_tgsi: Split arrays who's elements are only accessed directly

2018-02-09 Thread Gert Wollny
Array who's elements are only accessed directly are replaced by the according number of temporary registers. By doing so the otherwise reserved register range becomes subject to further optimizations like copy propagation and register merging. Thanks to the resulting reduced register pressure

[Mesa-dev] [PATCH 10/11] mesa/st/glsl_to_tgsi: add array life range evaluation into tracking code

2018-02-09 Thread Gert Wollny
This adds the array live range tracking harvesting the already implemented live range tracking for temporary registers. With this patch the array live range tracking is not yet exposed, and since some tests that track reladdr access arrays, some array live range tracker instances need to be

[Mesa-dev] [PATCH 08/11] mesa/st/glsl_to_tgsi: move evaluation of read mask up in the call hierarchy

2018-02-09 Thread Gert Wollny
In preparation of the array live range tracking the evaluation of the read mask is moved out the register live range tracking to the enclosing call of the generalized read access tracking. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp

[Mesa-dev] [PATCH 11/11] mesa/st/glsl_to_tgsi: Expose array live range tracking and merging

2018-02-09 Thread Gert Wollny
Rename get_temp_registers_required_live_ranges to get_required_live_ranges and change its interface to also accomodate the live range tracking for arrays. Remove the placeholder arrays in this function and tie the array merging. This makes the register spilling in piglit

[Mesa-dev] [PATCH 09/11] mesa/st/glsl_to_tgsi: add class for array access tracking

2018-02-09 Thread Gert Wollny
Add a class implementing the (rather simplified) live range evaluation for arrays. Remark: Since the class is local and not yet used, the compiler will emit some warnings about unused functions. Signed-off-by: Gert Wollny ---

[Mesa-dev] [PATCH 07/11] mesa/st/glsl_to_tgsi: refactor access_record and its use

2018-02-09 Thread Gert Wollny
* rename access_record to register_merge_record because the name is more appropriate and we need to distinguish from the array access introduced later. * rename member variable acc to temp_acc * make comparison operator in register_merge_record const Signed-off-by: Gert Wollny

[Mesa-dev] [PATCH 06/11] mesa/st/tests: Add unit tests for array merge helper classes.

2018-02-09 Thread Gert Wollny
Signed-off-by: Gert Wollny --- src/mesa/state_tracker/tests/Makefile.am | 20 +- src/mesa/state_tracker/tests/st_tests_common.h | 7 +- .../tests/test_glsl_to_tgsi_array_merge.cpp| 296 + 3 files changed, 317 insertions(+), 6

Re: [Mesa-dev] [PATCH 2/4] clover: use PIPE_SHADER_CAP_SUPPORTED_IRS to discover IR

2018-02-09 Thread Pierre Moreau
On 2018-02-09 — 12:06, Timothy Arceri wrote: > PIPE_SHADER_CAP_PREFERRED_IR was conflicting with PIPE_SHADER_IR_NIR > for compute shaders, so we let clover pick the one it wants to use. > --- > src/gallium/state_trackers/clover/core/device.cpp | 11 +-- > 1 file changed, 9 insertions(+),

Re: [Mesa-dev] [PATCH 0/8 v2] A few clover fixes for both CTS and eventual 1.2 support

2018-02-09 Thread Pierre Moreau
Hello Aaron, Sorry for not having reviewed the updated series… I will have a look at it over the weekend. If I understand correctly, patches 1 and 2 have been squashed together and upstreamed already, while patches 3 through 8 have not been merged yet. Is this series the latest version, or do you

Re: [Mesa-dev] [PATCH] loader_dri3/glx/egl: Reinstate the loader_dri3_vtable get_dri_screen callback

2018-02-09 Thread Timo Aaltonen
Thomas Hellstrom kirjoitti 09.02.2018 klo 10:37: > Removing this callback caused rendering corruption in some multi-screen cases, > so it is reinstated but without the drawable argument which was never used > by implementations and was confusing since the drawable could have been > created with

[Mesa-dev] [PATCH] mesa: Remove FLUSH_VERTICES from VAO state changes.

2018-02-09 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi all, An other splitout VAO handling improvement patch that I wanted to feed seperately. The change may be subject to discussion and following patches depend on the call signatures of some of the mesa internal vao methods that in turn depend on

Re: [Mesa-dev] [PATCH 00/18] Wayland/GBM format cleanups and 10bpc BGR

2018-02-09 Thread Daniel Stone
Hi, On 8 February 2018 at 22:47, Emil Velikov wrote: > On 8 February 2018 at 14:05, Daniel Stone wrote: >> When Ilia asked for suggestions on where to look to add 10bpc BGR >> support to the GBM and Wayland EGL backends, I had a quick look; the

Re: [Mesa-dev] GBM, KMS/DRM, triple buffering

2018-02-09 Thread Carlos Rafael Giani
Hi Daniel, thanks, I got it to work - almost. I am running this on the i.MX6 with etnaviv. I do get some flickering, however. To test if something is wrong with the page flipping, I call drmGetCap() with DRM_CAP_ASYNC_PAGE_FLIP , and it returns me 0, indicating that async page flipping is

Re: [Mesa-dev] [PATCH 0/8 v2] A few clover fixes for both CTS and eventual 1.2 support

2018-02-09 Thread Pierre Moreau
On 2018-02-09 — 11:50, Aaron Watry wrote: > No worries. I've been rebasing this series every time I've pulled > mesa for the last few months, and this week is the first time I've had > any real conflicts that need addressing. I'll see if I can find some > time to address your comments and

Re: [Mesa-dev] [PATCH 0/8 v2] A few clover fixes for both CTS and eventual 1.2 support

2018-02-09 Thread Aaron Watry
No worries. I've been rebasing this series every time I've pulled mesa for the last few months, and this week is the first time I've had any real conflicts that need addressing. I'll see if I can find some time to address your comments and re-organize the commits as you suggested. Jan also had

Re: [Mesa-dev] [PATCH demos 3/4] demos: Add missing binaries to .gitignore

2018-02-09 Thread Brian Paul
Reviewed-by: Brian Paul On Fri, Feb 9, 2018 at 2:09 AM, Andreas Boll wrote: > Signed-off-by: Andreas Boll > --- > src/perf/.gitignore | 1 + > src/tests/.gitignore | 1 + > 2 files changed, 2 insertions(+) > > diff

Re: [Mesa-dev] [PATCH] st/mesa: Initialize tex_target otherwise it might be used uninitialized.

2018-02-09 Thread Brian Paul
On Fri, Feb 9, 2018 at 3:10 AM, Michel Dänzer wrote: > On 2018-02-09 08:54 AM, Gert Wollny wrote: > > The initialization of tex_target was dropped and since the value > > is used uninitialized (e.g. with Unreal Editor), an assertion > > fires in tgsi/tgsi_util.c:502:

Re: [Mesa-dev] [PATCH 01/18] egl/wayland: Fix ARGB/XRGB transposition in config map

2018-02-09 Thread Daniel Stone
Hi Eric, On 8 February 2018 at 18:40, Eric Engestrom wrote: > On February 8, 2018 2:06:23 PM UTC, Daniel Stone > wrote: >> When 0b2b7191214eb moved from an if tree to a struct to map between >> wl_drm formats and EGLConfigs, it transposed the mapping

Re: [Mesa-dev] [PATCH demos 2/4] glxinfo/wglinfo: Fix typo

2018-02-09 Thread Brian Paul
On Fri, Feb 9, 2018 at 2:08 AM, Andreas Boll wrote: > Fixes: 6eaf6ab3 "glxinfo/wglinfo: query/print more GL limits" > Signed-off-by: Andreas Boll > --- > src/xdemos/glinfo_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [Mesa-dev] [PATCH 00/18] ac/nir: cleanups and remove backlink to nir_to_llvm_context

2018-02-09 Thread Bas Nieuwenhuizen
Awesome! Reviewed-by: Bas Nieuwenhuizen On Fri, Feb 9, 2018 at 1:54 PM, Samuel Pitoiset wrote: > Hi, > > This series removes the backlink to nir_to_llvm_context in ac_nir_context > by moving some code to the ABI. > > We should also rename

Re: [Mesa-dev] GBM, KMS/DRM, triple buffering

2018-02-09 Thread Daniel Stone
Hi Carlos, On 9 February 2018 at 08:33, Carlos Rafael Giani wrote: > I want to implement triple buffering instead of double buffering for a > program that uses EGL on GBM on a KMS-enabled platform. So far, I used > kmscube as an example. > > However, I do not see where

Re: [Mesa-dev] [PATCH 10/13] mesa, glsl, nir: reduce gl_state_index size to 2 bytes

2018-02-09 Thread Marek Olšák
On Fri, Feb 9, 2018 at 3:01 AM, Brian Paul wrote: > Again, I can't research this right now, but what values in the > gl_state_index array are greater than 255? Perhaps you can add a comment > about that. And if that's not the case, gl_state_index8? I don't remember

Re: [Mesa-dev] [PATCH demos 1/4] egl: Update .gitignore

2018-02-09 Thread Brian Paul
Reviewed-by: Brian Paul On Fri, Feb 9, 2018 at 2:08 AM, Andreas Boll wrote: > There are no *_screen binaries anymore. > > Fixes: 66136b95 "egl: Build some OpenGL demos for Wayland" > Signed-off-by: Andreas Boll > ---

Re: [Mesa-dev] [PATCH 12/13] mesa: reduce the size of gl_texture_image

2018-02-09 Thread Marek Olšák
On Fri, Feb 9, 2018 at 2:56 AM, Brian Paul wrote: > On Thu, Feb 8, 2018 at 6:18 PM, Marek Olšák wrote: >> >> From: Marek Olšák >> >> 80 -> 40 bytes. >> --- >> src/mesa/main/mtypes.h | 47 >>

Re: [Mesa-dev] [PATCH 05/18] egl/wayland: Add format enums to visual map

2018-02-09 Thread Daniel Stone
Hi Emil, On 8 February 2018 at 21:56, Emil Velikov wrote: > On 8 February 2018 at 14:05, Daniel Stone wrote: >> Extend the visual map from only containing names and bitmasks, to also >> carrying the three format enums we need. These are the

Re: [Mesa-dev] [PATCH v2 4/8] radeon/uvd:add uvd hevc enc hw ib implementation

2018-02-09 Thread Boyuan Zhang
On 2018-02-08 05:13 PM, Mark Thompson wrote: On 06/02/18 20:05, James Zhu wrote: Implement required IBs for UVD HEVC encode. Signed-off-by: James Zhu --- src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c | 1115 +++ 1 file changed, 1115 insertions(+)

Re: [Mesa-dev] [PATCH v2 5/8] radeon/uvd:add uvd hevc enc functions

2018-02-09 Thread James Zhu
Hi Mark, thanks for point them out. [PATCH v3 3/8] / [PATCH v3 4/8] / [PATCH v3 5/8] update according. James. On 2018-02-08 05:23 PM, Mark Thompson wrote: On 06/02/18 20:05, James Zhu wrote: Implement UVD hevc encode functions Signed-off-by: James Zhu ---

[Mesa-dev] [PATCH v3 3/8] radeon/uvd:add uvd hevc enc hw interface header

2018-02-09 Thread James Zhu
Add hevc encode hardware interface for UVD Signed-off-by: James Zhu --- src/gallium/drivers/radeon/radeon_uvd_enc.h | 471 1 file changed, 471 insertions(+) create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc.h diff --git

[Mesa-dev] [PATCH 15/16] RFC: vulkan/wsi: Add support for DRI3 v1.1

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone Adds support for multiple planes and buffer modifiers. v4: Rename "has_dri3_v1_1" to "has_dri3_modifiers" --- src/vulkan/wsi/wsi_common_x11.c | 180 1 file changed, 163 insertions(+), 17 deletions(-) diff --git

[Mesa-dev] [PATCH 13/16] anv/image: Add support for modifiers for WSI

2018-02-09 Thread Jason Ekstrand
This adds support for the modifiers portion of the WSI "extension". --- src/intel/vulkan/anv_formats.c | 39 ++ src/intel/vulkan/anv_image.c | 93 +- src/intel/vulkan/anv_private.h | 6 +++ src/intel/vulkan/anv_wsi.c | 24 +--

[Mesa-dev] [PATCH 16/16] vulkan/wsi: Return VK_SUBOPTIMAL_KHR for X11

2018-02-09 Thread Jason Ekstrand
From: Louis-Francis Ratté-Boulianne When it is detected that a window could have been flipped but has been copied because of suboptimal format/modifier. The Vulkan client should then re-create the swapchain. Signed-off-by: Louis-Francis Ratté-Boulianne

[Mesa-dev] [PATCH 12/16] anv/image: Separate modifiers from legacy scanout

2018-02-09 Thread Jason Ekstrand
For a bit there, we had a bug in i965 where it ignored the tiling of the modifier and used the one from the BO instead. At one point, we though this was best fixed by setting a tiling from Vulkan. However, we've decided that i965 was just doing the wrong thing and have fixed it as of

[Mesa-dev] [PATCH 14/16] vulkan/wsi/wayland: Add support for zwp_dmabuf

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone zwp_linux_dmabuf_v1 lets us use multi-planar images and buffer modifiers. Signed-off-by: Daniel Stone --- src/vulkan/Makefile.am | 10 +++ src/vulkan/Makefile.sources | 4 +-

[Mesa-dev] [PATCH v3 4/8] radeon/uvd:add uvd hevc enc hw ib implementation

2018-02-09 Thread James Zhu
Implement required IBs for UVD HEVC encode. Signed-off-by: James Zhu --- src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c | 1115 +++ 1 file changed, 1115 insertions(+) create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc_1_1.c diff --git

[Mesa-dev] [PATCH v3 5/8] radeon/uvd:add uvd hevc enc functions

2018-02-09 Thread James Zhu
Implement UVD hevc encode functions Signed-off-by: James Zhu --- src/gallium/drivers/radeon/radeon_uvd_enc.c | 381 1 file changed, 381 insertions(+) create mode 100644 src/gallium/drivers/radeon/radeon_uvd_enc.c diff --git

[Mesa-dev] [PATCH 05/16] i965: Implement EGL_EXT_image_implicit_sync_control

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone Reviewed-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_screen.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c

[Mesa-dev] [PATCH 08/16] egl/x11: Re-allocate buffers if format is suboptimal

2018-02-09 Thread Jason Ekstrand
From: Louis-Francis Ratté-Boulianne If PresentCompleteNotify event says the pixmap was presented with mode PresentCompleteModeSuboptimalCopy, it means the pixmap could possibly have been flipped instead if allocated with a different format/modifier. Signed-off-by:

[Mesa-dev] [PATCH 07/16] RFC: egl/x11: Support DRI3 v1.1

2018-02-09 Thread Jason Ekstrand
From: Louis-Francis Ratté-Boulianne Add support for DRI3 v1.1, which allows pixmaps to be backed by multi-planar buffers, or those with format modifiers. This is both for allocating render buffers, as well as EGLImage imports from a native pixmap (EGL_NATIVE_PIXMAP_KHR).

[Mesa-dev] [PATCH 06/16] dri: Add createImageWithModifiers2 to DRIimageExtension

2018-02-09 Thread Jason Ekstrand
From: Louis-Francis Ratté-Boulianne It does the same as createImagewithModifiers but allow multiple modifiers set to be given. The modifier used to create the image should be selected from the first tranche if possible. If not, then the subsequent tranches should be used.

[Mesa-dev] [PATCH 00/16] Modifiers for EGL, GLX, and Vulkan WSI on Intel

2018-02-09 Thread Jason Ekstrand
This patch series is getting seriously confusing when it comes to authorship. :-) I've rebased on master and I think I have most of the i965 and anv bits working. The only thing missing from this series is a 6-patch series for i965 to fix texture_from_pixmap for modifiers:

[Mesa-dev] [PATCH 03/16] egl: Add EGL_EXT_image_implicit_sync_control

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone Signed-off-by: Daniel Stone --- src/egl/main/eglapi.c | 1 + src/egl/main/egldisplay.h | 1 + src/egl/main/eglimage.c | 26 ++ src/egl/main/eglimage.h | 3 +++ 4 files changed, 31 insertions(+)

[Mesa-dev] [PATCH 04/16] dri: Add suppressImplicitSync to DRIimageExtension

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone Provide a hook to inform the driver that implicit synchronization should be suppressed. Reviewed-by: Jason Ekstrand --- include/GL/internal/dri_interface.h | 10 +- src/egl/drivers/dri2/egl_dri2.c | 27

[Mesa-dev] [PATCH 10/16] vulkan/wsi: Add drm_modifier member to wsi_image

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone Not yet used anywhere. Signed-off-by: Daniel Stone Reviewed-by: Jason Ekstrand --- src/vulkan/Makefile.am | 1 + src/vulkan/wsi/meson.build | 2 +- src/vulkan/wsi/wsi_common.c

[Mesa-dev] [PATCH 01/16] dri: fromPlanar() can return NULL as a valid result

2018-02-09 Thread Jason Ekstrand
From: Louis-Francis Ratté-Boulianne It was assumed that fromPlanar() could return NULL to mean that the planar image is the same as the parent DRI image. That assumption wasn't made everywhere though. Let's fix things and make sure that all callers understand a NULL result

[Mesa-dev] [PATCH 09/16] vulkan/wsi: Add multiple planes to wsi_image_base

2018-02-09 Thread Jason Ekstrand
From: Daniel Stone Not currently used. Signed-off-by: Daniel Stone Reviewed-by: Jason Ekstrand --- src/vulkan/wsi/wsi_common.c | 18 ++ src/vulkan/wsi/wsi_common_private.h | 9 +

[Mesa-dev] [PATCH 02/16] i965: Check if nplanes == 1 in intel_from_planar()

2018-02-09 Thread Jason Ekstrand
From: Louis-Francis Ratté-Boulianne This was breaking CCS support as because we would take the planar path whenever planar_format is set which is always. Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Jason Ekstrand ---

[Mesa-dev] [PATCH 11/16] vulkan/wsi: Add modifiers support to wsi_create_native_image

2018-02-09 Thread Jason Ekstrand
This involves extending our fake extension a bit to allow for additional querying and passing of modifier information. The added bits are intended to look a lot like the draft of VK_EXT_image_drm_format_modifier. Once the extension gets finalized, we'll simply transition all of the structs used

Re: [Mesa-dev] [PATCH 06/16] dri: Add createImageWithModifiers2 to DRIimageExtension

2018-02-09 Thread Jason Ekstrand
On Fri, Feb 9, 2018 at 3:43 PM, Jason Ekstrand wrote: > From: Louis-Francis Ratté-Boulianne > > It does the same as createImagewithModifiers but allow multiple > modifiers set to be given. The modifier used to create the image > should be selected from

[Mesa-dev] [PATCH] virgl: Support v2 caps struct

2018-02-09 Thread Stéphane Marchesin
This struct allows us to report accurate max point size/line width. --- src/gallium/drivers/virgl/virgl_hw.h| 29 + src/gallium/drivers/virgl/virgl_screen.c| 9 src/gallium/winsys/virgl/drm/virgl_drm_winsys.c | 19 +++- 3 files

Re: [Mesa-dev] [PATCH 1/3] mesa: add xbgr support adjacent to xrgb

2018-02-09 Thread Ilia Mirkin
On Tue, Feb 6, 2018 at 12:05 AM, Ilia Mirkin wrote: > On Mon, Feb 5, 2018 at 6:42 AM, Ilia Mirkin wrote: >> On Mon, Feb 5, 2018 at 6:24 AM, Daniel Stone wrote: >>> Hi Ilia, >>> >>> On 4 February 2018 at 19:09, Ilia Mirkin

Re: [Mesa-dev] radeonsi: copy the NIR enablement debug bit to the shader cache flags

2018-02-09 Thread Dieter Nützel
Hello, I know that NIR support for radeonsi is new, but should this land in Mesa 18.0.0 final as early upgrade path? I've tried running my whole system with NIR enabled in /etc/environment export R600_DEBUG=nir But older Mesa 18.0.0-rc3/4 (in the background) created disk cache files interfere

[Mesa-dev] [PATCH 4/7] vulkan: Add VK_EXT_display_surface_counter [v4]

2018-02-09 Thread Keith Packard
This extension is required to support EXT_display_control as it offers a way to query whether the vblank counter is supported. v2: Thanks to kisak Fix spelling of VkSurfaceCapabilities2EXT in wsi_common_wayland.c, it was using ext instead of EXT. Fix spelling of

[Mesa-dev] [PATCH 5/7] vulkan: add VK_EXT_display_control [v4]

2018-02-09 Thread Keith Packard
This extension provides fences and frame count information to direct display contexts. It uses new kernel ioctls to provide 64-bits of vblank sequence and nanosecond resolution. v2: Remove DRM_CRTC_SEQUENCE_FIRST_PIXEL_OUT flag. This has been removed from the proposed kernel API. Add

[Mesa-dev] [PATCH 6/7] vulkan: Add new VK_MESA_query_timestamp extension

2018-02-09 Thread Keith Packard
This extension adds a single function to query the current GPU timestamp, just like glGetInteger64v(GL_TIMESTAMP, ). This function is needed to complete the implementation of GOOGLE_display_timing, which needs to be able to coorelate GPU and CPU timestamps. Signed-off-by: Keith Packard

[Mesa-dev] [PATCH 2/2] nvc0: add support for bindless on maxwell+

2018-02-09 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- Tested on GM107 with DOW3 and DiRT Rally (in bindless mode). Seems to work about as well as on Kepler, except I got a few ltc errors in DiRT Rally. Unclear if it's related to this patch though. Could be a missing flush somewhere.

[Mesa-dev] [PATCH 1/2] gm107/ir: change how SUQ works in preparation for bindless

2018-02-09 Thread Ilia Mirkin
All this information can be retrieved from the TIC directly. Avoid having to dip into the constbuf information about the image. Signed-off-by: Ilia Mirkin --- .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 61 +-

Re: [Mesa-dev] [PATCH 07/16] RFC: egl/x11: Support DRI3 v1.1

2018-02-09 Thread Jason Ekstrand
On Fri, Feb 9, 2018 at 3:43 PM, Jason Ekstrand wrote: > From: Louis-Francis Ratté-Boulianne > > Add support for DRI3 v1.1, which allows pixmaps to be backed by > multi-planar buffers, or those with format modifiers. This is both > for allocating render

[Mesa-dev] [PATCH 3/7] vulkan: Add EXT_acquire_xlib_display

2018-02-09 Thread Keith Packard
This extension adds the ability to borrow an X RandR output for temporary use directly by a Vulkan application. For DRM, we use the Linux resource leasing mechanism. Signed-off-by: Keith Packard --- configure.ac | 25 ++ meson.build

[Mesa-dev] [PATCH 7/7] vulkan: Add VK_GOOGLE_display_timing extension (x11 and display backends)

2018-02-09 Thread Keith Packard
This adds support for the VK_GOOGLE_display timing extension, which provides two things: 1) Detailed information about when frames are displayed, including slack time between GPU execution and display frame. 2) Absolute time control over swapchain queue processing. This allows the

[Mesa-dev] [PATCH 2/7] vulkan: Add EXT_direct_mode_display

2018-02-09 Thread Keith Packard
Add support for the EXT_direct_mode_display extension. This just provides the vkReleaseDisplayEXT function. Signed-off-by: Keith Packard --- src/amd/vulkan/radv_extensions.py | 1 + src/amd/vulkan/radv_wsi_display.c | 11 +++ src/intel/vulkan/anv_extensions.py |

[Mesa-dev] [PATCH 0/7] vulkan: Add direct display extensions

2018-02-09 Thread Keith Packard
Here's a series of extensions necessary to perform reasonable direct display operations, either directly through DRM with no window system, or using RandR and Linux leases. There's one new extension, MESA_query_timestamp which performs the same operation as glGetInteger64v(GL_TIMESTAMP, ) -- it

[Mesa-dev] [PATCH 1/7] vulkan: Add KHR_display extension to anv and radv using DRM

2018-02-09 Thread Keith Packard
This adds support for the KHR_display extension to the anv and radv Vulkan drivers. The drivers now attempt to open the master DRM node when the KHR_display extension is requested so that the common winsys code can perform the necessary operations. Signed-off-by: Keith Packard

Re: [Mesa-dev] [PATCH v3 1/9] meson: use va-api version reported by pkg-config

2018-02-09 Thread Dylan Baker
Quoting Emil Velikov (2018-02-08 16:14:39) > On 8 February 2018 at 23:36, Dylan Baker wrote: > > Quoting Emil Velikov (2018-02-08 15:22:32) > >> On 8 February 2018 at 23:16, Dylan Baker wrote: > >> > Quoting Emil Velikov (2018-02-08 14:56:27) > >> >> On

Re: [Mesa-dev] [PATCH 08/16] egl/x11: Re-allocate buffers if format is suboptimal

2018-02-09 Thread Jason Ekstrand
On Fri, Feb 9, 2018 at 3:43 PM, Jason Ekstrand wrote: > From: Louis-Francis Ratté-Boulianne > > If PresentCompleteNotify event says the pixmap was presented > with mode PresentCompleteModeSuboptimalCopy, it means the pixmap > could possibly have been

[Mesa-dev] [PATCH kmscube v3] formats: use weston's egl config matching logic, centralize format

2018-02-09 Thread Ilia Mirkin
The GBM surface format has to match the DRM mode. Both are used in a couple of places, so unify it so that it's only set in one place. Note that the GBM and DRM formats are identical. Signed-off-by: Ilia Mirkin Reviewed-by: Eric Engestrom --- v2

Re: [Mesa-dev] [PATCH 02/16] i965: Check if nplanes == 1 in intel_from_planar()

2018-02-09 Thread Jason Ekstrand
On Fri, Feb 9, 2018 at 3:43 PM, Jason Ekstrand wrote: > From: Louis-Francis Ratté-Boulianne > > This was breaking CCS support as because we would take the planar path > whenever planar_format is set which is always. > > Signed-off-by: Louis-Francis

[Mesa-dev] [PATCH] i965: Fix bugs in intel_from_planar

2018-02-09 Thread Jason Ekstrand
This commit fixes two bugs in intel_from_planar. First, if the planar format was non-NULL but only had a single plane, we were falling through to the planar case. If we had a CCS modifier and plane == 1, we would return NULL instead of the CCS plane. Second, if we did end up in the

Re: [Mesa-dev] [PATCH v2 3/8] radeon/uvd:add uvd hevc enc hw interface header

2018-02-09 Thread James Zhu
in order keep the patch order for tacking. I will update at final update On 2018-02-07 05:40 PM, Boyuan Zhang wrote: Better to add it to Makefile.source and Meson in this patch. Other than this, this patch is Reviewed-by: Boyuan Zhang On 2018-02-06 03:05 PM, James

Re: [Mesa-dev] [PATCH 05/16] i965: Implement EGL_EXT_image_implicit_sync_control

2018-02-09 Thread Jason Ekstrand
On Fri, Feb 9, 2018 at 3:43 PM, Jason Ekstrand wrote: > From: Daniel Stone > > Reviewed-by: Jason Ekstrand > Ugh... I meant to take that off before sending... > --- > src/mesa/drivers/dri/i965/intel_screen.c | 17

Re: [Mesa-dev] [PATCH 03/16] egl: Add EGL_EXT_image_implicit_sync_control

2018-02-09 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Fri, Feb 9, 2018 at 3:43 PM, Jason Ekstrand wrote: > From: Daniel Stone > > Signed-off-by: Daniel Stone > --- > src/egl/main/eglapi.c | 1 + >

Re: [Mesa-dev] [PATCH] i965: prevent potentially null pointer access

2018-02-09 Thread Alejandro Piñeiro
On 09/02/18 12:07, Lionel Landwerlin wrote: > Hey Alejandro, > > I did that initially but then thought I could have to do it in > multiple places. Ok. > If you prefer the check to be in the calling function I can change it. It is ok as it is. I was just curious. Thanks for the explanation. > >

Re: [Mesa-dev] [PATCH 2/4] clover: use PIPE_SHADER_CAP_SUPPORTED_IRS to discover IR

2018-02-09 Thread Timothy Arceri
On 09/02/18 21:54, Pierre Moreau wrote: On 2018-02-09 — 12:06, Timothy Arceri wrote: PIPE_SHADER_CAP_PREFERRED_IR was conflicting with PIPE_SHADER_IR_NIR for compute shaders, so we let clover pick the one it wants to use. --- src/gallium/state_trackers/clover/core/device.cpp | 11

[Mesa-dev] [PATCH mesa] r200: remove left over dead code

2018-02-09 Thread Eric Engestrom
0aaa27f29187ffb739c7 removed the references to this array without removing the array itself Cc: Ian Romanick Fixes: 0aaa27f29187ffb739c7 "mesa: Pass the translated color logic op dd_function_table::LogicOpcode" Signed-off-by: Eric Engestrom

Re: [Mesa-dev] [PATCH demos 4/4] egl: Install eglinfo binary

2018-02-09 Thread Eric Engestrom
On Friday, 2018-02-09 10:09:01 +0100, Andreas Boll wrote: > Signed-off-by: Andreas Boll > --- > I'd like to ship eglinfo inside Debian's mesa-utils-extra package and I > thought > other distributions could be interested in this patch as well. Yes please :) Btw, I

Re: [Mesa-dev] [PATCH 2/3] st/mesa: don't translate blend state when color writes are disabled

2018-02-09 Thread Eric Anholt
Marek Olšák writes: > From: Marek Olšák Reviewed-by: Eric Anholt signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

Re: [Mesa-dev] [PATCH] i965: perf: ensure reading config IDs from sysfs isn't interrupted

2018-02-09 Thread Grazvydas Ignotas
Is this really sufficient? From what I read in the manpage, you can get an incomplete read instead when a signal arrives. Gražvydas On Fri, Feb 9, 2018 at 12:03 PM, Lionel Landwerlin wrote: > Fixes: 458468c136e "i965: Expose OA counters via

Re: [Mesa-dev] [PATCH] i965: perf: ensure reading config IDs from sysfs isn't interrupted

2018-02-09 Thread Lionel Landwerlin
Fair, but since we're reading from sysfs, I think we should be fine. On 09/02/18 12:27, Grazvydas Ignotas wrote: Is this really sufficient? From what I read in the manpage, you can get an incomplete read instead when a signal arrives. Gražvydas On Fri, Feb 9, 2018 at 12:03 PM, Lionel

[Mesa-dev] [PATCH 08/18] ac: remove unused parameters in abi::load_tess_coord()

2018-02-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 5 ++--- src/amd/common/ac_shader_abi.h | 4 +--- src/gallium/drivers/radeonsi/si_shader.c | 6 ++ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git

[Mesa-dev] [PATCH 05/18] ac: add load_sample_mask_in() to the ABI

2018-02-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 17 + src/amd/common/ac_shader_abi.h | 2 ++ src/gallium/drivers/radeonsi/si_shader.c | 6 ++ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git

[Mesa-dev] [PATCH 03/18] ac: move push_constants to the ABI

2018-02-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 7 +++ src/amd/common/ac_shader_abi.h | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index

[Mesa-dev] [PATCH 10/18] ac/nir: drop nir_to_llvm_context from visit_load_local_invocation_index()

2018-02-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 97b5ec90f7..1188708020 100644 ---

[Mesa-dev] [PATCH 15/18] ac/nir: drop nir_to_llvm_context from glsl_to_llvm_type()

2018-02-09 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index b89067d6ca..273435adb6 100644 ---

  1   2   >