[Mesa-dev] [PATCH 24/45] st/nine: Fix Volumetexture9_LockBox

2016-01-29 Thread Axel Davy
From: Patrick Rudolph Check for valid locked box dimensions. Fixes failing wine tests device.c test_lockbox_invalid. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/volume9.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium

[Mesa-dev] [PATCH 40/45] st/nine: Use linear filtering for shadow mapping

2016-01-29 Thread Axel Davy
Some docs say linear filtering is always used when app does shadow mapping. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_pipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_pipe.c

[Mesa-dev] [PATCH 23/45] st/nine: Fix ATI2 pitch for non-square

2016-01-29 Thread Axel Davy
Fixes crash for non-square textures. We were using the height instead of the width for some calculations. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/surface9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 18/45] st/nine: Allow ColorFill on D3DFMT_NULL surfaces

2016-01-29 Thread Axel Davy
From: Patrick Rudolph Report success instead of failing as there's no resource for those surfaces. Fixes a crash in Crysis: Warhead. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Mesa-dev] [PATCH 10/45] st/nine: Initialize lights in stateblocks

2016-01-29 Thread Axel Davy
This fixes a crash. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/stateblock9.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c index 6d6e1be

[Mesa-dev] [PATCH 45/45] st/nine: Use align_free when needed

2016-01-29 Thread Axel Davy
Use align_free to free memory allocated with align_malloc. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/cubetexture9.c | 2 +- src/gallium/state_trackers/nine/surface9.c | 2 +- src/gallium/state_trackers/nine/texture9.c | 2 +- src/gallium

[Mesa-dev] [PATCH 02/45] st/nine: Fix D3DPMISCCAPS_FOGANDSPECULARALPHA support

2016-01-29 Thread Axel Davy
sense than the doc. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/adapter9.c| 2 +- src/gallium/state_trackers/nine/nine_shader.c | 12 +--- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/gallium/state_trackers/nine/ada

[Mesa-dev] [PATCH 03/45] st/nine: Fix rounding issue with vs1.1 a0 reg

2016-01-29 Thread Axel Davy
-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_shader.c | 29 +++ 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index

[Mesa-dev] [PATCH 43/45] st/nine: Enforce centroid for color input when multisampling is on

2016-01-29 Thread Axel Davy
The color inputs must automatically use centroid whether multisampling is used or not. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_shader.c | 12 src/gallium/state_trackers/nine/nine_shader.h | 1 + src/gallium/state_trackers

[Mesa-dev] [PATCH 04/45] st/nine: Fix D3DRS_LOCALVIEWER being ignored

2016-01-29 Thread Axel Davy
From: Patrick Rudolph Set key->localviewer to D3DRS_LOCALVIEWER. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_track

Re: [Mesa-dev] [PATCH 19/45] st/nine: Clear rendertarget on creation

2016-01-29 Thread Axel Davy
his is all good. -ilia On Fri, Jan 29, 2016 at 11:08 AM, Axel Davy wrote: From: Patrick Rudolph Clear every rendertarget on creation. Fixes https://github.com/iXit/Mesa-3D/issues/139 Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/surface9.c |

Re: [Mesa-dev] [PATCH 14/45] st/nine: Unset vtxbuf on reset

2016-01-29 Thread Axel Davy
On 29/01/2016 17:49, Ilia Mirkin wrote: On Fri, Jan 29, 2016 at 11:08 AM, Axel Davy wrote: We forgot to reset vtxbuf. This fixes some crashes. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_state.c | 4 +++- 1 file changed, 3 insertions

Re: [Mesa-dev] [PATCH 00/45] New Gallium Nine fixes

2016-01-29 Thread Axel Davy
Thanks a lot ! On 29/01/2016 17:59, Ilia Mirkin wrote: FWIW I looked over these quickly and sent a very small amount of feedback. I didn't really see anything too objectionable, but I'm also not an expert on any of this stuff. On Fri, Jan 29, 2016 at 11:08 AM, Axel Davy wrote: I

[Mesa-dev] [PATCH 2/2] st/nine: Unset vtxbuf on reset

2016-01-30 Thread Axel Davy
We forgot to reset vtxbuf. This fixes some crashes. Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium

[Mesa-dev] [PATCH 1/2] st/nine: Use pipe_resource_reference for vtxbuf

2016-01-30 Thread Axel Davy
This seems cleaner to actually reference the resources for vtxbuf, rather than relying on the fact the bound d3d streams do. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 3 ++- src/gallium/state_trackers/nine/stateblock9.c | 4 ++-- 2 files changed, 4 insertions

Re: [Mesa-dev] [PATCH] gallium/radeon: always unmap textures on 32-bit

