[RFC PATCH xserver] xwayland: Fix non-argb cursor conversion

2017-09-27 Thread Olivier Fourdan
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=103012 Signed-off-by: Olivier Fourdan --- Note: I am not familiar with this so I have no idea whether or not the fix is correct (thus the RFC), but it does fix the test case provided in bug 103012.

Re: [PATCH xserver 3/3] meson: Port default warning flags from xorg-macros

2017-09-27 Thread Daniel Stone
Hey, On 27 September 2017 at 18:09, Adam Jackson wrote: > +common_wflags = [] > +foreach wflag: test_wflags > +if cc.has_argument(wflag) > +common_wflags += [ wflag ] > +endif > +endforeach > + > +add_global_arguments(common_wflags, language : 'c') If you're

Re: [PATCH xserver 3/3] meson: Port default warning flags from xorg-macros

2017-09-27 Thread Adam Jackson
On Wed, 2017-09-27 at 18:20 +0100, Daniel Stone wrote: > Hey, > > On 27 September 2017 at 18:09, Adam Jackson wrote: > > +common_wflags = [] > > +foreach wflag: test_wflags > > +if cc.has_argument(wflag) > > +common_wflags += [ wflag ] > > +endif > > +endforeach

[PATCH xserver 3/6] test: const correctness fix

2017-09-27 Thread Adam Jackson
../test/sync/sync.c: In function ‘main’: ../test/sync/sync.c:288:40: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] xcb_query_extension_reply_t *ext = xcb_get_extension_data(c, _sync_id);

[PATCH xserver 5/6] meson: Check for HAVE_TYPEOF

2017-09-27 Thread Adam Jackson
Without this, exa's gc swap macros trigger gcc's -Wdiscarded-qualifiers. Signed-off-by: Adam Jackson Reviewed-by: Daniel Stone --- include/meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/meson.build

[PATCH xserver 4/6] meson: Default to gnu99

2017-09-27 Thread Adam Jackson
We don't really require all of C99, but enough that it's not worth bothering with the distinction, especially if your toolchain is new enough that meson is a thing for you. We could do strict C99 if we really insisted on spelling it __typeof__, but who wants that? Nobody, that's who.

[PATCH xserver 2/6] dmx: More const correctness

2017-09-27 Thread Adam Jackson
Fixes several dozen cases like: ../hw/dmx/examples/ev.c: In function ‘main’: ../hw/dmx/examples/ev.c:147:29: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] tmp = "X"; ^ Signed-off-by: Adam

[PATCH xserver 6/6] meson: Port default warning flags from xorg-macros

2017-09-27 Thread Adam Jackson
Well, almost all of them. No -Wdeclaration-after-statement because that's legal in C99, and in the limited ways we use it, more readable. Signed-off-by: Adam Jackson Reviewed-by: Daniel Stone --- meson.build | 45

[PATCH xserver 1/6] dmx: Fix a silly redeclaration bug

2017-09-27 Thread Adam Jackson
../hw/dmx/dmx.c:66:12: warning: redundant redeclaration of ‘PanoramiXNumScreens’ [-Wredundant-decls] extern int PanoramiXNumScreens; ^~~ In file included from ../hw/dmx/dmx.c:65:0: ../Xext/panoramiXsrv.h:11:22: note: previous declaration of ‘PanoramiXNumScreens’ was

Re: [PATCH xserver 3/3] meson: Port default warning flags from xorg-macros

2017-09-27 Thread Daniel Stone
On 27 September 2017 at 19:27, Adam Jackson wrote: > On Wed, 2017-09-27 at 18:20 +0100, Daniel Stone wrote: >> If you're willing to take the dep, this is: >> add_global_arguments(cc.get_supported_arguments(test_wflags), language: 'c') > > Neat, didn't know about that one. I just

Re: XDC 2017 feedback

2017-09-27 Thread Miguel Angel Vico
Hi, In general, I think the organization was great. I agree having everything happen in a single room was a good point. Here's some of my personal feedback: * I didn't like the tables layout at all. I found it to be extremely uncomfortable to have to look sideways in order to see the screens

[PATCH xserver 1/3] meson: Check for HAVE_TYPEOF

2017-09-27 Thread Adam Jackson
Without this, exa's gc swap macros trigger gcc's -Wdiscarded-qualifiers. Signed-off-by: Adam Jackson --- include/meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/meson.build b/include/meson.build index 5cea8bbcf6..90f8de3cb9 100644 ---

[PATCH xserver 2/3] meson: Default to C99

