[Mesa-dev] [PATCH 3/3] gallium: add flag for transfers in a different context than draw calls

2016-12-18 Thread Axel Davy
Add cap PIPE_CAP_BUFFER_TRANSFER_EXTERNAL_CONTEXT. See commit for detailed description of the flag. Signed-off-by: Axel Davy --- src/gallium/docs/source/screen.rst | 9 + src/gallium/drivers/freedreno/freedreno_screen.c | 1 + src/gallium/drivers/i915/i915_screen.c

[Mesa-dev] [PATCH 1/3] gallium: add PIPE_CAP_THREAD_SAFE

2016-12-18 Thread Axel Davy
Add flag indicating if the driver is thread safe or not. See commit for documentation on the meaning of the flag. Signed-off-by: Axel Davy --- src/gallium/docs/source/screen.rst | 3 +++ src/gallium/drivers/freedreno/freedreno_screen.c | 1 + src/gallium/drivers/i915

[Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
what is allowed. Please comment. Yours, Axel Davy Axel Davy (3): gallium: add PIPE_CAP_THREAD_SAFE radeon: enable PIPE_CAP_THREAD_SAFE gallium: add flag for transfers in a different context than draw call src/gallium/docs/source/screen.rst | 12 src/gallium/dr

[Mesa-dev] [PATCH 3/3 v2] gallium: add flag for transfers in a different context than draw calls

2016-12-18 Thread Axel Davy
Add cap PIPE_CAP_BUFFER_TRANSFER_EXTERNAL_CONTEXT. See commit for detailed description of the flag. v2: Explicit flush behaviour. Signed-off-by: Axel Davy --- src/gallium/docs/source/screen.rst | 11 +++ src/gallium/drivers/freedreno/freedreno_screen.c | 1 + src

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 16:57, Nicolai Hähnle wrote: On 18.12.2016 13:38, Axel Davy wrote: Currently there is no real specification on what is allowed for using different contexts in several threads, or when you map/unmap a resource in a thread, but uses it in another for draw calls. For the gallium

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 16:57, Nicolai Hähnle wrote: I'm happy to be convinced otherwise if I missed something, but using multiple contexts from different threads, or using Map/UnmapBuffer from one context but sourcing the buffer from draw calls in another context are all perfectly supported OpenGL us

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 18:34, Nicolai Hähnle wrote: On 18.12.2016 17:37, Axel Davy wrote: On 18/12/2016 16:57, Nicolai Hähnle wrote: On 18.12.2016 13:38, Axel Davy wrote: Currently there is no real specification on what is allowed for using different contexts in several threads, or when you map/unmap

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 18:34, Nicolai Hähnle wrote: Then again, why not just call flush unconditionally? If the flush was unnecessary, it should be a no-op, and the driver should already have a fast path for that anyway. I just looked at radeon source with amdgpu, and it looks like to me a flush wil

[Mesa-dev] [PATCH] st/nine: Upload on secondary context for Draw*Up

2016-12-18 Thread Axel Davy
Avoid synchronization by using the secondary context for uploading the vertex data for Draw*Up. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9

[Mesa-dev] [PATCH 1/2] gallium-docs: Add documentation for threading requirements

2016-12-19 Thread Axel Davy
Add documentation for the requirements related to threading for screens and contexts. Signed-off-by: Axel Davy --- src/gallium/docs/source/screen.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index

[Mesa-dev] [RFCv2] New gallium documentation to explicit threading requirements

2016-12-19 Thread Axel Davy
This is a new RFC to replace "New gallium flags for using different contexts in several threads". Please comment. Yours, Axel Davy Axel Davy (2): gallium-docs: Add documentation for threading requirements gallium-docs: Add documentation for when using several contexts src/ga

[Mesa-dev] [PATCH 2/2] gallium-docs: Add documentation for when using several contexts

2016-12-19 Thread Axel Davy
Add documentation to explicit what can be expected and what is allowed when using several contexts. Signed-off-by: Axel Davy --- src/gallium/docs/source/context.rst | 23 +++ 1 file changed, 23 insertions(+) diff --git a/src/gallium/docs/source/context.rst b/src/gallium

[Mesa-dev] [PATCH 84/84 v7] st/nine: Implement new buffer upload path

2016-12-19 Thread Axel Davy
e resource content is copied to the new resource used. v5: flush for safety after unmap (not sure it is really required here, but safer to flush). v6: Do not use the path if persistent coherent mapping is unavailable. Fix buffer creation flags. v7: Do not flush since it is not needed. Signed-off-by:

[Mesa-dev] [PATCH v2] st/nine: Upload on secondary context for Draw*Up

2016-12-19 Thread Axel Davy
Avoid synchronization by using the secondary context for uploading the vertex data for Draw*Up. v2: Rely on u_upload_mgr to use persistent coherent buffers. Do not flush. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 23 +++ 1 file changed, 15

Re: [Mesa-dev] [PATCH] st/nine: add missing copyright headers

2016-07-15 Thread Axel Davy
_NINE_FF_H_ #define _NINE_FF_H_ diff --git a/src/gallium/state_trackers/nine/nine_flags.h b/src/gallium/state_trackers/nine/nine_flags.h index 61686a7..d6dd698 100644 --- a/src/gallium/state_trackers/nine/nine_flags.h +++ b/src/gallium/state_trackers/nine/nine_flags.h @@ -1,4 +1,24 @@ - +

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 --- src/egl/drivers/dri2/platform_wayland.c

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

2013-11-07 Thread Axel Davy
te, this Prime support suffers too from the lack of dma-buf fences (glitches when the client 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 fram

[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 --- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 93

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

2013-11-07 Thread Axel Davy
to find the desired card ( 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 --- src/egl/drivers/dri2/platform_wayland.c | 168 ++-- 1 file changed, 160 insertions(+), 8 deletions

[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: Axe

[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
t); This part doesn't work either: 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
(stderr, "radeon: Failed to find 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 ma

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.or

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

2013-11-22 Thread Axel Davy
d ) All these arguments can be put in short in: "more flexibility" For an heavy game < 60 fps, I agree it makes 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

[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 Reviewed-by: Marek Olšák Previous patches

[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 --- 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/gallium

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

2014-06-18 Thread Axel Davy
contains: Then glmark2 will use if possible the render-node of ID_PATH_TAG pci-_01_00_0. v2: Fix compilation issue v3: Add "-lm" and rebase. Signed-off-by: Axel Davy --- src/Makefile.am | 4 +++- src/loader/M

[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 --- src/glx/dri3_glx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/sr

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

2014-06-18 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/drivers/dri/common

[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 Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c | 19 +++ 1 file changed

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

2014-06-18 Thread Axel Davy
that the tag 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 --- src/loader/loader.c | 185 src/loader

[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 --- 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 4d57d0b..300156e

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

2014-06-18 Thread Axel Davy
ary card. V4: Fixes some piglit tests Signed-off-by: Axel Davy --- 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..f14

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

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

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

2014-06-18 Thread Axel Davy
the compositor. Signed-off-by: Axel Davy --- 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] 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-18 Thread Axel Davy
a GLX extension is advertised whenever the client supports it. Signed-off-by: Axel Davy --- src/glx/glxextensions.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/glx/glxextensions.c b/src/glx/glxextensions.c index ce5d66d..34cb6d0 100644 --- a/src/glx/glxextensions.c

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 wrote: From: Dave Airlie We need to place shared buffers into GART. Signed-off-by: Dave Airlie Reviewed-by: Axel Davy --- src/gallium/drivers/nouveau/nvc0/nvc0_miptree.c | 2 +- 1 file changed, 1 insertion(+), 1

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

2014-06-19 Thread Axel Davy
urces with a certain format/bind 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 h

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

2014-06-19 Thread Axel Davy
t 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 lis

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
specific things for indirect 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

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 : On 15/06/2014 07:49, Giovanni Campagna wrote : From: Giovanni Campagna The kms-dri swrast driver cannot share buffers using the GEM, so it must tell the loader to disable extensions relying on that

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

2014-06-24 Thread Axel Davy
translates 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 Reviewed-by: Axel Davy

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

2014-06-24 Thread Axel Davy
Mesa takes care of the driver 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

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 --disabl

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: ./au

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

2014-07-01 Thread Axel Davy
I don't have push access. Could you push it ? On 01/07/2014 11:22, Brian Paul wrote : That works. Tested-by: Brian Paul On 07/01/2014 09:19 AM, Axel Davy wrote: Hi, This path should resolve the problem. Axel On 01/07/2014 10:53, Axel Davy wrote : In src/loader/Makefile.am, the

[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 --- 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/nvc0_miptree.c | 3

[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 --- 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/nvc0_miptree.c | 3

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
dedicated 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 --- include/GL/internal/dri_interface.h | 1 + src/gallium/drivers/i915/i915_resource.c| 8 ++-- src/gallium/d

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

2013-11-25 Thread Axel Davy
img->dri_format == MESA_FORMAT_NONE) { I 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] 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
args.tiling_flags & 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 iss

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

2013-12-01 Thread Axel Davy
log/?h=dri3 <http://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

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

2014-01-05 Thread Axel Davy
ike that outside of this patch. 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

[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 --- 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/dri/common

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

2014-01-05 Thread Axel Davy
which is unlikely), so we fail here. It's in the specification. Signed-off-by: Axel Davy --- 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, 232

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

2014-01-05 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/internal

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

2014-01-05 Thread Axel Davy
Signed-off-by: Axel Davy --- 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..89d9040 100644 --- a

[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 --- 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/egl_dri2.h index

[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 --- configure.ac| 1 + src/egl/drivers/dri2/Makefile.am| 12 +++

[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-of

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 wrote: Signed-off-by: Axel Davy --- src/gallium/state_trackers/dri/drm/dri2.c | 49 +-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/dri

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

2014-01-24 Thread Axel Davy
Implements DRI_PRIME support. Signed-off-by: Axel Davy --- 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/drivers

[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 --- src/gallium

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

2014-04-15 Thread Axel Davy
ed 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> Y

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

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy --- 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..f01257a 100644 --- a

[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 --- src/Makefile.am | 4 +++- src/loader/Makefile.am | 21 --- src/loader/loader.c | 27 + src/mesa/drivers/dri/common/xmlconfig.h | 2

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

2014-05-27 Thread Axel Davy
From: Keith Packard 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 so end up contai

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

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/egl_dri2.h index

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

2014-05-27 Thread Axel Davy
From: Keith Packard Provide the hook to pull textures out of __DRIimage structures and use them as renderbuffers. Signed-off-by: Keith Packard --- src/gallium/state_trackers/dri/drm/dri2.c | 238 +- 1 file changed, 230 insertions(+), 8 deletions(-) diff --git a/src

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

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

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

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy --- 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 --- a/src/glx

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

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/loader.c +++ b/src

[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 --- src/gallium/drivers/radeonsi/si_blit.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/gallium/drivers

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

2014-05-27 Thread Axel Davy
nce than Dri2, but since the copy is on the server card, it won't affect the performance of Gpu offloading. One proposition would be to add basic DRI3 support to the DDXs (without Present support for now), but Mesa would use it only when DRI2 fails, or if we want to use DRI3 Gpu offloadin

[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 --- 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 100644 --- a

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

2014-05-27 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/drivers/dri/common

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

2014-05-28 Thread Axel Davy
** [libloader_la-loader.lo] Error 1 make[2]: Leaving directory '/home/daenzer/src/mesa-git/mesa/build-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 solv

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 --- src/gallium/drivers/radeonsi/si_blit.c | 15

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 Provide the hook to pull textures out of __DRIimage structures and use them as renderbuffers. Signed-off-by: Keith Packard This patch breaks a number of piglit tests with DRI2, see the

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 A

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 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
s always set for glBlitFrameBuffer. Thanks, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

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:12, Axel Davy a écrit : On 27/05/2014 23:46, Michel Dänzer wrote : This breaks the build for me, see below. That's an out-of-tree build FWIW. Replacing -I$(top_srcdir)/src/mesa/drivers/dri/common/ \ by -I$(top_builddir)/src/mesa/drivers/dri/common \ in the patch s

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

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/drivers/dri/common

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

2014-05-28 Thread Axel Davy
From: Keith Packard Provide the hook to pull textures out of __DRIimage structures and use them as renderbuffers. Signed-off-by: Keith Packard --- v2: Added the image->flushFrontBuffer fix. src/gallium/state_trackers/dri/drm/dri2.c | 238 +- 1 file changed, 230 ins

[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 Signed-off-by: Ben Skeggs Signed-off-by: Keith Packard --- src/gallium/state_trackers/dri/drm/dri2.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri

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

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy --- I've tested to build with scons too, and it seems to work. src/Makefile.am | 4 +++- src/loader/Makefile.am | 22 +--- src/loader/loader.c

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

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy --- 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..f4db3d8 100644 --- a

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

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy --- 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 --- a/src/glx

[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 --- 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..7a4015c 100644

[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 --- 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 100644 --- a

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

2014-05-28 Thread Axel Davy
From: Keith Packard 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 so end up contai

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

2014-05-28 Thread Axel Davy
Signed-off-by: Axel Davy --- 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/egl_dri2.h index

[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 --- src/gallium/drivers/radeonsi/si_blit.c | 20 1 file changed, 20 insertions(+) diff

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 that the

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

2014-05-29 Thread Axel Davy
eight. You don't have to check if the box depth equals 1. You 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

<    1   2   3   4   5   6   7   8   9   10   >