2016-02-01 Thread Axel Davy
mapped, you get the optimization, else for most resources, which get mapped once or two times, you don't keep the additionnal memory storage. Yours, Axel Davy On 01/02/2016 15:20, Marek Olšák wrote: From: Marek Olšák This might fix mmap errors with Natural Selection 2, which a 32-bit

[Mesa-dev] [PATCH] st/nine: Implement Managed vertex/index buffers

2016-02-06 Thread Axel Davy
We were implementing those the same way than the default pool, which is sub-optimal. The buffer is supposed to return pointer to a ram copy when user locks, and automatically update the vram copy when needed. Signed-off-by: Axel Davy --- This fixes Skyrim npcs causing slow downs, and likely the

[Mesa-dev] [PATCH v2] st/nine: Implement Managed vertex/index buffers

2016-02-06 Thread Axel Davy
update_managed_buffers Initialize NineBuffer9 managed fields after the resource is allocated. In case of allocation failure, when the dtor is executed, This->base.pool is then rightfully set. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/buffer9.c|

[Mesa-dev] [PATCH 11/12] st/nine: Drop path for ureg_NRM and ureg_CLAMP

2016-02-07 Thread Axel Davy
using MIN/MAX is fine instead of CLAMP. NRM doesn't exist anymore. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/ga

[Mesa-dev] [PATCH 03/12] st/nine: Clean useless code in texture9.c

2016-02-07 Thread Axel Davy
This->base.base.resource is worth NULL for SYSTEMMEM textures. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/texture9.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/state_trackers/nine/texture9.c b/src/gallium/state_trackers/n

[Mesa-dev] [PATCH 04/12] st/nine: Move texture creation checks

2016-02-07 Thread Axel Davy
We were having checks at both Create*Texture functions and in ctors. Move all Create*Texture checks to ctors. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/cubetexture9.c | 2 ++ src/gallium/state_trackers/nine/device9.c| 13 - src/gallium/state_trackers

[Mesa-dev] [PATCH 01/12] st/nine: Do not set resource usage for SYSTEMMEM

2016-02-07 Thread Axel Davy
We do not create a resource for SYSTEMMEM textures, thus we do not need to set resource usage. The only exception is vertexbuffer SYSTEMMEM, since we do use a pipe resource for them. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/surface9.c | 11 --- src/gallium

[Mesa-dev] [PATCH 00/12] Some more Nine fixes

2016-02-07 Thread Axel Davy
ck to have SSE code and llvm work correctly. I think the better is to just realign at d3d entry points. Any suggestion whether that last patch should be sent to mesa stable or not ? Yours. Axel Davy (12): st/nine: Do not set resource usage for SYSTEMMEM st/nine: Do not set SHARED flag for share

[Mesa-dev] [PATCH 02/12] st/nine: Do not set SHARED flag for shared textures.

2016-02-07 Thread Axel Davy
We do not support shared textures, thus no need to set the shared flag. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/texture9.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/texture9.c b/src/gallium/state_trackers/nine/texture9.c index

[Mesa-dev] [PATCH 08/12] st/nine: SCRATCH does support all formats

2016-02-07 Thread Axel Davy
Add new argument to d3d9_to_pipe_format_checked to be able to bypass format support checks. This argument is set to TRUE when the requested Pool is SCRATCH. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 21 +++-- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 07/12] st/nine: Add format checks to create_zs_or_rt_surface

2016-02-07 Thread Axel Davy
x27;t supported. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index b6e75b4..3ebff3a 100644 --- a/src/gallium/state_trackers

[Mesa-dev] [PATCH 10/12] st/nine: Remove usage of SQRT in ff code

2016-02-07 Thread Axel Davy
SQRT is not supported everywhere, so replace it by RSQ + RCP Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index

[Mesa-dev] [PATCH 09/12] st/nine: Fix stateblocks crashes with lights

2016-02-07 Thread Axel Davy
We had several issues of crashes with it. This should fix it. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/stateblock9.c | 40 +-- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium

[Mesa-dev] [PATCH 06/12] st/nine: Support ATI1/ATI2 for CubeTexture

2016-02-07 Thread Axel Davy
Texture and CubeTexture use common code, and thus ATI1/ATI2 is already implemented for CubeTexture. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 5 +++-- src/gallium/state_trackers/nine/cubetexture9.c | 4 src/gallium/state_trackers/nine/volumetexture9

[Mesa-dev] [PATCH 05/12] st/nine: Clean pSharedHandle Texture ctors checks

2016-02-07 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/cubetexture9.c | 7 --- src/gallium/state_trackers/nine/texture9.c | 25 src/gallium/state_trackers/nine/volumetexture9.c | 7 --- 3 files changed, 21 insertions(+), 18 deletions(-) diff

Re: [Mesa-dev] [PATCH 00/12] Some more Nine fixes

