[Mesa-dev] [PATCH] gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling.

2013-08-15 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 1 + src/gallium/drivers/i915/i915_resource.c| 8 ++-- src/gallium/drivers/ilo/ilo_resource.c | 2 +- src/gallium/drivers/nv50/nv50_miptree.c | 3 +++ src/gallium/drivers/nvc0

[Mesa-dev] [PATCH] gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling.

2013-08-15 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 1 + src/gallium/drivers/i915/i915_resource.c| 8 ++-- src/gallium/drivers/ilo/ilo_resource.c | 2 +- src/gallium/drivers/nv50/nv50_miptree.c | 3 +++ src/gallium/drivers/nvc0

Re: [Mesa-dev] [PATCH] gallium, intel: Implements new __DRI_IMAGE_USE_LINEAR and PIPE_BIND_LINEAR flags to enforce no tiling.

2013-08-26 Thread Axel Davy
device on use the buffer on the integrated device in multi-gpu laptops. Axel Davy On 15/08/2013 12:47, Axel Davy wrote : Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 1 + src/gallium/drivers/i915/i915_resource.c| 8 ++-- src/gallium

Re: [Mesa-dev] [PATCH] DRI Image v7 support for gallium drivers

2013-10-30 Thread Axel Davy
All the patches look fine. I think they are ready for merging (there are few trailing whitespace errors when applying, but nothing bad). We want these patches for Wayland Prime support, and it should be useful too for X Dri3. Axel Davy ___ mesa

[Mesa-dev] [PATCH 2/3] Create untiled buffers in get_back_bo when needed.

2013-11-07 Thread Axel Davy
We must send to the compositor buffer it is able to read. Since tiling modes are different on graphic cards, we have to disable tiling when creating the buffers if we render with a different graphic card than the compositor. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2

[Mesa-dev] [PATCH 0/3] Implement DRI_PRIME support for Wayland

2013-11-07 Thread Axel Davy
is still writing on the buffer when the compositor's card reads it). Using an embedded compositor suppress all the glitches when it doesn't take (1/refresh_rate) seconds for it to render a frame, that is when you don't have an input lag. Axel Davy (3): Move the code to open the graphic device

[Mesa-dev] [PATCH 1/3] Move the code to open the graphic device. Support for render-nodes.

2013-11-07 Thread Axel Davy
This patch moves the code to open the graphic device in the Wayland backend, removes the authentication request when we are on a render-node, and has a few fixes. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c

[Mesa-dev] [PATCH 3/3] Implement choosing the device to use with DRI_PRIME

2013-11-07 Thread Axel Davy
( no render-nodes, render-nodes not advertising ID_PATH_TAG, invalid ID_PATH_TAG), then the compositor card is used. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/platform_wayland.c | 168 ++-- 1 file changed, 160 insertions(+), 8 deletions(-) diff --git

[Mesa-dev] [PATCH 3/3 v2] Implement choosing the device to use with DRI_PRIME

2013-11-07 Thread Axel Davy
two formats are supported: DRI_PRIME=1 will tell Mesa to choose an other card than the compositor card if possible, while setting DRI_PRIME to the id_path_tag of a device (like pci-_02_00_0) tells Mesa to take the device with this id_path_tag. Signed-off-by: Axel Davy axel.d...@ens.fr

[Mesa-dev] [PATCH 3/3 v2] Implement choosing the device to use with DRI_PRIME

2013-11-07 Thread Axel Davy
I forgot to test the capabilities to know if we can use render-nodes. Being able to do that was the goal of patch 1. I send a better patch 3. Axel Davy (1): Implement choosing the device to use with DRI_PRIME src/egl/drivers/dri2/platform_wayland.c | 180 ++-- 1

Re: [Mesa-dev] [PATCH 1/9] gallium/dri: Support DRI Image extension version 6

2013-11-22 Thread Axel Davy
: it doesn't give the correct format. Getting this function right would really help to write glamor dri3 helpers Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 8/9] gallium/radeon: Implement hooks for DRI Image 7

2013-11-22 Thread Axel Davy
initial domain for imported bo\n); +radeon_bo_destroy(bo-base); +return NULL; +} the ioctl should be called again until it doesn't return -EBUSY. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http

Re: [Mesa-dev] [PATCH 1/9] gallium/dri: Support DRI Image extension version 6