2017-09-27 Thread Adam Jackson
We don't really require all of C99, but enough that it's not worth bothering with the distinction, especially if your toolchain is new enough that meson is a thing for you. Signed-off-by: Adam Jackson --- meson.build | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[PATCH xserver 3/3] meson: Port default warning flags from xorg-macros

2017-09-27 Thread Adam Jackson
Well, almost all of them. No -Wdeclaration-after-statement because that's legal in C99, and in the limited ways we use it, more readable. Signed-off-by: Adam Jackson --- meson.build | 46 -- 1 file changed, 44 insertions(+), 2

[PATCH util-modular] release.sh: add support for meson projects

2017-09-27 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- release.sh | 155 +++-- 1 file changed, 99 insertions(+), 56 deletions(-) diff --git a/release.sh b/release.sh index ff89d2e..afa43ac 100755 --- a/release.sh +++ b/release.sh @@

[RFC xserver v3 03/14] dri3: Add multi-planar/modifier buffer requests

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Initial implementation for DRI3 v1.1. Only the DRI3 implementation is there, backends need to implement the proper hooks. Version is still set to 1.0 so clients shouldn't use the new requests yet. Signed-off-by: Daniel Stone Signed-off-by: Louis-Francis Ratté-Boulianne

[RFC xserver v3 09/14] modesetting: Create scanout buffers using supported modifiers

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Use most optimal buffer format (e.g. tiled/compressed) available for scanout. Signed-off-by: Louis-Francis Ratté-Boulianne --- hw/xfree86/drivers/modesetting/drmmode_display.c | 69 1 file changed, 69 insertions(+) diff --git

[RFC v2 05/12] dri3: Add DMA fences requests

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Bump DRI3 version to v1.2 that adds requests: * FenceFromDMAFenceFD is used to create a sync fence from a sync file fence. * DMAFenceFDFromFence is used to retrieve the sync file fd from a fence. Drivers need to check the SyncFence type to make use of it when possible.

[RFC v3 10/22] vulkan/wsi: Add multiple planes to wsi_image_base

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Not currently used. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 13 +++-- src/intel/vulkan/anv_wsi.c | 9 + src/vulkan/wsi/wsi_common.h | 9 +

[RFC v3 04/22] i965: Implement EGL_EXT_image_implicit_sync_control

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone --- src/mesa/drivers/dri/i965/brw_bufmgr.h | 3 +++ src/mesa/drivers/dri/i965/intel_screen.c | 16 ++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.h

[RFC xserver v3 04/14] modesetting: Refactor xf86FindCrtcCoveringDrawable out of the driver

2017-09-27 Thread Louis-Francis Ratté-Boulianne
The functions will be needed outside of the driver. Signed-off-by: Louis-Francis Ratté-Boulianne --- hw/xfree86/drivers/modesetting/dri2.c| 8 +- hw/xfree86/drivers/modesetting/driver.h | 4 - hw/xfree86/drivers/modesetting/drmmode_display.c | 9 ++

[RFC xserver v3 11/14] glamor: Implement GetSupportedModifiers

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Implement function added in DRI3 v1.1. A newest version of libepoxy (>= 1.4.4) is required as earlier versions use a problematic version of Khronos EXT_image_dma_buf_import_modifiers spec. Signed-off-by: Louis-Francis Ratté-Boulianne --- configure.ac

[RFC xserver v3 14/14] dri3: Enable DRI3 version 1.1

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Enable DRI3 v1.1 now that all functions have been implemented and that there is at least one backend implementing the driver hooks (modesetting/glamor). Signed-off-by: Louis-Francis Ratté-Boulianne --- include/protocol-versions.h | 2 +- 1 file changed, 1 insertion(+), 1

[RFC v2 03/12] sync: Move fence destroy call to object specific function

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Needed so multiple types of sync fences can exist (SHM and DMA). Signed-off-by: Louis-Francis Ratté-Boulianne --- miext/sync/misync.c| 25 +++-- miext/sync/misync.h| 10 +- miext/sync/misyncshm.c | 30 +++--- 3

[RFC v3 05/22] dri: Add createImageWithModifiers2 to DRIimageExtension

2017-09-27 Thread 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. Signed-off-by: Louis-Francis Ratté-Boulianne

[RFC v3 00/22] DRI3 v1.1, ANV dmabuf

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Hi, With full support for modifiers in DRIimage, this patch series adds support for fully plumbing them through X11. This is the third revision, more context can be found here: https://lists.freedesktop.org/archives/mesa-dev/2017-June/158457.html

[RFC v3 09/22] vulkan/wsi: Rename needs_linear_copy to should_export

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone The only use for this boolean was to decide whether or not it should export a dmabuf FD. Simplify things a bit by giving that directly. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 6 --