2016-02-07 Thread Axel Davy
The last patch awaits moderation because of its size, you can find it here: https://github.com/iXit/Mesa-3D/commit/29e2ccf64273814071655d84aca69b6496fbb4bd On 08/02/2016 00:13, Axel Davy wrote: A few more patches I'd like to get in 11.2. There a few cleanup patches and some fixes. The

Re: [Mesa-dev] [PATCH 10/12] st/nine: Remove usage of SQRT in ff code

2016-02-07 Thread Axel Davy
On 08/02/2016 00:21, Ilia Mirkin wrote: On Sun, Feb 7, 2016 at 6:13 PM, Axel Davy wrote: SQRT is not supported everywhere, so replace it by RSQ + RCP Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] Are gallium unpack_rgba_8unorm/pack_rgba_8unorm safe for in-place conversion ?

2016-02-09 Thread Axel Davy
ions to be safe for in-place conversion ? Could we add that somewhere as requirement ? CC-ing vmware guys, as they probably know. Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Are gallium unpack_rgba_8unorm/pack_rgba_8unorm safe for in-place conversion ?

2016-02-09 Thread Axel Davy
Hi again, Actually, "util_format_translate" seems to fit our needs. It could probably be optimised better (8unorm fitting format->ARGB could avoid using tmp buffer for example), but that should be ok for our needs. Yours, Axel Davy On 09/02/2016 20:17, Axel Davy wrote: Hi, We

Re: [Mesa-dev] Are gallium unpack_rgba_8unorm/pack_rgba_8unorm safe for in-place conversion ?

2016-02-09 Thread Axel Davy
On 09/02/2016 20:30, Jose Fonseca wrote: On 09/02/16 19:17, Axel Davy wrote: Hi, We'd need to do some formats conversion in gallium nine, and if possible we would like to do them in-place. unpack_rgba_8unorm/pack_rgba_8unorm doesn't seem to explicitly allow in-place conversio

Re: [Mesa-dev] [PATCH 00/12] Some more Nine fixes

2016-02-12 Thread Axel Davy
On 09/02/2016 14:58, Emil Velikov wrote: On 7 February 2016 at 23:13, Axel Davy wrote: A few more patches I'd like to get in 11.2. There a few cleanup patches and some fixes. The last patch fixes build with llvm 32 bits when it isn't built with -mstackrealign. Basically Apps hav

[Mesa-dev] [PATCH] st/nine: Forbid POSITION0 and fix depth input for PS3.0

2016-02-12 Thread Axel Davy
POSITION0 input is forbidden for PS3.0 apparently. Besides for depth input we weren't using the system value version if needed Signed-off-by: Axel Davy --- Could be better having it separated into two patches perhaps. It should get into Mesa 11.2, to prevent regression caused b

Re: [Mesa-dev] [RFC PATCH] GBM: Add map/unmap functions

