[PATCH] doc: be explicit about requests not returning a value

2017-05-15 Thread Varad Gautam
From: Varad Gautam document how the asynchronous model works for requests and events to avoid any confusion. Signed-off-by: Varad Gautam Suggested-by: Pekka Paalanen --- doc/publican/sources/Protocol.xml | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/publican

Re: [PATCH wayland-protocols v4] linux-dmabuf: advertise format modifiers with modifier event

2017-05-11 Thread Varad Gautam
Hello, On Thu, Jan 19, 2017 at 1:48 PM, Varad Gautam wrote: > From: Varad Gautam > > advertise the supported fourcc format modifiers along with supported > formats to the client. the 'modifier' event introduced here is > intended to replace the 'format' event

Re: [PATCH wayland-protocols v4] linux-dmabuf: add immediate dmabuf import path

2017-05-11 Thread Varad Gautam
Hi all, On Fri, Feb 10, 2017 at 1:28 PM, Varad Gautam wrote: > From: Varad Gautam > > provide a mechanism that allows clients to import the added dmabufs > and immediately use the newly created wl_buffers without waiting on > an event. this is useful to clients that are sure

[PATCH v2] linux-dmabuf: advertise supported formats and modifiers

2017-04-26 Thread Varad Gautam
From: Varad Gautam implement 'modifier' event to communicate available formats and modifiers to the client and support zwp_linux_dmabuf_v1 interface version 3. v2: handle zero modifiers case, deprecate 'format' event. Signed-off-by: Varad Gautam --- Although DRM_FO

[PATCH v2] clients/simple-dmabuf-drm: add freedreno support alongside intel

2017-04-26 Thread Varad Gautam
abstract drm specific bits to struct drm_device and support running on freedreno. introduce 'modifier' event. v2: rebase to master, deprecate 'format' event. Signed-off-by: Varad Gautam --- protocol: https://patchwork.freedesktop.org/patch/133970/ tree: git://git.collabor

[RESEND][weston v2 1/2] linux-dmabuf: implement immediate dmabuf import

2017-04-26 Thread Varad Gautam
From: Varad Gautam handle create_immed() dmabuf import requests and support zwp_linux_dmabuf_v1_interface version 2. v2: terminate client with INVALID_WL_BUFFER when reason for create_immed failure is unknown. Signed-off-by: Varad Gautam --- protocol: https://patchwork.freedesktop.org

[RESEND][weston v2 2/2] clients/simple-dmabuf-intel: request no-roundtrip dmabuf import

2017-04-26 Thread Varad Gautam
From: Varad Gautam request immediate dmabuf import when run with "immed" arg. Signed-off-by: Varad Gautam --- protocol: https://patchwork.freedesktop.org/patch/138175/ tree: git://git.collabora.com/git/user/varad/weston.git dmabuf-immediate-v2 clients/simple-dmabuf-in

[PATCH wayland-protocols v4] linux-dmabuf: add immediate dmabuf import path

2017-02-10 Thread Varad Gautam
From: Varad Gautam provide a mechanism that allows clients to import the added dmabufs and immediately use the newly created wl_buffers without waiting on an event. this is useful to clients that are sure of their import request succeeding, and wish to avoid the wl_buffer communication roundtrip

Re: [PATCH wayland-protocols v3] linux-dmabuf: add immediate dmabuf import path

2017-02-06 Thread Varad Gautam
Hi Pekka, On Fri, Feb 3, 2017 at 8:39 PM, Pekka Paalanen wrote: > On Tue, 31 Jan 2017 18:41:52 +0530 > Varad Gautam wrote: > >> From: Varad Gautam >> >> provide a mechanism that allows clients to import the added dmabufs >> and immediately use the newly crea

[PATCH wayland-protocols v3] linux-dmabuf: add immediate dmabuf import path

2017-01-31 Thread Varad Gautam
From: Varad Gautam provide a mechanism that allows clients to import the added dmabufs and immediately use the newly created wl_buffers without waiting on an event. this is useful to clients that are sure of their import request succeeding, and wish to avoid the wl_buffer communication roundtrip