2013-11-22 Thread Axel Davy
A dri_context can be converted to a st_context. Sorry for the typo. It should be A dri_context can't be converted to a st_context. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa

Re: [Mesa-dev] [PATCH 0/3] Implement DRI_PRIME support for Wayland

2013-11-22 Thread Axel Davy
much more sense to do the copy inside Mesa, than using a nested compositor. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] gallium/dri: Support DRI Image extension version 6 (v2)

2013-11-25 Thread Axel Davy
assume you meant __DRI_IMAGE_FORMAT_NONE + *error = __DRI_IMAGE_ERROR_BAD_PARAMETER; + free(img); + return NULL; + } + + *error = __DRI_IMAGE_ERROR_SUCCESS; + return img; +} + Axel Davy ___ mesa-dev mailing list mesa-dev

[Mesa-dev] radeonsi: always set the scanout flag?

2013-11-26 Thread Axel Davy
a resource on SI. But ideally, if it makes a performance difference, we would like to be able to control that with Wayland when allocating the buffers. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org

Re: [Mesa-dev] radeonsi: always set the scanout flag?

2013-11-27 Thread Axel Davy
RADEON_TILING_R600_NO_SCANOUT); Would make scanout set to 1 when the card is inferior to SI. I think the correct calculus is: *scanout = (bo-rws-gen = DRV_SI) !(args.tiling_flags RADEON_TILING_R600_NO_SCANOUT); Thank you for having fixed this issue, Axel Davy On 26/11/2013, Marek Olšák wrote

Re: [Mesa-dev] [PATCH 0/9] DRI Image 7 support for gallium

2013-12-01 Thread Axel Davy
://cgit.freedesktop.org/%7Ekeithp/mesa/log/?h=dri3, and the ilo part looks ok, I suggest to merge this last series of patches, which seems ready. Thanks, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

[Mesa-dev] [PATCH 0/6] Wayland Prime Support (v2+RFC)

2014-01-05 Thread Axel Davy
. Is this acceptable to use drirc like that? Could there be some issues? patch 4: what are the alternatives to set a __BLIT_FLAG_FINISH flag here? But other comments are welcome! Axel Davy (6): EGL/Wayland: DRI_PRIME support drirc: Add string support EGL/Wayland drirc: Use drirc to complement

[Mesa-dev] [PATCH 2/6][RFC] drirc: Add string support

2014-01-05 Thread Axel Davy
This may require changes to the driconf gui. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/mesa/drivers/dri/common/xmlconfig.c | 24 src/mesa/drivers/dri/common/xmlconfig.h | 7 ++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers

[Mesa-dev] [PATCH 1/6] EGL/Wayland: DRI_PRIME support

2014-01-05 Thread Axel Davy
is unlikely), so we fail here. It's in the specification. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.c | 5 + src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 255 3 files changed

[Mesa-dev] [PATCH 4/6][RFC] DRIimage: add blitImage to the specification

2014-01-05 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 81f7e60..19f3c93 100644 --- a/include/GL

[Mesa-dev] [PATCH 5/6][RFC] Gallium/dri2: implement blitImage

2014-01-05 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/dri/drm/dri2.c | 49 +-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 2a5b7b4

[Mesa-dev] [PATCH 6/6][RFC] EGL/Wayland: Use the DRIImage blit function (when available) for Prime

2014-01-05 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 2 + src/egl/drivers/dri2/platform_wayland.c | 98 ++--- 2 files changed, 79 insertions(+), 21 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2

[Mesa-dev] [PATCH 3/6][RFC] EGL/Wayland drirc: Use drirc to complement DRI_PRIME

2014-01-05 Thread Axel Davy
add to drirc a parameter wanted_device_id_path_tag, and check its value to choose which gpu to use, if DRI_PRIME isn't set. Signed-off-by: Axel Davy axel.d...@ens.fr --- configure.ac| 1 + src/egl/drivers/dri2/Makefile.am| 12 +++ src

[Mesa-dev] [PATCH] [PATCH 1/6] EGL/Wayland: DRI_PRIME support v2

2014-01-05 Thread Axel Davy
, with additional checks. Also add a check to dri2_create_image_wayland_wl_buffer to fail if we forbid to use tiling (which now means we use another gpu than the compositor). We can't check the buffer is untiled (which is unlikely), so we fail here. It's in the specification. Signed-off-by: Axel Davy axel.d