2016-03-31 Thread Axel Davy
On 31/03/2016 05:21, Rob Herring wrote : int (*getCapabilities)(__DRIscreen *screen); + + /** +* Lock a part of a __DRIimage for specified usage +* +* flush_flag: +*0: no flush +*__BLIT_FLAG_FLUSH: flush after the blit operation +*__BLI

[Mesa-dev] [PATCH 1/3] r600: Change default behaviour for undefined COLOR0

2016-04-03 Thread Axel Davy
d3d 9 needs COLOR0 to be 1.0 on all channels when undefined. 0.0 for the others is fine. GL behaviour is undefined. Signed-off-by: Axel Davy --- src/gallium/drivers/r600/r600_state.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium

[Mesa-dev] [PATCH 2/3] radeonsi: Change default behaviour for undefined COLOR0

2016-04-03 Thread Axel Davy
d3d 9 needs COLOR0 to be 1.0 on all channels when undefined. 0.0 for the others is fine. GL behaviour is undefined. Signed-off-by: Axel Davy --- src/gallium/drivers/radeonsi/si_state_shaders.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c

[Mesa-dev] [PATCH 3/3] radeonsi: Mixed colorbuffer formats are unsupported

2016-04-03 Thread Axel Davy
Besides depth/stencil, the hardware doesn't support mixed formats. The GL state tracker doesn't make use of them. Signed-off-by: Axel Davy --- src/gallium/drivers/radeonsi/si_state.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_stat

Re: [Mesa-dev] [PATCH 1/3] r600: Change default behaviour for undefined COLOR0

2016-04-03 Thread Axel Davy
On 03/04/2016 19:37, Marek Olšák wrote: r600_state.c only applies to r600-r700. evergreen_state.c is for EG and NI. Did you want to update that as well? Marek Thanks for pointing that out, I'll write a patch for EG and NI as well. Axem ___ mesa-dev

[Mesa-dev] [PATCH] r600g: Change default behaviour for undefined COLOR0

2016-04-03 Thread Axel Davy
d3d 9 needs COLOR0 to be 1.0 on all channels when undefined. 0.0 for the others is fine. GL behaviour is undefined. Signed-off-by: Axel Davy --- src/gallium/drivers/r600/evergreen_state.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src

[Mesa-dev] [PATCH] radeon: Change AA sample locations for EG+

2016-04-03 Thread Axel Davy
This sets the AA location to the d3d11 spec. EG/NI 8X MSAA is left as is. Not sure why it was set different to Cayman, so let it as is. Signed-off-by: Axel Davy --- src/gallium/drivers/radeon/cayman_msaa.c | 68 1 file changed, 34 insertions(+), 34 deletions

Re: [Mesa-dev] [PATCH 1/3] r600: Change default behaviour for undefined COLOR0

2016-04-04 Thread Axel Davy
On 03/04/2016 20:41, Roland Scheidegger wrote : Am 03.04.2016 um 10:11 schrieb Axel Davy: d3d 9 needs COLOR0 to be 1.0 on all channels when undefined. 0.0 for the others is fine. GL behaviour is undefined. Not that I care what drivers use by default for undefined values, but it probably would

Re: [Mesa-dev] [PATCH 1/3] r600: Change default behaviour for undefined COLOR0

2016-04-04 Thread Axel Davy
Le 04/04/2016 15:27, Roland Scheidegger a écrit : Am 04.04.2016 um 14:04 schrieb Axel Davy: On 03/04/2016 20:41, Roland Scheidegger wrote : Am 03.04.2016 um 10:11 schrieb Axel Davy: d3d 9 needs COLOR0 to be 1.0 on all channels when undefined. 0.0 for the others is fine. GL behaviour is

Re: [Mesa-dev] [PATCH 1/3] r600: Change default behaviour for undefined COLOR0

2016-04-04 Thread Axel Davy
On 04/04/2016 18:48, Roland Scheidegger wrote: Am 04.04.2016 um 17:27 schrieb Axel Davy: So is that ok to you for now to update the radeon behaviour ? As I said, you can do what you want there as far as I'm concerned. Just saying it's going to be a constant battle to fix oth

Re: [Mesa-dev] [PATCH] gallium/radeon: handle vertex shaders that disable clipping & viewport

2016-04-13 Thread Axel Davy
Unfortunately, that doesn't fix the issue. On 13/04/2016 17:37, Marek Olšák wrote: From: Marek Olšák This should fix Nine. --- src/gallium/drivers/radeon/r600_pipe_common.h | 1 + src/gallium/drivers/radeon/r600_viewport.c| 20 +++- 2 files changed, 20 insertions(+), 1

Re: [Mesa-dev] [PATCH] st/nine: correctly fold guards around define WINAPI

2016-04-15 Thread Axel Davy
I'm not competent to decide on the matter, but the patch seems ok. Acked-by: Axel Davy On 15/04/2016 17:06, Emil Velikov wrote : From: Emil Velikov The __i386__ and __x86-64__ macros are gcc/clang specific, thus one does not need the __GNUC__ at the top. Additionally, having _M_IX8

Re: [Mesa-dev] [PATCH] gallium/radeon: handle vertex shaders that disable clipping & viewport

2016-04-15 Thread Axel Davy
The patch seems unneeded, as a lot of nine apps with the disabled clipping behaviour are working fine. It seems the bug is with the scissor bound computation: for power of two RT, nine is removing a small offset to the viewport for radeon to workaround a raterizer precision bug. The scissor c

Re: [Mesa-dev] [PATCH] gallium/radeon: fix Nine with its slightly shifted viewports

2016-04-15 Thread Axel Davy
Reviewed-by: Axel Davy On 16/04/2016 00:44, Marek Olšák wrote: From: Marek Olšák just need to do the calculation in floating-point and then round things properly --- src/gallium/drivers/radeon/r600_viewport.c | 36 +- 1 file changed, 21 insertions(+), 15

[Mesa-dev] [PATCH 3/9] glx/dri3: Add additional check for gpu offloading case

2015-05-02 Thread Axel Davy
Checks blitImage is implemented. Initially having the __DRIimageExtension extension at version 9 at least meant blitImage was supported. However some implementations do advertise version >= 9 without implementing it. Signed-off-by: Axel Davy --- src/glx/dri3_glx.c | 5 + 1 file changed

[Mesa-dev] [PATCH 5/9] egl/wayland: Implement DRI_PRIME support

2015-05-02 Thread Axel Davy
iling that we share with the server. This is similar to the glx dri3 DRI_PRIME implementation. Signed-off-by: Axel Davy --- src/egl/drivers/dri2/egl_dri2.h | 3 + src/egl/drivers/dri2/platform_wayland.c | 105 +++- 2 files changed, 93 insertions(+), 15 dele

[Mesa-dev] [PATCH 2/9] doc/egl: Remove depreciated EGL_SOFTWARE

2015-05-02 Thread Axel Davy
EGL_SOFTWARE is not supported anywhere in the code, whereas LIBGL_ALWAYS_SOFTWARE is. Signed-off-by: Axel Davy --- docs/egl.html | 8 1 file changed, 8 deletions(-) diff --git a/docs/egl.html b/docs/egl.html index d946bb0..3ab1a60 100644 --- a/docs/egl.html +++ b/docs/egl.html

[Mesa-dev] [PATCH 0/9] Some egl/wayland patches

2015-05-02 Thread Axel Davy
y could be avoided by upgrading this API. There doesn't seem to be interest in doing this work for a small gain for something that's not as efficient as hw rendering anyway. Axel Davy (9): egl/wayland: properly destroy wayland objects doc/egl: Remove depreciated EGL_SOFTWARE glx/dri3:

[Mesa-dev] [PATCH 7/9] egl/wayland: assume EGL_WINDOW_BIT

2015-05-02 Thread Axel Davy
Only EGL_WINDOW_BIT is supported. Remove tests related. Signed-off-by: Axel Davy --- src/egl/drivers/dri2/platform_wayland.c | 38 +++-- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2

[Mesa-dev] [PATCH 8/9] egl/wayland: Implement swrast support

2015-05-02 Thread Axel Davy
Signed-off-by: Axel Davy --- src/egl/drivers/dri2/egl_dri2.c | 5 +- src/egl/drivers/dri2/egl_dri2.h | 4 + src/egl/drivers/dri2/platform_wayland.c | 704 +++- 3 files changed, 696 insertions(+), 17 deletions(-) diff --git a/src/egl/drivers/dri2

[Mesa-dev] [PATCH 6/9] egl/x11: move dri2_x11_swrast_create_image_khr to egl_dri2_fallback.h

2015-05-02 Thread Axel Davy
Signed-off-by: Axel Davy --- src/egl/drivers/dri2/egl_dri2_fallbacks.h | 9 + src/egl/drivers/dri2/platform_x11.c | 11 +-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2

[Mesa-dev] [PATCH 4/9] egl/wayland: Add support for render-nodes

2015-05-02 Thread Axel Davy
It is possible the server advertises a render-node. In that case no authentication is needed, and Gem names are forbidden. Signed-off-by: Axel Davy --- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 58 +++-- 2 files changed

[Mesa-dev] [PATCH 1/9] egl/wayland: properly destroy wayland objects

2015-05-02 Thread Axel Davy
the wl_registry and the wl_queue allocated weren't destroyed. Signed-off-by: Axel Davy --- src/egl/drivers/dri2/egl_dri2.c | 2 ++ src/egl/drivers/dri2/platform_wayland.c | 5 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/sr

[Mesa-dev] [PATCH 9/9] egl/swrast: enable config extension for swrast

2015-05-02 Thread Axel Davy
Enables to use dri config for swrast, like vblank_mode. Signed-off-by: Axel Davy --- src/egl/drivers/dri2/egl_dri2.c| 21 ++--- src/gallium/state_trackers/dri/drisw.c | 1 + src/mesa/drivers/dri/swrast/swrast.c | 1 + 3 files changed, 12 insertions(+), 11 deletions

Re: [Mesa-dev] [PATCH 2/2] glx: provide a way to disable DRI3 using an environment variable

2015-05-06 Thread Axel Davy
cb_present_id); There is already a LIBGL_DRI3_DISABLE env var. Does this one bring something different ? Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 7/9] egl/wayland: assume EGL_WINDOW_BIT

2015-05-08 Thread Axel Davy
Le 06/05/2015 03:00, Dave Airlie a écrit : On 2 May 2015 at 20:15, Axel Davy wrote: Only EGL_WINDOW_BIT is supported. Remove tests related. Is this there no plans to support pixmap/pbuffer/ or any of the other bits? Seems like a step in the wrong direction if we really should be supporting

Re: [Mesa-dev] [PATCH 4/9] egl/wayland: Add support for render-nodes

2015-05-09 Thread Axel Davy
it looks like a very recent libdrm function, and we would require libdrm 2.4.60, which is quite recent. Currently mesa requires 2.4.38, when libdrm is needed. I guess we cannot require 2.4.60 for now. Yours, Axel Davy ___ mesa-dev mailing

[Mesa-dev] [PATCH 4/9 v2] egl/wayland: Add support for render-nodes

2015-05-09 Thread Axel Davy
It is possible the server advertises a render-node. In that case no authentication is needed, and Gem names are forbidden. Reviewed-by: Dave Airlie Reviewed-by: Daniel Stone Signed-off-by: Axel Davy v2: do not check for __DRI_IMAGE_DRIVER, but instead do not advertise __DRI_DRI2_LOADER when

Re: [Mesa-dev] [PATCH 5/9] egl/wayland: Implement DRI_PRIME support

2015-05-10 Thread Axel Davy
On Fri, 8 May 2015, Emil Velikov wrote: Shouldn't we authenticate with the correct gpu or master/render node ? This implementation will auth with GPU1, and then use GPU2 which seems a bit odd. I might be missing something ? The original patches did do differently: when GPU1 was discovered to

Re: [Mesa-dev] [PATCH 4/9] egl/wayland: Add support for render-nodes

2015-05-11 Thread Axel Davy
Le 11/05/2015 17:42, Matt Turner a écrit : On Sat, May 9, 2015 at 4:20 AM, Axel Davy wrote: for drmGetNodeTypeFromFd, it looks like a very recent libdrm function, and we would require libdrm 2.4.60, which is quite recent. Currently mesa requires 2.4.38, when libdrm is needed. I guess we cannot

Re: [Mesa-dev] Omission? mesa-10.5.6

2015-05-25 Thread Axel Davy
If one side is NaN, then !(x == y) is true, whereas x != y is false On 25/05/2015 21:01, Ilia Mirkin wrote : On Mon, May 25, 2015 at 2:53 PM, Matt Turner wrote: It's that the compiler thinks that (!x == y) is a typo for !(x == y). I have to say, I think the first does look strange. I dunno..

Re: [Mesa-dev] [PATCH 15/16] nine: Add drirc options

2014-10-19 Thread Axel Davy
On 20/10/2014 04:32, Michel Dänzer wrote : On 18.10.2014 20:55, David Heidelberger wrote: From: Axel Davy [...] +#define DRI_CONF_NINE_VSYNC(def) \ +DRI_CONF_OPT_BEGIN_V(vsync_force,enum,def,"0:2") \ +DRI_CONF_DESC_BEGIN(en,gettext("Force the

Re: [Mesa-dev] [PATCH 15/16] nine: Add drirc options

2014-10-20 Thread Axel Davy
On 20/10/2014 09:12, Michel Dänzer wrote : On 20.10.2014 14:47, Axel Davy wrote: On 20/10/2014 04:32, Michel Dänzer wrote : On 18.10.2014 20:55, David Heidelberger wrote: From: Axel Davy [...] +#define DRI_CONF_NINE_VSYNC(def) \ +DRI_CONF_OPT_BEGIN_V(vsync_force,enum,def,&quo

Re: [Mesa-dev] [PATCH 02/14] mesa/gallium: API settings / rasterization rules

2014-10-20 Thread Axel Davy
et to 0.0 instead of 1.0. I don't know the code enough to know if it's a good change or not, but I guess it's likely to be an error. Discussing with David Heidelberger, the patch will likely be dropped. Axel Davy On 20/10/2014 17:37, Brian Paul wrote : I don'

Re: [Mesa-dev] [PATCH 06/16] gallium: add blending to pipe blit

2014-10-20 Thread Axel Davy
It's only used to blend the cursor. If you check the second version of the series, the patch was dropped. Axel Davy On 20/10/2014 22:18, Jose Fonseca wrote : I also can't see where this is being used in https://github.com/iXit/Mesa-3D/commit/9671cfd9bdad5c310b34c57befcfd7c43034

Re: [Mesa-dev] [PATCH 00/14] [v2] Famous Gallium Nine

2014-10-21 Thread Axel Davy
e makes it possible to implement non-DRI3 backends. Thus I think it's ok the Mesa part builds, even if no non-DRI3 backend exists yet and that DRI3 is not available on the system. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedeskto

Re: [Mesa-dev] [RFC] egl: Add DRI3 support to the EGL backend.

2014-10-28 Thread Axel Davy
y for a resize and after swapbuffers. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v3 0/9] Gallium Nine

2014-11-14 Thread Axel Davy
n. The user explicitly enable/disable Nine support in wine, and if it is enabled and fails to load, it will fallback to normal wine support. User gets a message in console to tell him why it failed/ if Nine is activated. I hope these arguments will help convince you, Axel Davy __

Re: [Mesa-dev] [PATCH v3 0/9] Gallium Nine

2014-11-14 Thread Axel Davy
Le 14/11/2014 18:40, Henri Verbeet a écrit : On 14 November 2014 17:52, Axel Davy wrote: Second d3d9 as gallium state tracker seems much easier than d3d9 on OpenGL. As for me, I contributed only since a few months ago, and was able to implement a lot of things quite easily, for exemple

[Mesa-dev] [PATCH v4 8/8] nine: Implement threadpool

2014-11-17 Thread Axel Davy
buffers to the server only when rendering has finished. Since waiting the rendering has finished in the main thread has a performance impact, this patch uses an additional thread to offload the wait and the sending of the buffers to the server. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy

[Mesa-dev] [PATCH v4 5/8] gallium/auxiliary: add contained and rect checks (v6)

2014-11-17 Thread Axel Davy
From: Christoph Bumiller v3: thanks to Brian, improved coding style, also glennk helped spot few things (unsigned -> int, two constify) v4: thanks Ilia improved function, dropped u_box_clip_3d v5: incorporated rest of Gregor proposed changes,clean ups v6: u_box_clip_2d simplify proposed by Ilia M

[Mesa-dev] [PATCH v4 7/8] nine: Add drirc options (v2)

2014-11-17 Thread Axel Davy
Implements vblank_mode and throttling, which allows us change default ratio between framerate and input lag. Signed-off-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.h | 1 + src/gallium/state_trackers/nine/swapchain9.c| 5 src

[Mesa-dev] [PATCH v4 0/8] Gallium Nine

2014-11-17 Thread Axel Davy
Hi, Here is last (4th) iteration of Gallium Nine patches. We have integrated the new feedback we have got and hope the status of the serie is good enough now for merge. Thanks, Axel Davy Axel Davy (2): nine: Add drirc options (v2) nine: Implement threadpool Christoph Bumiller (5

[Mesa-dev] [PATCH v4 4/8] gallium/auxiliary: add inc and dec alternative with return (v2)

2014-11-17 Thread Axel Davy
From: Christoph Bumiller At this moment we use only zero or positive values. v2: Implement it for also for Solaris, MSVC assembly and enable for other combinations. Signed-off-by: David Heidelberg --- src/gallium/auxiliary/util/u_atomic.h | 78 +++ 1 file c

[Mesa-dev] [PATCH v4 1/8] tgsi/ureg: add ureg_UARL shortcut (v2)

2014-11-17 Thread Axel Davy
From: Christoph Bumiller v2: moved in in same order as in p_shader_tokens (thanks Brian) Reviewed-by: Marek Olšák Signed-off-by: David Heidelberg --- src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_opcode_tmp.h

[Mesa-dev] [PATCH v4 3/8] gallium/auxiliary: implement sw_probe_wrapped (v2)

2014-11-17 Thread Axel Davy
From: Christoph Bumiller Implement pipe_loader_sw_probe_wrapped which allows to use the wrapped software renderer backend when using the pipe loader. v2: - remove unneeded ifdef - use GALLIUM_PIPE_LOADER_WINSYS_LIBS - check for CALLOC_STRUCT thanks to Emil Velikov Signed-off-by: Dav

[Mesa-dev] [PATCH v4 2/8] winsys/sw/wrapper: implement is_displaytarget_format_supported for swrast

2014-11-17 Thread Axel Davy
From: Christoph Bumiller Signed-off-by: David Heidelberg --- src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c b/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c index e552ac2

Re: [Mesa-dev] [PATCH v4 0/8] Gallium Nine

2014-11-17 Thread Axel Davy
Sorry, patch 4 is too big the mailing list. The entire serie can be found here: https://github.com/iXit/Mesa-3D/commits/for-upstream-5 On 17/11/2014 16:58, Axel Davy wrote : Hi, Here is last (4th) iteration of Gallium Nine patches. We have integrated the new feedback we have got and hope the

[Mesa-dev] [PATCH v5] gallium/auxiliary: add inc and dec alternative with return (v3)

2014-11-17 Thread Axel Davy
From: Christoph Bumiller At this moment we use only zero or positive values. v2: Implement it for also for Solaris, MSVC assembly and enable for other combinations. v3: Replace MSVC assembly by assert + warning during compilation Signed-off-by: David Heidelberg --- src/gallium/auxiliary/

[Mesa-dev] [PATCH] gallium/auxiliary: add inc and dec alternative with return (v4)

2014-11-17 Thread Axel Davy
From: Christoph Bumiller At this moment we use only zero or positive values. v2: Implement it for also for Solaris, MSVC assembly and enable for other combinations. v3: Replace MSVC assembly by assert + warning during compilation v4: remove inc and dec with return for MSVC assembly Signed

Re: [Mesa-dev] [PATCH 1/3] nine: Don't use the otherwise-dead SFL opcode in an unreachable path.

2014-11-20 Thread Axel Davy
Hi, Series looks good. You can add my r-b. Do you want also to remove the DP2A reference like did Jose patch ? Axel Davy On 20/11/2014 23:31, Eric Anholt wrote : --- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src

Re: [Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-22 Thread Axel Davy
does, I seems wine will return S_OK like we currently do, but it does in addition fill the return structure with 0, with the comment: /* D3D allows GetData on a new query, OpenGL doesn't. So just invent the data ourselves */ Perhaps for best compatibility we could i