Re: [weston 1/2] linux-dmabuf: implement immediate dmabuf import

2017-01-30 Thread Varad Gautam
Hi Pekka, On Fri, Jan 27, 2017 at 6:32 PM, Pekka Paalanen wrote: > On Mon, 21 Nov 2016 21:27:03 + > Daniel Stone wrote: > >> Hi Varad, >> >> On 11 November 2016 at 11:40, Varad Gautam wrote: >> > handle create_immed() dmabuf import requests and suppor

[PATCH wayland-protocols v4] linux-dmabuf: advertise format modifiers with modifier event

2017-01-19 Thread Varad Gautam
From: Varad Gautam advertise the supported fourcc format modifiers along with supported formats to the client. the 'modifier' event introduced here is intended to replace the 'format' event from zwp_linux_dmabuf_v1 version 1. bump zwp_linux_dmabuf_v1, zwp_linux_buffer

[PATCH weston v2 1/2] linux-dmabuf: implement immediate dmabuf import

2017-01-18 Thread Varad Gautam
From: Varad Gautam handle create_immed() dmabuf import requests and support zwp_linux_dmabuf_v1_interface version 2. Signed-off-by: Varad Gautam --- libweston/linux-dmabuf.c | 62 +++- 1 file changed, 51 insertions(+), 11 deletions(-) diff --git a

[PATCH weston v2 2/2] clients/simple-dmabuf-intel: request no-roundtrip dmabuf import

2017-01-18 Thread Varad Gautam
From: Varad Gautam request immediate dmabuf import when run with "immed" arg. Signed-off-by: Varad Gautam --- clients/simple-dmabuf-intel.c | 36 +++- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/clients/simple-dmabuf-intel.c b/clie

[PATCH wayland-protocols v2] linux-dmabuf: add immediate dmabuf import path

2017-01-18 Thread Varad Gautam
From: Varad Gautam provide a mechanism that allows clients to import the added dmabufs and immediately receive the newly created wl_buffer handle. this is useful to clients that are sure of their import request succeeding, and wish to avoid the wl_buffer communication roundtrip. bump

Re: [wayland-protocols v3] linux-dmabuf: advertise format modifiers with modifier event

2017-01-17 Thread Varad Gautam
Hi, On Tue, Jan 17, 2017 at 7:40 PM, Pekka Paalanen wrote: > On Mon, 21 Nov 2016 15:47:39 +0530 > Varad Gautam wrote: > >> From: Varad Gautam >> >> advertise the supported fourcc format modifiers along with supported >> formats to the clien

Re: [PATCH wayland-protocols, weston 0/10] format modifier support for linux-dmabuf

2017-01-11 Thread Varad Gautam
og/?h=dmabuf-modifiers [2] https://git.collabora.com/cgit/user/varad/weston.git/log/?h=dmabuf-modifiers [3] https://lists.freedesktop.org/archives/wayland-devel/2016-November/031537.html Thanks, Varad On Thu, Nov 17, 2016 at 5:25 PM, Varad Gautam wrote: > Hello, > > This series amends th

[PATCH v2] gl-renderer: support format and modifier queries

2016-11-23 Thread Varad Gautam
From: Varad Gautam EGL_EXT_image_dma_buf_import_modifiers allows querying the formats and modifiers supported by the platform. expose these to the compositor. v2: - change calloc args (Daniel Stone) - check for modifier support before querying formats (Daniel Stone) Signed-off-by: Varad

[PATCH v2] gl-renderer: allow importing fourth dmabuf plane

2016-11-23 Thread Varad Gautam
From: Varad Gautam EGL_EXT_image_dma_buf_import_modifiers supports importing upto four dmabuf planes into an EGLImage. v2: correct PLANE3_PITCH token (Daniel Stone) Signed-off-by: Varad Gautam Reviewed-by: Daniel Stone --- libweston/gl-renderer.c| 17 - libweston/weston

[PATCH v2] clients/simple-dmabuf-drm: import with dmabuf modifiers