[RFC dri3proto v3 01/14] Add modifier/multi-plane requests, bump to v1.1

2017-09-27 Thread Louis-Francis Ratté-Boulianne
DRI3 version 1.1 adds support for explicit format modifiers, including multi-planar buffers. Signed-off-by: Daniel Stone Signed-off-by: Louis-Francis Ratté-Boulianne --- dri3proto.h | 86 - dri3proto.txt | 202

[RFC v3 06/22] RFC: egl/x11: Support DRI3 v1.1

2017-09-27 Thread 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). Signed-off-by: Louis-Francis Ratté-Boulianne

[RFC v3 21/22] RFC: vulkan/wsi: Add support for DRI3 v1.1

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Adds support for multiple planes and buffer modifiers. --- src/vulkan/wsi/wsi_common_x11.c | 178 1 file changed, 160 insertions(+), 18 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_x11.c

[RFC v3 18/22] vulkan/wsi: Rename needs_linear_copy to different_gpu

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone That's what it actually means; the fact it generally means a linear copy is requires is incidental. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 10 +- src/intel/vulkan/anv_wsi.c | 2 +-

[RFC v3 11/22] radv/wsi: Move image allocation into helper function

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Create a new helper function which handles the actual image/memory allocations for a swapchain image, removing the bulk of radv_wsi_image_create. This will make it easier to move linear handling into radv in the next patch. Signed-off-by: Daniel Stone

[RFC v3 07/22] egl/x11: Reallocate buffer when the window moves to a different CRTC

2017-09-27 Thread Louis-Francis Ratté-Boulianne
The optimal modifier depends on the current CRTC as some modifiers might not allow direct scanout. When the window is moved to a different CRTC, available modifiers should be re-fetched and the buffers re-allocated. Signed-off-by: Louis-Francis Ratté-Boulianne ---

[RFC v3 14/22] anv/wsi: Small code motion to prepare for modifiers

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Signed-off-by: Daniel Stone --- src/intel/vulkan/anv_wsi.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_wsi.c b/src/intel/vulkan/anv_wsi.c index f59d349b50..d8ffdfbab2

[RFC xserver v3 08/14] modesetting: Get supported formats/modifiers for scanout

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Retrieve IN_FORMATS property from the plane. It gives the allowed formats and modifiers for BO allocation. Signed-off-by: Louis-Francis Ratté-Boulianne --- configure.ac | 4 + hw/xfree86/drivers/modesetting/drmmode_display.c | 114

[RFC v2 06/12] glamor: Initialize DMA sync fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Enable support for DMA fences in Glamor backend. Signed-off-by: Louis-Francis Ratté-Boulianne --- glamor/glamor_sync.c | 4 1 file changed, 4 insertions(+) diff --git a/glamor/glamor_sync.c b/glamor/glamor_sync.c index 907e0c613..58a0a36d5 100644 ---

[RFC xserver v3 00/14] DRI3 v1.1: modifiers and multi-plane

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Hello, This is the RFC v3 for DRI3 v1.1 (X11 modifiers and multi-plane). For context, please check previous submissions: https://lists.x.org/archives/xorg-devel/2017-June/053854.html https://lists.x.org/archives/xorg-devel/2017-August/054436.html The main changes in this iteration are: -

[RFC presentproto v3 02/14] Add PresentWindowCrtcNotify event

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Signed-off-by: Louis-Francis Ratté-Boulianne --- presentproto.h | 16 presenttokens.h | 5 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/presentproto.h b/presentproto.h index 08ddc05..c59f2c0 100644 --- a/presentproto.h +++

[RFC xserver v3 12/14] glamor: Use gbm_bo_create_with_modifiers for internal pixmap allocation

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Using modifier might allow the driver to use a more optimal format (e.g. tiled/compressed). Let's try to use those if possible. Signed-off-by: Louis-Francis Ratté-Boulianne --- glamor/glamor_egl.c | 44 ++-

[RFC v3 01/22] i965: Only set planar_format if it's actually one

2017-09-27 Thread Louis-Francis Ratté-Boulianne
The planar_format image property was always set even for non-planar formats. This was breaking CCS support as intel_from_planar is now making sure we can't have both a modifier and an planar format. Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Daniel Stone

[PATCH xserver] sync: Fix delta value check

2017-09-27 Thread Louis-Francis Ratté-Boulianne
While transitionning from CARD64 to int64, the GreaterThan call as mistakenly been transformed into ">=". That was at least causing problems with Mutter. Signed-off-by: Louis-Francis Ratté-Boulianne --- Xext/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[RFC dri3proto v2 01/12] Add DMA fences requests, bump to v1.2