Re: [Mesa-dev] [PATCH 03/11] st/nine: propertly declare constants

2014-11-24 Thread Axel Davy
On 24/11/2014 06:54, Ilia Mirkin wrote : On Sun, Nov 23, 2014 at 5:40 PM, David Heidelberg wrote: From: Axel Davy Fixes "Error : CONST[20]: Undeclared source register" when running dx9_alpha_blending_material. Also artifacts on ilo. Cc: "10.4" Tested-by: David Heide

Re: [Mesa-dev] [PATCH 3/3] glx/dri3: Request non-vsynced Present for swapinterval zero.

2014-11-24 Thread Axel Davy
Hi, This patch removes the tripple buffering behaviour that the GLX implementation has with DRI3. I understand your concern for Medical softwares, but perhaps this would be better handled with an user option. Axel Davy On 25/11/2014 04:00, Mario Kleiner wrote : Restores proper immediate

Re: [Mesa-dev] [Mesa-stable] [PATCH v3 01/19] st/nine: clean device9ex.

2014-11-26 Thread Axel Davy
Thanks, patch 1 is not needed for patch 2 and 3. As for patch 2, I'm 99% sure it's not needed for patch 3. Axel On 26/11/2014 21:14, Emil Velikov wrote : Hi guys, I've picked up patches 1-10 & 13 for master. Afaict there is still a comment on two on the topic of queries, so I'll leave these o

