From: Daniel Stone
Make sure we get the CFLAGS required for building dri3proto into the
command line.
Signed-off-by: Daniel Stone
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
glamor/glamor.h | 7 ++
glamor/glamor_egl.c | 2 +-
hw/xfree86/drivers/modesetting/drmmode_display.c | 111 ---
3 files change
Retrieve IN_FORMATS property
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 5 +
hw/xfree86/drivers/modesetting/drmmode_display.c | 115 ++-
hw/xfree86/drivers/modesetting/drmmode_display.h
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 395 +--
hw/xfree86/drivers/modesetting/drmmode_display.h | 29 +-
hw/xfree86/drivers/modesetting/pageflip.c| 3 +-
3 files change
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
glamor/glamor.c | 93 ++--
glamor/glamor.h | 64 ++-
glamor/glamor_egl.c | 146 +
glamor/glamor_egl.h | 84 ++
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/xfree86/drivers/modesetting/drmmode_display.c
b/hw/xfree86/drivers/modesetting/drmmode_display.c
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
dri3/dri3.c | 92
dri3/dri3.h | 12 +
glamor/glamor.h | 10
glamor/glamor_egl.c | 69 ++
This allows the uses of CCS compressed or tiled pixmaps as BOs.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 51 +++-
hw/xfree86/drivers/modesetting/drmmode_display.h | 10 +
hw/xfree86/d
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 <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulia
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
include/protocol-versions.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/protocol-versions.h b/include/protocol-versions.h
index b4498927b..27cb10c74 100644
--- a/include/protocol-versions.h
with the atomic API.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 3 +
hw/xfree86/drivers/modesetting/driver.c | 6 +
hw/xfree86/drivers/modesetting/driver.h | 1 +
hw/xfree86/drivers/modes
.
There are still some FIXME and questions in there. Any opinion
about those is welcome.
Daniel Stone (1):
Build: Use dri3proto CFLAGS
Louis-Francis Ratté-Boulianne (12):
dri3: Add multi-planar/modifier buffer requests
glamor: Implement PixmapFromBuffers and BuffersFromPixmap
glamor
These functions have been borrowed from Weston and will be used
in following patches.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 171 +++
hw/xfree86/drivers/modesetting/drmmode_display.h | 13
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 4 +++
glamor/glamor_egl.c | 73 +--
hw/xwayland/xwayland-glamor.c | 22 +++--
include/dix-config.h.in | 3 ++
4 files c
Hi,
On Wednesday, August 30, 2017 02:26 EDT, Michel Dänzer
wrote:
> It doesn't seem to get assigned by the xserver code either. A leftover?
> (I just happened to notice this, there might be other similar issues)
It was indeed a leftover, it is now fixed in the repository.
Hi,
On Wednesday, August 30, 2017 03:19 EDT, Michel Dänzer <mic...@daenzer.net>
wrote:
> On 30/08/17 02:16 PM, Louis-Francis Ratté-Boulianne wrote:
> > Later events are sometimes added in front of the queue (e.g.
> > if page flipping fails) so we need to check the who
Thanks for saving me the trouble!
On Wed, 2017-10-04 at 15:25 -0400, Adam Jackson wrote:
> On Fri, 2017-09-29 at 18:22 +0200, Michel Dänzer wrote:
>
> > This is a bug fix which is independent of the rest of the series,
> > so it
> > should be submitted separately and applied for an upcoming
with the atomic API.
The helper functions to retrieve DRM properties have been borrowed
from Weston.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 3 +
hw/xfree86/drivers/modesetting/driver.c | 6 +
hw/x
Hi,
On Fri, 2017-09-29 at 18:45 +0200, Michel Dänzer wrote:
> On 27/09/17 07:19 AM, Louis-Francis Ratté-Boulianne wrote:
> > When the window has changed CRTC, send the event.
>
> This doesn't make sense to me I'm afraid.
> With the current present implementation,
Hello,
This is the RFC v4 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
Add screen/drawable modifier sets
v4: Free array returned by 'get_drawable_modifiers()'
Signed-off-by: Daniel Stone <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 2 +-
dri3/dri3.c |
Retrieve IN_FORMATS property from the plane. It gives the
allowed formats and modifiers for BO allocation.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 4 +
hw/xfree86/drivers/modesetting/drmmode_display.c
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 <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c
Use most optimal buffer format (e.g. tiled/compressed) available
for scanout.
v3: Don't use multi-plane modifier to create scanout buffer
v4: Add flag to retrieve modifiers set from enabled CRTCs only
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/d
for format renegotiation
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
squash: present send a PresentWindowCrtc
---
configure.ac| 2 +-
include/protocol-versions.h | 2 +-
present/meson.build | 2 +-
present/present.c
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 <l...@collabora.com>
---
glamor/glamor_egl.c | 44 ++-
hw/xw
On Fri, 2017-09-29 at 18:24 +0200, Michel Dänzer wrote:
> On 27/09/17 07:19 AM, Louis-Francis Ratté-Boulianne wrote:
> > 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 imp
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 <l...@collabora.com>
---
configure.ac | 4 +
glamor/glamor.c | 34 ---
glamor
DRI3 version 1.1 adds support for explicit format modifiers, including
multi-planar buffers.
Signed-off-by: Daniel Stone <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 2 +-
dri3pro
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 <l...@collabora.com>
---
include/protocol-versions.h | 2 +-
1 file changed, 1 insertion
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.
v4: Only send scanout-supported modifiers if flipping is possible
Signed-off-by: Louis-Francis Ra
Add support for 'check_flip2' so that the present core can know
why it is impossible to flip in that scenario. The core can then
let know the client that the buffer format/modifier is suboptimal.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modes
If the Complete event has this mode, the client is not using
the more optimal format/modifier for the buffer allocation.
Its main usage as of now is to allow clients to re-fetch DRI3
format modifiers as some modifiers might allow direct scanout.
Signed-off-by: Louis-Francis Ratté-Boulianne &l
This allows the uses of CCS compressed or tiled pixmaps as BOs when
page-flipping.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 46
hw/xfree86/drivers/modesetting/drmmode_display.h | 4 +
Needed so multiple types of sync fences can exist (SHM and DMA).
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
miext/sync/misync.c| 25 +++--
miext/sync/misync.h| 10 +-
miext/sync/misyncshm.c | 30 +++
This allows the uses of CCS compressed or tiled pixmaps as BOs when
page-flipping.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 46
hw/xfree86/drivers/modesetting/drmmode_display.h | 4 +
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 <l...@collabora.com>
---
Xext/sync.c| 34 +++-
Xext/syn
Use most optimal buffer format (e.g. tiled/compressed) available
for scanout.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 56
1 file changed, 56 insertions(+)
diff --git a/hw/xfree86/d
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 <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c
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 <l...@collabora.com>
---
configure.ac | 1 +
with the atomic API.
The helper functions to retrieve DRM properties have been borrowed
from Weston.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 3 +
hw/xfree86/drivers/modesetting/driver.c | 6 +
hw/x
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 <l...@collabora.com>
---
include/protocol-versions.h | 2 +-
1 file changed, 1 insertion
Retrieve IN_FORMATS property from the plane. It gives the
allowed formats and modifiers for BO allocation.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 4 +
hw/xfree86/drivers/modesetting/drmmode_display.c
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 <l...@collabora.com>
---
presenttokens.h | 8 ++--
1 file chan
Hi,
This patchset implements the second part of what we would like to see
become DRI3 v1.1, that is the implementation of DMA fences.
For some context, please see initial submission for DRI3 v1.1 work:
https://lists.x.org/archives/xorg-devel/2017-June/053854.html
This also implements some use
Drivers need to implement flip_with_fence and flush_with_fence
to create out-fences.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
present/present.c | 34 ++
present/present.h | 8
present/present_priv.h
Enable support for DMA fences in Glamor backend.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
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
--- a/
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 <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulia
From: Daniel Stone <dani...@collabora.com>
DRI3 version 1.1 adds support for explicit format modifiers, including
multi-planar buffers.
Signed-off-by: Daniel Stone <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
d
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 <l...@collabora.com>
---
configure.ac
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 <l...@collabora.com>
---
glamor/glamor_egl.c | 27 ++-
hw/xwayland/xwayland-glamor.
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 <l...@collabora.com>
---
present/pre
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 <l...@collabora.com>
---
configure.ac | 4 +
glamor/glamor.c | 34 +---
glamor
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 <l...@collabora.com>
---
present/present.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/present/prese
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
dri3/dri3_request.c | 58 +++--
1 file changed, 56 insertions(+), 2 deletions(-)
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
index f111dc46b..4192b3521
Create out-fence using eglCreateSyncKHR or OUT_FENCE_PTR DRM
property when page-flipping.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
glamor/glamor.c | 9 ++
glamor/glamor.h | 2 ++
Hi,
This is the RFC v2 for DRI3 v1.1 (minus the DMA fence part of it). For
context, please see:
https://lists.x.org/archives/xorg-devel/2017-June/053854.html
The main changes apart from bug fixes and cleanup are:
- DRI3 advertised version is not bumped in this serie. It will wait
for all
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 <l...@collabora.com>
---
glamor/gl
Hi,
On Wednesday, August 30, 2017 02:26 EDT, Michel Dänzer <mic...@daenzer.net>
wrote:
> On 30/08/17 01:45 PM, Louis-Francis Ratté-Boulianne wrote:
> > From: Daniel Stone <dani...@collabora.com>
> >
> > DRI3 version 1.1 adds support for explicit format modi
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 <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulia
Use most optimal buffer format (e.g. tiled/compressed) available
for scanout.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 69
1 file changed, 69 insertions(+)
diff --git a/hw/xfree86/d
.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
dri3/dri3_request.c | 94 +
include/protocol-versions.h | 2 +-
2 files changed, 95 insertions(+), 1 deletion(-)
diff --git a/dri3/dri3_request.c b/dri3/dri3_request.c
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 +
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
The functions will be needed outside of the driver.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/dri2.c| 8 +-
hw/xfree86/drivers/modesetting/driver.h | 4 -
hw/xfree86/drivers/modesetting/drmmode_display.c
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 <l...@collabora.com>
---
con
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 <l...@collabora.com>
---
include/protocol-versions.h | 2 +-
1 file changed, 1 insertion
Needed so multiple types of sync fences can exist (SHM and DMA).
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
miext/sync/misync.c| 25 +++--
miext/sync/misync.h| 10 +-
miext/sync/misyncshm.c | 30 +++
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 &l
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
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 --
DRI3 version 1.1 adds support for explicit format modifiers, including
multi-planar buffers.
Signed-off-by: Daniel Stone <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
dri3proto.h | 86 -
dri3pro
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 &l
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
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 +-
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
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 <l...@collabora.com>
---
src/
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
Retrieve IN_FORMATS property from the plane. It gives the
allowed formats and modifiers for BO allocation.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 4 +
hw/xfree86/drivers/modesetting/drmmode_display.c
Enable support for DMA fences in Glamor backend.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
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
--- a/
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:
-
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
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
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 <l...@collabora.com>
---
glamor/glamor_egl.c | 44 ++-
hw/xw
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 <l...@collabora.com>
Reviewed-by: Daniel Stone
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 <l...@collabora.com>
---
Xext/sync.c | 2 +-
1 file changed, 1 insertion(+),
DRI3 version 1.2 adds support for creating DMA fences and
retrieving the file descriptor backing one.
Signed-off-by: Daniel Stone <dani...@collabora.com>
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
dri3proto.h | 45 --
d
Drivers need to implement flip_with_fence and flush_with_fence
to create out-fences.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
present/present.c | 68 +++
present/present.h | 8 ++
present/present_
When the window has changed CRTC, send the event.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
present/present.c | 5 +
present/present_event.c | 35 +++
present/present_priv.h | 3 +++
3 files changed, 43 insertions(+)
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
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 <l...@collabora.com>
---
Xext/sync.c| 34 +++-
Xext/syn
This allows the uses of CCS compressed or tiled pixmaps as BOs when
page-flipping.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
hw/xfree86/drivers/modesetting/drmmode_display.c | 46
hw/xfree86/drivers/modesetting/drmmode_display.h | 4 +
optimal modifiers instead of just assuming they have
changed.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
src/vulkan/wsi/wsi_common_x11.c | 32 +++-
1 file changed, 27 insertions(+), 5 deletions(-)
diff --git a/src/vulkan/wsi/wsi_common_x
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 <l...@collabora.com>
---
present/pre
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 <l...@collabora.com>
---
configure.ac | 1 +
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(+)
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 <l...@collabora.com>
---
presenttokens.h | 8 ++--
1 file chan
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
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 +-
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 <l...@collabora.com>
---
present/present.c | 4
1 file changed, 4 deletions(-)
diff --git a/present/prese
with the atomic API.
The helper functions to retrieve DRM properties have been borrowed
from Weston.
Signed-off-by: Louis-Francis Ratté-Boulianne <l...@collabora.com>
---
configure.ac | 3 +
hw/xfree86/drivers/modesetting/driver.c | 6 +
hw/x
1 - 100 of 182 matches
Mail list logo