2017-09-27 Thread Louis-Francis Ratté-Boulianne
DRI3 version 1.2 adds support for creating DMA fences and retrieving the file descriptor backing one. Signed-off-by: Daniel Stone Signed-off-by: Louis-Francis Ratté-Boulianne --- dri3proto.h | 45 -- dri3proto.txt

[RFC v2 09/12] present: Add hooks for the drivers to create out-fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Drivers need to implement flip_with_fence and flush_with_fence to create out-fences. Signed-off-by: Louis-Francis Ratté-Boulianne --- present/present.c | 68 +++ present/present.h | 8 ++ present/present_priv.h

[RFC xserver v3 13/14] present: Send a PresentWindowCrtcNotify event appropriately

2017-09-27 Thread Louis-Francis Ratté-Boulianne
When the window has changed CRTC, send the event. Signed-off-by: Louis-Francis Ratté-Boulianne --- present/present.c | 5 + present/present_event.c | 35 +++ present/present_priv.h | 3 +++ 3 files changed, 43 insertions(+) diff

[RFC v2 00/12] DRI3 v1.2: DMA fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Hello, This patchset implements of what we would like to see become DRI3 v1.2, that is the implementation of DMA fences. For some context, please see previous submission: https://lists.x.org/archives/xorg-devel/2017-August/054439.html The main changes in this iteration are: - The DMA fences

[RFC v2 04/12] sync: Add support for DMA fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Functions are available to create a SyncFence from a DMA fence fd and to retrieve the file descriptor from a SyncFence. DMA fences can't be triggered/reset externally. Signed-off-by: Louis-Francis Ratté-Boulianne --- Xext/sync.c| 34 +++- Xext/syncsrv.h

[RFC xserver v3 06/14] modesetting: Add support for multi-plane pixmaps when page-flipping

2017-09-27 Thread Louis-Francis Ratté-Boulianne
This allows the uses of CCS compressed or tiled pixmaps as BOs when page-flipping. Signed-off-by: Louis-Francis Ratté-Boulianne --- hw/xfree86/drivers/modesetting/drmmode_display.c | 46 hw/xfree86/drivers/modesetting/drmmode_display.h | 4 +++

[RFC v3 22/22] vulkan/wsi: Return VK_SUBOPTIMAL_KHR when X11 window is moved

2017-09-27 Thread Louis-Francis Ratté-Boulianne
When it is detected that a window has changed CRTC, the current format modifier for the surface might no longer be optimal (e.g. it might not allow direct scanout on the new CRTC). The Vulkan client should then re-create the swapchain. Note: It might be more performant to actually check the new

[RFC v2 08/12] present: Allow present implementations to wait on fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Instead of relying on the present module to wait on in-fences, we added some hooks to allow the drivers/hardware to do the work. Drivers need to implement can_wait, wait and flip_with_fence to handle it. Signed-off-by: Louis-Francis Ratté-Boulianne --- present/present.c

[RFC v2 11/12] modesetting: Add implementation for in-fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Allow the modesetting present implementation to wait on in-fences using ANDROID_native_fence_sync if the fence was created with DRI3 FenceFromDMAFenceFD. Signed-off-by: Louis-Francis Ratté-Boulianne --- configure.ac | 1 +

[RFC v3 02/22] egl: Add EGL_EXT_image_implicit_sync_control

2017-09-27 Thread Louis-Francis Ratté-Boulianne
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(+)

[RFC presentproto v2 02/12] Add capability and option for IdleFence

2017-09-27 Thread Louis-Francis Ratté-Boulianne
If the server has that capability, and the client is using this option, the idle fence given to PresentPixamp can be modified to point to an out-fence created by the driver. Signed-off-by: Louis-Francis Ratté-Boulianne --- presenttokens.h | 8 ++-- 1 file changed, 6

[RFC v3 13/22] radv/wsi: Use image_free for alloc cleanup

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone If we fail in the alloc, just use the (mostly) identical radv_wsi_image_free() to clean up after us. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 39 --- 1 file changed, 16

[RFC v3 20/22] vulkan/wsi/wayland: Add support for zwp_dmabuf

2017-09-27 Thread Louis-Francis Ratté-Boulianne
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 +-

[RFC v2 07/12] present: Check the whole exec queue on event

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Later events are sometimes added in front of the queue (e.g. if page flipping fails) so we need to check the whole queue on event. Signed-off-by: Louis-Francis Ratté-Boulianne --- present/present.c | 4 1 file changed, 4 deletions(-) diff --git a/present/present.c

[RFC xserver v3 05/14] modesetting: Use atomic modesetting API for pageflip if available