[Mesa-dev] [PATCH 2/2] st/nine: Fix vertex declarations for non-standard (usage/index)

2014-11-27 Thread Axel Davy
dex) Cc: "10.4" Tested-by: Yaroslav Andrusyak Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_defines.h | 40 ++- src/gallium/state_trackers/nine/nine_ff.c | 49 +++-- src/gallium/state_trackers/nine/nine_shader.h | 2 +- src/gallium/s

[Mesa-dev] [PATCH 1/2] st/nine: sm1_declusage_to_tgsi, do not restrict indices with TGSI_SEMANTIC_GENERIC

2014-11-27 Thread Axel Davy
TE, we can map all combinations. Cc: "10.4" Tested-by: Yaroslav Andrusyak Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 112 -- 1 file changed, 52 insertions(+), 60 deletions(-) diff --git a/src/gallium/state_trackers/nine/

Re: [Mesa-dev] [PATCH 2/2] st/nine: Fix vertex declarations for non-standard (usage/index)

2014-11-28 Thread Axel Davy
On Fri, 28 Nov 2014, Marek Olšák wrote: Does this have any effect on what data drivers get or is it just internal to Nine? Marek No, this patch shouldn't change anything for the driver. It is only internal to Nine. Axel___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-03-23 Thread Axel Davy
You seem to miss the case when one is None and not the other. It should return BadDrawable too. This particular case seems not handled by the dri2 code either, and the gallium state tracker seems to handle it in bindContext, but not the intel code for example. Axel Davy On 23/03/2015 08:07

