[Mesa-dev] [PATCH v3 08/15] egl_dri2: add support for using modifier attributes in eglCreateImageKHR

2017-05-10 Thread Varad Gautam
From: Varad Gautam allow creating EGLImages with dmabuf format modifiers when target is EGL_LINUX_DMA_BUF_EXT for EGL_EXT_image_dma_buf_import_modifiers. v2: - clear modifier assembling and error label name (Eric Engestrom) v3: - remove goto jumps within switch-case (Emil Velikov) - treat

[Mesa-dev] [PATCH v3 03/15] egl: introduce DMA_BUF_MAX_PLANES

2017-05-10 Thread Varad Gautam
From: Pekka Paalanen Rather than hardcoding 3, use a #define. Makes it easier to bump this later to 4. Signed-off-by: Pekka Paalanen Signed-off-by: Varad Gautam Reviewed-by: Eric Engestrom --- src/egl/drivers/dri2/egl_dri2.c | 8 src/egl/main/eglimage.h | 8 +--- 2

[Mesa-dev] [PATCH v3 09/15] dri: add queryDmaBufFormats and queryDmaBufModifiers to DRIimage

2017-05-10 Thread Varad Gautam
From: Varad Gautam these allow querying the driver for supported dmabuf formats and modifiers. v2: move to __DRIimageExtension version 16. v3: return GLBoolean for error reporting, document params better. Signed-off-by: Varad Gautam --- include/GL/internal/dri_interface.h | 42

[Mesa-dev] [PATCH v3 10/15] st/dri: support format queries

2017-05-10 Thread Varad Gautam
From: Varad Gautam ask the driver for supported dmabuf formats v2: rebase to master. v3: return false on failure. v4: use pscreen->is_format_supported instead of adding a new query. (Lucas Stach) Signed-off-by: Varad Gautam --- src/gallium/state_trackers/dri/dri2.c |

[Mesa-dev] [PATCH v3 11/15] egl: implement eglQueryDmaBufFormatsEXT

2017-05-10 Thread Varad Gautam
From: Varad Gautam allow egl clients to query the dmabuf formats supported on this platform. v2: rebase to master. v3: return EGL_FALSE upon failure. Signed-off-by: Louis-Francis Ratté-Boulianne Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 18 ++ src/egl

[Mesa-dev] [PATCH v3 13/15] st/dri: support format modifier queries

2017-05-10 Thread Varad Gautam
From: Varad Gautam ask the driver for supported modifiers for a given format. bump __DRIimageExtension to 16. v2: move to __DRIimageExtension v16. v3: fail if the supplied format is not supported by driver. v4: purge PIPE_CAP_QUERY_DMABUF_ATTRIBS. Signed-off-by: Varad Gautam --- src/gallium

[Mesa-dev] [PATCH v3 14/15] egl: implement eglQueryDmaBufModifiersEXT

2017-05-10 Thread Varad Gautam
From: Varad Gautam query and return supported dmabuf format modifiers for EGL_EXT_image_dma_buf_import_modifiers. v2: rebase to master. v3: move format check to the driver instead of making format queries from here and then checking. Signed-off-by: Varad Gautam --- src/egl/drivers/dri2

[Mesa-dev] [PATCH v3 12/15] gallium: introduce format modifier querying

2017-05-10 Thread Varad Gautam
From: Varad Gautam format modifiers tokens are driver specific, and hence, need to come in from the driver. this allows drivers to be queried for supported format modifiers for EGL_EXT_image_dma_buf_import_modifiers. v2: rebase to master. v3: drivers must return false on query failure. v4: use

[Mesa-dev] [PATCH v3 15/15] egl: advertise EGL_EXT_image_dma_buf_import_modifiers

2017-05-10 Thread Varad Gautam
From: Varad Gautam Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 6 ++ src/egl/main/eglapi.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 7f0edf6..853b6e5 100644 --- a/src/egl

Re: [Mesa-dev] [PATCH v3 02/15] dri: Add an image creation with modifiers

2017-05-11 Thread Varad Gautam
On Thu, May 11, 2017 at 10:26 PM, Ben Widawsky wrote: > On 17-05-10 23:15:29, Varad Gautam wrote: >> >> From: Ben Widawsky >> >> Modifiers will be obtained or guessed by the client and passed in during >> image creation/import. >> >> As of this pa

[Mesa-dev] [RFC] st/dri: implement createImageWithModifiers

2017-05-12 Thread Varad Gautam
atch/155312/ complete tree, with the egl series: https://git.collabora.com/cgit/user/varad/mesa.git/log/?h=egl-modifiers-v4 Signed-off-by: Varad Gautam --- src/gallium/include/pipe/p_screen.h | 13 ++ src/gallium/state_trackers/dri/dri2.c | 80 --- 2 files

Re: [Mesa-dev] [RFC] st/dri: implement createImageWithModifiers