Re: [Mesa-dev] [PATCH 5/6][RFC] Gallium/dri2: implement blitImage

2014-01-06 Thread Axel Davy
On 06/01/2014, Marek Olšák wrote : On Sun, Jan 5, 2014 at 10:26 PM, Axel Davy axel.d...@ens.fr wrote: Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/dri/drm/dri2.c | 49 +-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH v3] EGL/Wayland: DRI_PRIME support

2014-01-24 Thread Axel Davy
Implements DRI_PRIME support. Signed-off-by: Axel Davy axel.d...@ens.fr --- v3: add a check in dri2_create_wayland_buffer_from_image_wl to fail if we are on a different device than the compositor, and then can't use tiling. This is in the spec. The patch has been rebased. v2: bug fix src/egl

[Mesa-dev] [PATCH] Gallium/dri2: Fix dri2_dup_image

2014-01-30 Thread Axel Davy
dri2_dup_image was not copying the dri_format field. This was causing some bugs, for example: . we create an gbm_bo. . we get an EGLImage from the gbm_bo. . Bug: impossible to get again the gbm_bo from the EGLImage by importing. (gbm dri2 backend) Signed-off-by: Axel Davy axel.d...@ens.fr

Re: [Mesa-dev] [PATCH] Gallium/dri2: Fix dri2_dup_image

2014-01-31 Thread Axel Davy
On 31/01/2014, Michel Dänzer wrote : On Don, 2014-01-30 at 16:10 +0100, Axel Davy wrote: dri2_dup_image was not copying the dri_format field. This was causing some bugs, for example: . we create an gbm_bo. . we get an EGLImage from the gbm_bo. . Bug: impossible to get again the gbm_bo from

Re: [Mesa-dev] [PATCH 1/4] r600g, radeonsi: force VRAM placement for DRI2 buffers

2014-02-02 Thread Axel Davy
with an handle, a Gem name or a prime fd. Given the imported buffer can be shared with another card (in the prime fd case), I imagine there are some cases where the buffer must stay in GTT. What would happen in this case with your patch? Axel Davy

Re: [Mesa-dev] [PATCH 1/4] r600g, radeonsi: force VRAM placement for DRI2 buffers

2014-02-03 Thread Axel Davy
patch as is with my Wayland Prime patches, and as expected it doesn't work well anymore. Axel Davy On 03/02/2014, Marek Olšák wrote : Well, it's kinda obvious what would happen. The buffer would be relocated to VRAM. Do you have any suggestion how to find out if the buffer should be in GTT

Re: [Mesa-dev] Mesa (master): st/dri: add support for dma-buf importer (DRIimage v8)

2014-03-03 Thread Axel Davy
the code to import dma-bufs, since it is used only with the dri3 call to convert a fd to a pixmap. Axel Davy -- Earthling Michel Dänzer|http://www.amd.com http://www.amd.com/ Libre software enthusiast |Mesa and X developer

[Mesa-dev] [PATCH 0/7] Wayland Prime Support v3

2014-03-07 Thread Axel Davy
on an intel card from a dedicated card, which looks like nobody will do) . patch 7 introduces a new mode using blitImage. We render to a buffer (with tiling) which is blitted to a shared buffer (a linear buffer) Axel Davy (7): wayland: Fix the logic in disabling the prime capability EGL/Wayland

[Mesa-dev] [PATCH 5/7] DRIimage: add blitImage to the specification

2014-03-07 Thread Axel Davy
It allows to blit two __DRIimages. Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index d028d05..91f2fe3

[Mesa-dev] [PATCH 4/7] EGL/Wayland drirc: Use drirc to complement DRI_PRIME

2014-03-07 Thread Axel Davy
Add to drirc a new parameter: wanted_device_id_path_tag to indicate the gpu we would like to use. The EGL Wayland platform checks this parameter under the driver name init. It should be possible to get GLX to check this parameter too, and use it for DRI3 GPU offloading. Signed-off-by: Axel Davy

[Mesa-dev] [PATCH 1/7] wayland: Fix the logic in disabling the prime capability

2014-03-07 Thread Axel Davy
What we want is disabling the path using primes fds if the client can't create primes fds. Signed-off-by: Axel Davy axel.d...@ens.fr Signed-off-by: Neil Roberts n...@linux.intel.com --- Neil and me did the same correction independantly. src/egl/drivers/dri2/platform_wayland.c | 2 +- 1 file