2017-09-27 Thread Louis-Francis Ratté-Boulianne
In order to flip between compressed and uncompressed buffers - something drmModePageFlip explicitly bans us from doing - we need to port use the atomic modesetting API. It's only 'fake' atomic though given we still commit for each CRTC separately and CRTC and connector properties are not set with

[RFC v2 12/12] modesetting: Add implementation for out-fences

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Create out-fence using eglCreateSyncKHR or OUT_FENCE_PTR DRM property when page-flipping. Signed-off-by: Louis-Francis Ratté-Boulianne --- glamor/glamor.c | 9 ++ glamor/glamor.h | 2 ++

[RFC v3 17/22] vulkan/wsi: Add drm_modifier member to wsi_image

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Not yet used anywhere. Signed-off-by: Daniel Stone --- src/amd/vulkan/Makefile.am | 1 + src/amd/vulkan/radv_wsi.c | 2 ++ src/intel/vulkan/anv_wsi.c | 8 src/vulkan/wsi/wsi_common.h | 1 + 4 files changed, 12

[RFC v3 08/22] vulkan/wsi: Add wsi_image_base structure

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone This is used to hold information about the allocated image, rather than an ever-growing function argument list. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 31 ++

[RFC v3 15/22] intel/isl: Add ISL tiling -> modifier conversion

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Given a tiling mode and an aux usage, return the DRM modifier. Signed-off-by: Daniel Stone --- src/intel/isl/isl.h | 6 +- src/intel/isl/isl_drm.c | 17 + 2 files changed, 22 insertions(+), 1 deletion(-)

[RFC v3 19/22] vulkan/wsi: Add modifiers to wsi_image_create

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Allow the winsys to provide a set of acceptable modifiers to the driver when creating WSI images. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 36 +--

[RFC v2 10/12] modesetting: Check if DMA fences are supported

2017-09-27 Thread Louis-Francis Ratté-Boulianne
Modesetting/glamor can handle DMA fences if extensions EGL_KHR_wait_sync and EGL_ANDROID_native_fence_sync are available and if IN_FENCE_FD and OUT_FENCE_PTR DRM properties are implemented. Signed-off-by: Louis-Francis Ratté-Boulianne --- glamor/glamor.c

[RFC xserver v3 10/14] glamor: Implement PixmapFromBuffers and BuffersFromPixmap

2017-09-27 Thread Louis-Francis Ratté-Boulianne
It relies on GBM >= 17.1.0 where we can import BO with multiple planes and a format modifier (GBM_BO_IMPORT_FD_MODIFIER). Signed-off-by: Louis-Francis Ratté-Boulianne --- configure.ac | 4 + glamor/glamor.c | 34 --- glamor/glamor.h

[RFC v3 16/22] intel/isl: Add field for suboptimal tiling flags

2017-09-27 Thread Louis-Francis Ratté-Boulianne
The caller might want to discriminate between two possible sets of tiling flags. For example, some tiling modes might allow direct scanout, and so should be preferred even if GPU operations are a little less performant. Signed-off-by: Louis-Francis Ratté-Boulianne ---

[RFC v3 03/22] dri: Add suppressImplicitSync to DRIimageExtension

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone Provide a hook to inform the driver that implicit synchronization should be suppressed. --- include/GL/internal/dri_interface.h | 10 +- src/egl/drivers/dri2/egl_dri2.c | 27 +++ 2 files changed, 36 insertions(+), 1

[RFC v3 12/22] vulkan/wsi: Move linear alloc into radv

2017-09-27 Thread Louis-Francis Ratté-Boulianne
From: Daniel Stone This is pretty much radv-specific anyway. Signed-off-by: Daniel Stone --- src/amd/vulkan/radv_wsi.c | 49 +++-- src/intel/vulkan/anv_wsi.c | 23 -

[RFC xserver v3 07/14] modesetting: Use atomic modesetting to configure output/CRTCs

2017-09-27 Thread Louis-Francis Ratté-Boulianne
To make sure we also use the same primary plane and to avoid mixing uses of two APIs, it is better to always use the atomic modesetting API when possible. Signed-off-by: Louis-Francis Ratté-Boulianne --- hw/xfree86/drivers/modesetting/drmmode_display.c | 402

Re: [PATCH xserver] sync: Fix delta value check

2017-09-27 Thread Adam Jackson
On Wed, 2017-09-27 at 01:24 -0400, Louis-Francis Ratté-Boulianne wrote: > While transitionning from CARD64 to int64, the GreaterThan call > as mistakenly been transformed into ">=". That was at least > causing problems with Mutter. > > Signed-off-by: Louis-Francis Ratté-Boulianne