2017-05-15 Thread Varad Gautam
Hi Lucas, On Fri, May 12, 2017 at 4:22 PM, Lucas Stach wrote: > Hi Varad, > > Am Freitag, den 12.05.2017, 15:11 +0530 schrieb Varad Gautam: >> gallium doesn't have a way to pass modifiers to the driver when creating >> resources. we require this to sup

Re: [Mesa-dev] [PATCH] st/dri: Add support for PIPE_FORMAT_RGBX8888_UNORM

2017-06-19 Thread Varad Gautam
pf = PIPE_FORMAT_RGBX_UNORM; > + break; > case __DRI_IMAGE_FORMAT_ABGR: > pf = PIPE_FORMAT_RGBA_UNORM; >break; Reviewed-by: Varad Gautam > -- > 2.13.1.518.g3df882009-goog > > ___ > mesa-dev mailing list

Re: [Mesa-dev] [PATCH v2 00/14] implement EGL_EXT_image_dma_buf_import_modifiers v2

2017-01-04 Thread Varad Gautam
Hi Ben, On Wed, Jan 4, 2017 at 3:25 AM, Ben Widawsky wrote: > On 16-11-24 20:50:37, Varad Gautam wrote: >> >> This is the second revision to the EGL_EXT_image_dma_buf_import_modifiers >> [1] >> series at [2], addressing the comments received. This diverges from v1

[Mesa-dev] [PATCH v2] dri: add queryDmaBufFormats and queryDmaBufModifiers to DRIimage

2017-04-14 Thread Varad Gautam
From: Varad Gautam these allow querying the driver for supported dmabuf formats and modifiers. v2: move to __DRIimageExtension version 16. Signed-off-by: Varad Gautam --- include/GL/internal/dri_interface.h | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH v2] egl: implement eglQueryDmaBufFormatsEXT

2017-04-14 Thread Varad Gautam
From: Varad Gautam allow egl clients to query the dmabuf formats supported on this platform. v2: rebase to master. Signed-off-by: Louis-Francis Ratté-Boulianne Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 17 + src/egl/main/eglapi.c | 18

[Mesa-dev] [PATCH v2] st/dri: support format modifier queries

2017-04-14 Thread Varad Gautam
From: Varad Gautam ask the driver for supported modifiers for a given format. bump __DRIimageExtension to 16. v2: move to __DRIimageExtension v16. Signed-off-by: Varad Gautam --- src/gallium/state_trackers/dri/dri2.c | 21 - 1 file changed, 20 insertions(+), 1 deletion

[Mesa-dev] [PATCH v2] st/dri: support format queries

2017-04-14 Thread Varad Gautam
From: Varad Gautam ask the driver for supported dmabuf formats v2: rebase to master. Signed-off-by: Varad Gautam --- src/gallium/state_trackers/dri/dri2.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers

[Mesa-dev] [PATCH v2] st/dri: implement DRIimage creation from dmabufs with modifiers

2017-04-14 Thread Varad Gautam
From: Varad Gautam support importing dmabufs into DRIimage while taking format modifiers in account, and bump __DRIimageExtension on gallium to version 15. v2: move to __DRIimageExtension v15. Signed-off-by: Varad Gautam --- src/gallium/include/state_tracker/drm_driver.h | 2 ++ src/gallium

[Mesa-dev] [PATCH v2] gallium: introduce dmabuf format and modifier querying

2017-04-14 Thread Varad Gautam
From: Varad Gautam allows drivers to be queried for supported formats and format modifiers for EGL_EXT_image_dma_buf_import_modifiers. drivers that implement format/modifier queries must advertise these under PIPE_CAP_QUERY_DMABUF_ATTRIBS. v2: rebase to master. Signed-off-by: Varad Gautam

[Mesa-dev] [PATCH v2] dri: support DRIimage creation from dmabufs with modifiers

2017-04-14 Thread Varad Gautam
From: Pekka Paalanen add createImageFromDmaBufs2 function which accepts per-plane dmabuf format modifiers. v2: resolve DRIimage version conflict by moving createImageFromDmaBufs2 to v15. Signed-off-by: Pekka Paalanen Signed-off-by: Varad Gautam --- include/GL/internal/dri_interface.h

[Mesa-dev] [PATCH v2] egl: advertise EGL_EXT_image_dma_buf_import_modifiers

2017-04-14 Thread Varad Gautam
From: Varad Gautam v2: check for both queryDmaBufFormats and queryDmaBufModifiers, rebase to master. Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 6 ++ src/egl/main/eglapi.c | 1 + 2 files changed, 7 insertions(+) diff --git a/src/egl/drivers/dri2

[Mesa-dev] [PATCH v2] egl: implement eglQueryDmaBufModifiersEXT

2017-04-14 Thread Varad Gautam
From: Varad Gautam query and return supported dmabuf format modifiers for EGL_EXT_image_dma_buf_import_modifiers. v2: rebase to master. Signed-off-by: Varad Gautam --- src/egl/drivers/dri2/egl_dri2.c | 47 + src/egl/main/eglapi.c | 20

<    1   2