Re: [Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-03-24 Thread Axel Davy
dri3_glx could use it. thanks Yes. I imagine putting it into MakeContextCurrent is not a solution, since it means GLXBadContext will be returned instead of GLXBadDrawable. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.fr

Re: [Mesa-dev] [PATCH] dri3_glx.c: Pass NULL DRI drawables into driver for None GLX drawables

2015-03-24 Thread Axel Davy
On 24/03/2015 08:33, Zhang, Xiong Y wrote : Yes. I imagine putting it into MakeContextCurrent is not a solution, since it means GLXBadContext will be returned instead of GLXBadDrawable. [Zhang, Xiong Y] Yes, I agree with you. But it is strange that both macro GLXBadContext and Success are val

Re: [Mesa-dev] GL_TEXTURE_2D to wl_buffer

2015-03-28 Thread Axel Davy
GL_RGBA should corresponds to ABGR. Try GL_BGRA, which is ARGB. Note: Actually it is possible intel vs gallium drivers GL_RGBA and GL_BGRA have different argb ordering. So perhaps try both so that all drivers are happy. Le 28/03/2015 14:57, x414e54 a écrit : I am attempting to pass a

Re: [Mesa-dev] DMA_BUF render targets disabled for intel

2015-04-02 Thread Axel Davy
Hi, you may be interesting look at this related bug report: https://bugs.freedesktop.org/show_bug.cgi?id=87452#c5 Yours, Axel Davy On 02/04/2015 11:58, Volker Vogelhuber wrote : We currently want to stream OpenGL output to an FPGA that does not provide a SG controller and should manage the

<    3   4   5   6   7   8   9   10   11   >