[Mesa-dev] [PATCH 3/7] drirc: Add string support

2014-03-07 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/mesa/drivers/dri/common/xmlconfig.c | 29 + src/mesa/drivers/dri/common/xmlconfig.h | 7 ++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa

[Mesa-dev] [PATCH 7/7] EGL/Wayland: use blitImage when requested and on a different device

2014-03-07 Thread Axel Davy
When the client use a different graphic device than the server, we want for better performance to render to a tiled buffer, and copy to a linear buffer which we share with the server. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 2 + src/egl

[Mesa-dev] [PATCH 6/7] Gallium/dri2: implement blitImage

2014-03-07 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/dri/drm/dri2.c | 44 --- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index 3d8d569

Re: [Mesa-dev] [PATCH 3/7] drirc: Add string support

2014-03-07 Thread Axel Davy
I should have added that I choosed to be consistent with the code style in the file and then used GLuint as everywhere in the file. Another patch should probably remove all occurences of GLuint in the file to replace it with unsigned. Axel Davy Signed-off-by: Axel Davy axel.d...@ens.fr

Re: [Mesa-dev] [PATCH 0/7] Wayland Prime Support v3

2014-03-07 Thread Axel Davy
%2Bgallium Without the DRIimage driver extension, egl won't launch on the requested card using gallium, saying wayland-egl: display is not render-node capable, because DRIimage driver extension is required to work with render-nodes. Axel Davy This is the updated version of this patch series

Re: [Mesa-dev] intel, dma-buf import and egl image external

2014-03-22 Thread Axel Davy
is to convert to gbm_bo the EGLImage, then convert back the gbm_bo to EGLImage. The new EGLImage has no restrictions. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Alternative to DRM_IOCTL_GEM_OPEN for render-nodes

2014-04-15 Thread Axel Davy
to use the driImageDriverExtension. It'll avoid using GEM names, GEM open, etc. Keithp wrote patches to implement it for gallium: http://cgit.freedesktop.org/~keithp/mesa/log/?h=dri3%2Bgallium http://cgit.freedesktop.org/%7Ekeithp/mesa/log/?h=dri3%2Bgallium Yours, Axel Davy

[Mesa-dev] [PATCH 08/11] Gallium/dri2: implement blitImage

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/dri/drm/dri2.c | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index b5bc16b

[Mesa-dev] [PATCH 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/Makefile.am | 4 +++- src/loader/Makefile.am | 21 --- src/loader/loader.c | 27 + src/mesa/drivers/dri/common

[Mesa-dev] [PATCH 03/11] gallium: Use base.stamp for all drawable invalidation checks.

2014-05-27 Thread Axel Davy
From: Keith Packard kei...@keithp.com Upper levels of the stack use base.stamp to tell when a drawable needs to be revalidated, but the dri state tracker was using dPriv-lastStamp. Those two, along with dri2.stamp, all get simultaneously incremented when a dri2 invalidate event was delivered, and

[Mesa-dev] [PATCH 10/11] Wayland/egl: Add Gpu offloading support

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 5 +- src/egl/drivers/dri2/platform_wayland.c | 171 ++-- 2 files changed, 142 insertions(+), 34 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2

[Mesa-dev] [PATCH 01/11] gallium: Add __DRIimageDriverExtension support to gallium

2014-05-27 Thread Axel Davy
From: Keith Packard kei...@keithp.com Provide the hook to pull textures out of __DRIimage structures and use them as renderbuffers. Signed-off-by: Keith Packard kei...@keithp.com --- src/gallium/state_trackers/dri/drm/dri2.c | 238 +- 1 file changed, 230

[Mesa-dev] [PATCH 02/11] gallium/dri: fix unsetting of format when encountering depth/stencil

2014-05-27 Thread Axel Davy
From: Ben Skeggs bske...@redhat.com Signed-off-by: Ben Skeggs bske...@redhat.com Signed-off-by: Keith Packard kei...@keithp.com --- src/gallium/state_trackers/dri/drm/dri2.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[Mesa-dev] [PATCH 09/11] GLX/DRI3: Add Gpu offloading support.

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/glx/dri3_glx.c | 235 +++- src/glx/dri3_priv.h | 2 + 2 files changed, 200 insertions(+), 37 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 3d8a662..54030bb 100644

[Mesa-dev] [PATCH 04/11] Loader: Add gpu selection code with DRI_PRIME.

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/loader/loader.c | 188 src/loader/loader.h | 7 ++ 2 files changed, 195 insertions(+) diff --git a/src/loader/loader.c b/src/loader/loader.c index 666d015..3d504f7 100644 --- a/src/loader

[Mesa-dev] [PATCH 11/11] Radeonsi: Use dma_copy when possible for si_blit.

2014-05-27 Thread Axel Davy
This improves GLX DRI3 Gpu offloading significantly on cpu bound benchmarks particularly. No performance impact for DRI2 Gpu offloading. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/drivers/radeonsi/si_blit.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src

[Mesa-dev] [PATCH 00/11] GPU offloading for GLX DRI3 and EGL Wayland

2014-05-27 Thread Axel Davy
), but Mesa would use it only when DRI2 fails, or if we want to use DRI3 Gpu offloading. Axel Davy (8): Loader: Add gpu selection code via DRI_PRIME. drirc: Add string support loader: Use drirc device_id parameter in complement to DRI_PRIME DRIimage: add blitImage to the specification