2016-11-23 Thread Varad Gautam
From: Varad Gautam mesa's freedreno driver supports importing dmabufs with format DRM_FORMAT_NV12 and DRM_FORMAT_MOD_SAMSUNG_64_32_TILE modifier. demonstrate weston modifier advertising and import path using this combination when run with --import-format=NV12. v2: - hard code form

[PATCH v2] gl-renderer: allow importing dmabufs with format modifiers

2016-11-23 Thread Varad Gautam
From: Varad Gautam pass over the modifier attributes to EGL. v2: ensure same modifier is passed for all planes (Daniel Stone) Signed-off-by: Varad Gautam --- libweston/gl-renderer.c| 29 ++--- libweston/weston-egl-ext.h | 6 ++ 2 files changed, 32 insertions

[wayland-protocols v3] linux-dmabuf: advertise format modifiers with modifier event

2016-11-21 Thread Varad Gautam
From: Varad Gautam advertise the supported fourcc format modifiers along with supported formats to the client. bump zwp_linux_dmabuf_v1, zwp_linux_buffer_params_v1 interface versions to 3. v2: specify request name in event description for clarity (Yong Bakos) v3: grammar fixup (Yong Bakos

[wayland-protocols v2] linux-dmabuf: clarify format event description

2016-11-21 Thread Varad Gautam
From: Varad Gautam clearly state the request name in format event to avoid abmiguous interpretation between 'zwp_linux_buffer_params_v1::create' and 'zwp_linux_dmabuf_v1::create_params' requests. v2: grammar fixup (Yong Bakos) Suggested-by: Yong Bakos Signed-off-by: Varad

[wayland-protocols] linux-dmabuf: clarify format event description

2016-11-17 Thread Varad Gautam
From: Varad Gautam clearly state the request name in format event to avoid abmiguous interpretation between 'zwp_linux_buffer_params_v1::create' and 'zwp_linux_dmabuf_v1::create_params' requests. Suggested-by: Yong Bakos Signed-off-by: Varad Gautam --- unstable/linux

[wayland-protocols v2] linux-dmabuf: advertise format modifiers with modifier event

2016-11-17 Thread Varad Gautam
From: Varad Gautam advertise the supported fourcc format modifiers along with supported formats to the client. bump zwp_linux_dmabuf_v1, zwp_linux_buffer_params_v1 interface versions to 3. v2: specify request name in event description for clarity (Yong Bakos) Signed-off-by: Varad Gautam

[PATCH weston 7/9] clients/simple-dmabuf-drm: import with dmabuf modifiers

2016-11-17 Thread Varad Gautam
From: Varad Gautam mesa's freedreno driver supports importing dmabufs with format DRM_FORMAT_NV12 and DRM_FORMAT_MOD_SAMSUNG_64_32_TILE modifier. demonstrate weston modifier advertising and import path using this combination when run with --import-format=NV12. Signed-off-by: Varad G

[PATCH weston 9/9] clients/simple-dmabuf-drm: use tiled frame data with modifiers

2016-11-17 Thread Varad Gautam
From: Varad Gautam fill the dmabuf with valid DRM_FORMAT_NV12 + DRM_FORMAT_MOD_SAMSUNG_64_32_TILE frame data before importing to display a non-gibberish pattern when importing with modifiers. Signed-off-by: Varad Gautam --- clients/simple-dmabuf-drm.c | 21 +++-- 1 file

[PATCH weston 3/9] gl-renderer: allow importing dmabufs with format modifiers

2016-11-17 Thread Varad Gautam
From: Varad Gautam pass over the modifier attributes to EGL. Signed-off-by: Varad Gautam --- libweston/gl-renderer.c| 26 ++ libweston/weston-egl-ext.h | 6 ++ 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/libweston/gl-renderer.c b/libweston

[PATCH weston 5/9] clients/simple-dmabuf-intel: rename to simple-dmabuf-drm

2016-11-17 Thread Varad Gautam
From: Varad Gautam this will allow adding other drm backends later. Signed-off-by: Varad Gautam --- Makefile.am | 12 +- clients/simple-dmabuf-drm.c | 668 ++ clients/simple-dmabuf-intel.c | 668

[PATCH weston 6/9] clients/simple-dmabuf-drm: add freedreno support alongside intel

2016-11-17 Thread Varad Gautam
From: Varad Gautam abstract drm specific bits to struct drm_device and support running on freedreno. Signed-off-by: Varad Gautam --- Makefile.am | 2 +- clients/simple-dmabuf-drm.c | 214 configure.ac| 19 ++-- 3

[PATCH weston 2/9] linux-dmabuf: advertise supported formats and modifiers

2016-11-17 Thread Varad Gautam
From: Varad Gautam implement 'format' and 'modifier' events to communicate available formats and modifiers to the client and support zwp_linux_dmabuf_v1 interface version 3. Signed-off-by: Varad Gautam --- libweston/linux-dmabuf.c | 33 +

[PATCH weston 4/9] gl-renderer: allow importing fourth dmabuf plane

2016-11-17 Thread Varad Gautam
From: Varad Gautam EGL_EXT_image_dma_buf_import_modifiers supports importing upto four dmabuf planes into an EGLImage. Signed-off-by: Varad Gautam --- libweston/gl-renderer.c| 17 - libweston/weston-egl-ext.h | 5 + 2 files changed, 21 insertions(+), 1 deletion

[PATCH wayland-protocols, weston 0/10] format modifier support for linux-dmabuf

2016-11-17 Thread Varad Gautam
EGL_EXT_image_dma_buf_import_modifiers and modifier support in freedreno is located at: git://git.collabora.com/git/user/varad/mesa.git a3xx-nv12mt-sampling Thanks, Varad wayland-protocols: Varad Gautam (1): linux-dmabuf: advertise format modifiers with modifier event unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml | 24

[PATCH weston 1/9] gl-renderer: support format and modifier queries

2016-11-17 Thread Varad Gautam
From: Varad Gautam EGL_EXT_image_dma_buf_import_modifiers allows querying the formats and modifiers supported by the platform. expose these to the compositor. Signed-off-by: Varad Gautam --- libweston/compositor.h | 7 libweston/gl-renderer.c| 84

[wayland-protocols] linux-dmabuf: advertise format modifiers with modifier event

2016-11-17 Thread Varad Gautam
From: Varad Gautam advertise the supported fourcc format modifiers along with supported formats to the client. bump zwp_linux_dmabuf_v1, zwp_linux_buffer_params_v1 interface versions to 3. Signed-off-by: Varad Gautam --- unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml | 24

[PATCH wayland-protocols, weston] Extend linux-dmabuf to bypass roundtrip during dmabuf import

2016-11-11 Thread Varad Gautam
Hello, This patchset provides an immediate path to import dmabufs into a wl_buffer to avoid the round-trip wait a client must face to receive the buffer handle. Previous discussion: https://phabricator.freedesktop.org/T7570 Varad wayland-protocols: Varad Gautam (1): linux-dmabuf: add

[wayland-protocols] linux-dmabuf: add immediate dmabuf import path

2016-11-11 Thread Varad Gautam
From: Varad Gautam provide a mechanism that allows clients to import the added dmabufs and immediately receive the newly created wl_buffer handle. this is useful to clients that are sure of their import request succeeding, and wish to avoid the wl_buffer communication roundtrip. bump

[weston 2/2] clients/simple-dmabuf-intel: request no-roundtrip dmabuf import

2016-11-11 Thread Varad Gautam
From: Varad Gautam request immediate dmabuf import when run with "immed" arg. Signed-off-by: Varad Gautam --- clients/simple-dmabuf-intel.c | 59 ++- 1 file changed, 53 insertions(+), 6 deletions(-) diff --git a/clients/simple-dmabuf-intel.c

[weston 1/2] linux-dmabuf: implement immediate dmabuf import

2016-11-11 Thread Varad Gautam
From: Varad Gautam handle create_immed() dmabuf import requests and support zwp_linux_dmabuf_v1_interface version 2. Signed-off-by: Varad Gautam --- libweston/linux-dmabuf.c | 56 ++-- 1 file changed, 45 insertions(+), 11 deletions(-) diff --git a