Re: [Mesa-dev] [PATCH] egl/wayland: break double/tripple buffering feedback loops

2019-01-15 Thread Derek Foreman
On 1/15/19 8:02 AM, Daniel Stone wrote: > Hi, > > On Tue, 18 Dec 2018 at 17:59, Lucas Stach wrote: >> Am Dienstag, den 18.12.2018, 17:43 + schrieb Emil Velikov: On Tue, 18 Dec 2018 at 11:16, Lucas Stach wrote: if (dri2_surf->back == NULL)

[Mesa-dev] [PATCH] egl/wayland: Make swrast display_sync the correct queue

2018-03-22 Thread Derek Foreman
for). The easiest known reproduction case is running weston-subsurfaces under weston --use-pixman Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/egl/drivers/dri2/platform_wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/driver

Re: [Mesa-dev] [PATCH mesa] egl: fix var type

2017-11-16 Thread Derek Foreman
a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -676,7 +676,7 @@ get_fourcc(struct dri2_egl_display *dri2_dpy, __DRIimage *image, int *fourcc) { EGLBoolean query; - uint32_t dri_format; + int dri_format; Yup, sorry. Reviewed-by: Derek Foreman &

Re: [Mesa-dev] [PATCH] egl/wayland: Add a fallback when fourcc query isn't supported

2017-11-14 Thread Derek Foreman
Please disregard, I misunderstood a comment in the bug tracker and this has been posted here before. Sorry for the line noise. On 2017-11-14 09:39 AM, Derek Foreman wrote: When queryImage doesn't support __DRI_IMAGE_ATTRIB_FOURCC wayland clients will die with a NULL derefence

[Mesa-dev] [PATCH] egl/wayland: Add a fallback when fourcc query isn't supported

2017-11-14 Thread Derek Foreman
When queryImage doesn't support __DRI_IMAGE_ATTRIB_FOURCC wayland clients will die with a NULL derefence in wl_proxy_add_listener. Attempt to provide a simple fallback to keep ancient systems working. Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/egl/driver

[Mesa-dev] [PATCH] vc4: Don't advertise tiled dmabuf modifiers if we can't use them

2017-10-05 Thread Derek Foreman
weston will result in a client side abort. Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/gallium/drivers/vc4/vc4_screen.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/g

Re: [Mesa-dev] [PATCH 2/2] wayland-drm: constify the callbacks struct, take 2

2017-09-27 Thread Derek Foreman
abora.com> Cc: Derek Foreman <der...@osg.samsung.com> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> --- Derek, can you please check the series on your end. I've ran this through wayland (xwayland and drm) + mpv and the simple weston demos (simple-egl, simple-damage

Re: [Mesa-dev] [PATCH] ttn: Fix out-of-bounds accesses since the always-2D-constants change.

2017-09-07 Thread Derek Foreman
This fixes a crash from glTexImage2D() at startup for all EFL applications on rpi3. Thanks, Tested-by: Derek Foreman <der...@osg.samsung.com> On 2017-09-07 12:17 PM, Eric Anholt wrote: Only one of the three checks for dim was updated, so we would try to set a UBO buffer index source

Re: [Mesa-dev] [PATCH] egl/wayland: resolve quirky try_damage_buffer() implementation

2017-01-13 Thread Derek Foreman
API, thus we can drop the quirky solution. Cc: Derek Foreman <der...@osg.samsung.com> Signed-off-by: Emil Velikov <emil.veli...@collabora.com> I'd forgotten this was still in place - thanks for coming back to it. Reviewed-by: Derek Foreman <der...@osg.samsung.com> --- One

[Mesa-dev] [PATCH] egl/dri2: add image_loader_extension back into loader extensions for wayland

2017-01-10 Thread Derek Foreman
before commit f871946594129500a67c05a6d9fe99db54b4bb64 image_loader_extension was always present in dri2_dpy->extensions, after that commit it is only present for render nodes. Its removal broke partial render based on buffer age on (at least) raspberry pi. Signed-off-by: Derek Foreman &

Re: [Mesa-dev] [PATCH] i915: Add XRGB8888 format to intel_screen_make_configs

2016-11-24 Thread Derek Foreman
On 24/11/16 08:53 AM, Emil Velikov wrote: On 24 November 2016 at 06:22, Boyan Ding <boyan.j.d...@gmail.com> wrote: 2016-11-24 13:29 GMT+08:00 Derek Foreman <der...@osg.samsung.com>: On 23/11/16 07:18 PM, Boyan Ding wrote: 2016-11-24 7:01 GMT+08:00 Derek Foreman <der...@

Re: [Mesa-dev] [PATCH] i915: Add XRGB8888 format to intel_screen_make_configs

2016-11-23 Thread Derek Foreman
On 23/11/16 07:18 PM, Boyan Ding wrote: 2016-11-24 7:01 GMT+08:00 Derek Foreman <der...@osg.samsung.com>: This is a copy of commit 536003c11e4cb1172c540932ce3cce06f03bf44e except for i915. Original log for the i965 commit follows: Some application, such as drm backend of weston

[Mesa-dev] [PATCH] i915: Add XRGB8888 format to intel_screen_make_configs

2016-11-23 Thread Derek Foreman
takes ARGB as XRGB. Now that commit 65c8965d makes EGL recognize format correctly so weston won't start because it can't find XRGB. Add XRGB format to i965 just as other drivers do. Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/mesa/drivers/dr

[Mesa-dev] [PATCH v2] gbm/drm: Pick the oldest available buffer in get_back_bo

2016-11-23 Thread Derek Foreman
trim our queue in any way, an application that briefly needs a large number of buffers will continue to receive older buffers than it would if it only ever needed two buffers. Reviewed-by: Daniel Stone <dani...@collabora.com> Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- The

[Mesa-dev] [PATCH] gbm/drm: Pick the oldest available buffer in get_back_bo

2016-11-09 Thread Derek Foreman
ani...@collabora.com> Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/egl/drivers/dri2/platform_drm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 2099314..f812ab5 100644 -

Re: [Mesa-dev] [PATCH] Revert "wayland: Block for the frame callback in get_back_bo not dri2_swap_buffers"

2016-11-09 Thread Derek Foreman
begin but delaying SwapBuffers, unless and until we can find a more gentle behaviour. Ping - adding a couple more CCs. This looks correct to me. I've done some testing with weston and enlightenment and various EFL clients, and note no regressions. Reviewed-by: Derek Foreman <der...@osg.sa

Re: [Mesa-dev] [PATCH v2] egl/wayland: Try to use wl_surface.damage_buffer for SwapBuffersWithDamage

2016-02-17 Thread Derek Foreman
On 16/02/16 10:37 AM, Daniel Stone wrote: > Hi, > > On 16 February 2016 at 16:34, Derek Foreman <der...@osg.samsung.com> wrote: >> +try_damage_buffer(struct dri2_egl_surface *dri2_surf, >> + const EGLint *rects, >>

[Mesa-dev] [PATCH v2] egl/wayland: Try to use wl_surface.damage_buffer for SwapBuffersWithDamage

2016-02-16 Thread Derek Foreman
the incoming damage as being in buffer co-ordinates. Reviewed-by: Jason Ekstrand <ja...@jlekstrand.net> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- Changes from v1: Add comment explaining why the call to wl

Re: [Mesa-dev] [PATCH] egl/wayland: Try to use wl_surface.damage_buffer for SwapBuffersWithDamage

2016-02-12 Thread Derek Foreman
On 12/02/16 04:46 PM, Emil Velikov wrote: > On 11 February 2016 at 16:34, Derek Foreman <der...@osg.samsung.com> wrote: >> Since commit d1314de293e9e4a63c35f094c3893aaaed8580b4 we ignore >> damage passed to SwapBuffersWithDamage. >> >> Wayland 1.10 now has functio

[Mesa-dev] [PATCH] egl/wayland: Try to use wl_surface.damage_buffer for SwapBuffersWithDamage

2016-02-11 Thread Derek Foreman
the incoming damage as being in buffer co-ordinates. Signed-off-by: Derek Foreman <der...@osg.samsung.com> --- src/egl/drivers/dri2/platform_wayland.c | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/s

[Mesa-dev] [PATCH 4/4] egl: Use the loader_open_device() helper to do open with CLOEXEC

2015-06-17 Thread Derek Foreman
We've moved the open with CLOEXEC idiom into a helper function, so call it instead of duplicating the code. This also replaces a couple of opens that didn't properly do CLOEXEC. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/egl/drivers/dri2/platform_drm.c | 4 ++-- src

[Mesa-dev] [PATCH 1/4] egl/drm: Duplicate fd with F_DUPFD_CLOEXEC to prevent leak

2015-06-17 Thread Derek Foreman
Replacing dup() with fcntl F_DUPFD_CLOEXEC creates the duplicate file descriptor with CLOEXEC so it won't be leaked to child processes if the process fork()s later. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/egl/drivers/dri2/platform_drm.c | 2 +- 1 file changed, 1 insertion

[Mesa-dev] [PATCH 0/4] CLOEXEC fix-ups

2015-06-17 Thread Derek Foreman
This series catches a couple of places where we forget to set CLOEXEC on file descriptors, and makes a helper function for the necessarily ugly way we have to open fds to make sure CLOEXEC is set. Derek Foreman (4): egl/drm: Duplicate fd with F_DUPFD_CLOEXEC to prevent leak loader: Rename

[Mesa-dev] [PATCH 3/4] glx: Use loader_open_device() helper

2015-06-17 Thread Derek Foreman
We've moved the open with CLOEXEC idiom into a helper function, so call it instead of duplicating the code here. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/glx/dri2_glx.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx

[Mesa-dev] [PATCH 2/4] loader: Rename drm_open_device() to loader_open_device() and share it

2015-06-17 Thread Derek Foreman
This is already our common idiom for opening files with CLOEXEC and it's a little ugly, so let's share this one implementation. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/loader/loader.c | 6 +++--- src/loader/loader.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions

Re: [Mesa-dev] [PATCH] egl/drm: Try to use CLOEXEC for drm fds

2015-06-12 Thread Derek Foreman
On 12/06/15 05:52 PM, Emil Velikov wrote: On 12/06/15 19:05, Derek Foreman wrote: On 12/06/15 11:29 AM, Emil Velikov wrote: Hi Derek, Hi, thanks for looking at this. :) Props goes to Matt, for the reminder. It kind of fell of my radar. On 1 May 2015 at 18:34, Derek Foreman der

[Mesa-dev] [PATCH 2/2] egl/glx: Use helper function to open devices to ensure CLOEXEC is set

2015-06-12 Thread Derek Foreman
We do this right almost everywhere already, but the idiom is a little gruesome. This moves it into loader.c and fixes dri2_initialize_drm() which could open without CLOEXEC in some cases. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/egl/drivers/dri2/platform_drm.c | 4

Re: [Mesa-dev] [PATCH] egl/drm: Try to use CLOEXEC for drm fds

2015-06-12 Thread Derek Foreman
On 12/06/15 11:29 AM, Emil Velikov wrote: Hi Derek, Hi, thanks for looking at this. :) On 1 May 2015 at 18:34, Derek Foreman der...@osg.samsung.com wrote: These fds can propagate to child processes if we don't set CLOEXEC, so make a best effort to do that. Signed-off-by: Derek Foreman der

[Mesa-dev] [PATCH 1/2] egl/drm: set CLOEXEC on fd after dup()

2015-06-12 Thread Derek Foreman
Prevents fd leak if the caller forks later. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/egl/drivers/dri2/platform_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 3391afc..5c356c4 100644

Re: [Mesa-dev] [PATCH 2/2] egl/glx: Use helper function to open devices to ensure CLOEXEC is set

2015-06-12 Thread Derek Foreman
On 12/06/15 06:04 PM, Emil Velikov wrote: On 12/06/15 19:07, Derek Foreman wrote: We do this right almost everywhere already, but the idiom is a little gruesome. This moves it into loader.c and fixes dri2_initialize_drm() which could open without CLOEXEC in some cases. Signed-off-by: Derek

[Mesa-dev] [PATCH] egl/drm: Try to use CLOEXEC for drm fds

2015-05-01 Thread Derek Foreman
These fds can propagate to child processes if we don't set CLOEXEC, so make a best effort to do that. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Noticed this when fixing up similar problems in weston - weston's drm fd gets dup()ed here and loses CLOEXEC and ends up in every child