[Mesa-dev] [PATCH 07/11] DRIimage: add blitImage to the specification

2014-05-27 Thread Axel Davy
It allows to blit two __DRIimages. Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 4d57d0b..2ee3164

[Mesa-dev] [PATCH 05/11] drirc: Add string support

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/mesa/drivers/dri/common/xmlconfig.c | 29 + src/mesa/drivers/dri/common/xmlconfig.h | 7 ++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa

Re: [Mesa-dev] [PATCH 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-28 Thread Axel Davy
-amd64/src/loader' Replacing -I$(top_srcdir)/src/mesa/drivers/dri/common/ \ by -I$(top_builddir)/src/mesa/drivers/dri/common \ in the patch should solve that. I'm going to test that later and will send an updated patch. Thanks for your testing, Axel Davy

Re: [Mesa-dev] [PATCH 11/11] Radeonsi: Use dma_copy when possible for si_blit.

2014-05-28 Thread Axel Davy
On 28/05/2014 04:40, Michel Dänzer wrote : On 28.05.2014 09:55, Axel Davy wrote: This improves GLX DRI3 Gpu offloading significantly on cpu bound benchmarks particularly. No performance impact for DRI2 Gpu offloading. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/drivers/radeonsi

Re: [Mesa-dev] [PATCH 01/11] gallium: Add __DRIimageDriverExtension support to gallium

2014-05-28 Thread Axel Davy
On 28/05/2014 03:47, Michel Dänzer wrote : On 28.05.2014 09:55, Axel Davy wrote: From: Keith Packard kei...@keithp.com Provide the hook to pull textures out of __DRIimage structures and use them as renderbuffers. Signed-off-by: Keith Packard kei...@keithp.com This patch breaks a number

Re: [Mesa-dev] [PATCH 04/11] Loader: Add gpu selection code with DRI_PRIME.

2014-05-28 Thread Axel Davy
On 28/05/2014 08:33, Emil Velikov wrote : Hi Axel, AFAICS we're leaking device_name. That's true, I'll send a patch with the fix. FYI I'm about to push a few patches for non libudev users which may cause merge conflicts when applying this series. Thanks for the information. Cheers Emil

Re: [Mesa-dev] [PATCH 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-28 Thread Axel Davy
On 28/05/2014 08:40, Emil Velikov wrote : On 28/05/14 01:55, Axel Davy wrote: Signed-off-by: Axel Davy axel.d...@ens.fr Hi Axel Can you give the scons build a try. I suspect that this patch will leave it in somewhat broken state. I'll give a try. --- src/Makefile.am

Re: [Mesa-dev] [PATCH 11/11] Radeonsi: Use dma_copy when possible for si_blit.

2014-05-28 Thread Axel Davy
for glBlitFrameBuffer. Thanks, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH V2 05/11] drirc: Add string support

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/mesa/drivers/dri/common/xmlconfig.c | 29 + src/mesa/drivers/dri/common/xmlconfig.h | 7 ++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa

[Mesa-dev] [PATCH V2 01/11] gallium: Add __DRIimageDriverExtension support to gallium

2014-05-28 Thread Axel Davy
From: Keith Packard kei...@keithp.com Provide the hook to pull textures out of __DRIimage structures and use them as renderbuffers. Signed-off-by: Keith Packard kei...@keithp.com --- v2: Added the image-flushFrontBuffer fix. src/gallium/state_trackers/dri/drm/dri2.c | 238

[Mesa-dev] [PATCH V2 02/11] gallium/dri: fix unsetting of format when encountering depth/stencil

2014-05-28 Thread Axel Davy
From: Ben Skeggs bske...@redhat.com Signed-off-by: Ben Skeggs bske...@redhat.com Signed-off-by: Keith Packard kei...@keithp.com --- src/gallium/state_trackers/dri/drm/dri2.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git

[Mesa-dev] [PATCH V2 08/11] Gallium/dri2: implement blitImage

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/dri/drm/dri2.c | 43 --- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index eefbe42

[Mesa-dev] [PATCH V2 09/11] GLX/DRI3: Add Gpu offloading support.

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/glx/dri3_glx.c | 235 +++- src/glx/dri3_priv.h | 2 + 2 files changed, 200 insertions(+), 37 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 3d8a662..54030bb 100644

[Mesa-dev] [PATCH V2 04/11] Loader: Add gpu selection code via DRI_PRIME.

2014-05-28 Thread Axel Davy
v2: Fix the leak of device_name Signed-off-by: Axel Davy axel.d...@ens.fr --- src/loader/loader.c | 189 src/loader/loader.h | 7 ++ 2 files changed, 196 insertions(+) diff --git a/src/loader/loader.c b/src/loader/loader.c index 666d015

[Mesa-dev] [PATCH V2 07/11] DRIimage: add blitImage to the specification

2014-05-28 Thread Axel Davy
It allows to blit two __DRIimages. Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 4d57d0b..2ee3164

[Mesa-dev] [PATCH V2 03/11] gallium: Use base.stamp for all drawable invalidation checks.

2014-05-28 Thread Axel Davy
From: Keith Packard kei...@keithp.com Upper levels of the stack use base.stamp to tell when a drawable needs to be revalidated, but the dri state tracker was using dPriv-lastStamp. Those two, along with dri2.stamp, all get simultaneously incremented when a dri2 invalidate event was delivered, and

[Mesa-dev] [PATCH V2 10/11] Wayland/egl: Add Gpu offloading support

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 5 +- src/egl/drivers/dri2/platform_wayland.c | 171 ++-- 2 files changed, 142 insertions(+), 34 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2

[Mesa-dev] [PATCH V2 11/11] Radeonsi: Use dma_copy when possible for si_blit.

2014-05-28 Thread Axel Davy
This improves GLX DRI3 Gpu offloading significantly on cpu bound benchmarks particularly. No performance impact for DRI2 Gpu offloading. v2: Add missing tests Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/drivers/radeonsi/si_blit.c | 20 1 file changed, 20

Re: [Mesa-dev] [PATCH V2 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-29 Thread Axel Davy
On 29/05/2014 04:58, Michel Dänzer wrote : On 29.05.2014 12:22, Axel Davy wrote: DRI_PRIME is not very handy, because you have to launch the executable with it set, which is not always easy to do. By using drirc, the user specifies the target executable and the device to use. After

Re: [Mesa-dev] [PATCH V2 11/11] Radeonsi: Use dma_copy when possible for si_blit.

2014-05-29 Thread Axel Davy
just need to make sure the box depths are equal to each other, like widths and heights. Ok, thanks Marek Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH V2 08/11] Gallium/dri2: implement blitImage

2014-05-29 Thread Axel Davy
On 29/05/2014 13:18, Marek Olšák wrote : Hi Axel, flush_resource should be called before ctx-st-flush. Marek Thanks, I'll update for the next version of the patch. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http

Re: [Mesa-dev] [PATCH V2 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-29 Thread Axel Davy
tried the patches on top of febec731475a5b288cc50660b2d32780e395b950 and I didn't have any compiling issues, even when building gallium-egl. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [Mesa-dev] [PATCH V2 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-29 Thread Axel Davy
On 29/05/2014 23:31, Michel Dänzer a wrote : On 30.05.2014 12:02, Axel Davy wrote: Could you tell me what are your configure flags? I tried the patches on top of febec731475a5b288cc50660b2d32780e395b950 I can still reproduce it on top of that. and I didn't have any compiling issues, even

Re: [Mesa-dev] [PATCH V2 06/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-05-30 Thread Axel Davy
On 30/05/2014 06:05, Michel Dänzer wrote : On 30.05.2014 12:49, Axel Davy wrote: On 29/05/2014 23:31, Michel Dänzer a wrote : I tried with your compile options (except for the opencl flags, didn't have the required libs), and it worked. Did you try adding -lm to libloader_la_LIBADD

Re: [Mesa-dev] how client glx extensions and GLX extensions are determined (and how best to limit them)

2014-06-01 Thread Axel Davy
called anymore with display_is_direct_capable = False for GLX_USE_APPLEGL ? Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 01/11] gallium: Add __DRIimageDriverExtension support to gallium

2014-06-18 Thread Axel Davy
__DRIimageDriverExtension is used by GLX DRI3 and Wayland. This patch is a rewrite of http://lists.freedesktop.org/archives/mesa-dev/2014-May/060318.html and http://lists.freedesktop.org/archives/mesa-dev/2014-May/060317.html Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Marek

[Mesa-dev] [PATCH 07/11] Gallium/dri2: implement blitImage

2014-06-18 Thread Axel Davy
V3: call flush_resource before flush V4: Add new flags Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/dri/drm/dri2.c | 55 +-- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src

[Mesa-dev] [PATCH 05/11] loader: Use drirc device_id parameter in complement to DRI_PRIME

2014-06-18 Thread Axel Davy
v3: Add -lm and rebase. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/Makefile.am | 4 +++- src/loader/Makefile.am | 23 ++--- src/loader/loader.c | 27 + src/mesa

[Mesa-dev] [PATCH 02/11] Makes DRI3 use invalidate.

2014-06-18 Thread Axel Davy
This doesn't change anything to the intel DRI3 implementation, but enables the gallium implementation to use dri2.stamp instead of relying on the stamp shared with the st backend. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/glx/dri3_glx.c | 7 +++ 1 file changed, 7 insertions(+) diff

[Mesa-dev] [PATCH 04/11] drirc: Add string support

2014-06-18 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/mesa/drivers/dri/common/xmlconfig.c | 29 + src/mesa/drivers/dri/common/xmlconfig.h | 7 ++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa

[Mesa-dev] [PATCH 10/11] Radeonsi: Use dma_copy when possible for si_blit.

2014-06-18 Thread Axel Davy
This improves GLX DRI3 GPU offloading significantly on CPU bound benchmarks particularly. No performance impact for DRI2 GPU offloading. v2: Add missing tests Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: Marek Olšákmarek.ol...@amd.com --- src/gallium/drivers/radeonsi/si_blit.c | 19

[Mesa-dev] [PATCH 03/11] Loader: Add gpu selection code via DRI_PRIME.

2014-06-18 Thread Axel Davy
is not advertised for render-nodes, then ones need to add a file containing: SUBSYSTEM==drm, IMPORT{builtin}=path_id in /etc/udev/rules.d/ Signed-off-by: Axel Davy axel.d...@ens.fr --- src/loader/loader.c | 185 src/loader/loader.h | 7 ++ 2 files changed

[Mesa-dev] [PATCH 06/11] DRIimage: add blitImage to the specification

2014-06-18 Thread Axel Davy
It allows to blit two __DRIimages. Signed-off-by: Axel Davy axel.d...@ens.fr --- include/GL/internal/dri_interface.h | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index

[Mesa-dev] [PATCH 08/11] GLX/DRI3: Add GPU offloading support.

2014-06-18 Thread Axel Davy
piglit tests Signed-off-by: Axel Davy axel.d...@ens.fr --- src/glx/dri3_glx.c | 236 +++- src/glx/dri3_priv.h | 2 + 2 files changed, 198 insertions(+), 40 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index b309cd4..f147112

[Mesa-dev] [PATCH 11/11] nvc0: fix dri3 prime buffer creation

2014-06-18 Thread Axel Davy
From: Dave Airlie airl...@gmail.com We need to place shared buffers into GART. Signed-off-by: Dave Airlie airl...@redhat.com Reviewed-by: Axel Davy axel.d...@ens.fr --- src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src

[Mesa-dev] [PATCH 09/11] Wayland/egl: Add GPU offloading support

2014-06-18 Thread Axel Davy
to the compositor. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 5 +- src/egl/drivers/dri2/platform_wayland.c | 171 ++-- 2 files changed, 142 insertions(+), 34 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src

Re: [Mesa-dev] [PATCH 11/11] nvc0: fix dri3 prime buffer creation

2014-06-18 Thread Axel Davy
into gart. nv84+ are all fine.] On Wed, Jun 18, 2014 at 11:27 PM, Axel Davy axel.d...@ens.fr wrote: From: Dave Airlie airl...@gmail.com We need to place shared buffers into GART. Signed-off-by: Dave Airlie airl...@redhat.com Reviewed-by: Axel Davy axel.d...@ens.fr --- src/gallium/drivers/nouveau

Re: [Mesa-dev] [PATCH 01/11] gallium: Add __DRIimageDriverExtension support to gallium

2014-06-19 Thread Axel Davy
combo, you need to check first with -is_format_supported. For example pre-NVA0 nv50 cards don't support Z16. This is git format-patch noise. I don't change anything to dri2_allocate_buffer, if you see what is added here is removed later. Axel Davy

Re: [Mesa-dev] [PATCH v3 3/3] Add a new capabilities for drivers that can't share buffers

2014-06-19 Thread Axel Davy
set createImageFromName and CreateImageFromNames to NULL, and add checks for that (instead of checking the capability ? It's what is done to check if we can import dma-bufs (check if createImageFromFds is not NULL). Axel Davy ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH] GLX: Add an env var to enable the support of GLX extensions needing both client and server support, in case of client support and direct rendering.

2014-06-19 Thread Axel Davy
rendering (instead of DRI2). This patch is just a workaround because it's not done yet. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 08/11] GLX/DRI3: Add GPU offloading support.

2014-06-19 Thread Axel Davy
I've just noted I forgot to update the blitImage flags on this patch, when I use 1 as flush_flag argument it should be replaced by __BLIT_FLAG_FLUSH. Axel Davy On 18/06/2014 23:27, Axel Davy wrote : The differences with DRI2 GPU offloading are: . There's no logic for GPU offloading needed

Re: [Mesa-dev] [PATCH v3 3/3] Add a new capabilities for drivers that can't share buffers

2014-06-19 Thread Axel Davy
On 19/06/2014 15:56, Giovanni Campagna wrote : 2014-06-19 16:16 GMT+02:00 Axel Davy axel.d...@ens.fr: On 15/06/2014 07:49, Giovanni Campagna wrote : From: Giovanni Campagna gcampa...@src.gnome.org The kms-dri swrast driver cannot share buffers using the GEM, so it must tell the loader

[Mesa-dev] [PATCH] glxext: Send the Drawable's ID in the GLX_BufferSwapComplete event

2014-06-24 Thread Axel Davy
Present in mesa. At the same time, also modify the structure for the event to make sure that clients don't make the same mistake. This is not an API or ABI break, as GLXDrawable and Drawable are both typedefs for XID. Signed-off-by: Jasper St. Pierre jstpie...@mecheye.net Reviewed-by: Axel Davy

Re: [Mesa-dev] [PATCH 08/11] GLX/DRI3: Add GPU offloading support.

2014-06-24 Thread Axel Davy
capabilities for the GLX visuals and fbconfigs, and you have an intersection of what the server advertises and what you can actually have. The only constraint in the spec seems to be that there must be a GLX fbconfig supporting RGBA and some other constraints. Axel Davy

Re: [Mesa-dev] non-DRI build break

2014-07-01 Thread Axel Davy
In src/loader/Makefile.am, the test 'if NEED_OPENGL_COMMON' should probably be more restrictive, I'm looking at it. Axel On 01/07/2014 10:22, Brian Paul wrote : I configured with: ./autogen.sh CFLAGS=-g -O0 CXXFLAGS=-g -O0 --enable-debug --enable-xlib-glx --disable-driglx-direct

Re: [Mesa-dev] non-DRI build break

2014-07-01 Thread Axel Davy
Hi, This path should resolve the problem. Axel On 01/07/2014 10:53, Axel Davy wrote : In src/loader/Makefile.am, the test 'if NEED_OPENGL_COMMON' should probably be more restrictive, I'm looking at it. Axel On 01/07/2014 10:22, Brian Paul wrote : I configured with: ./autogen.sh CFLAGS=-g

  1   2   3   4   5   6   7   8   9   10   >