[Mesa-dev] [PATCH 14/71] st/nine: Simplify Volume9 dirty region tracking

2015-08-16 Thread Axel Davy
Similar to what was done for Surface9, track the dirty region only in VolumeTexture9. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 9 +-- src/gallium/state_trackers/nine/volume9.c | 82 ++ src/gallium/state_trackers

[Mesa-dev] [PATCH 17/71] st/nine: SetAutoGenFilterType should regenerate the sublevels

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c index cc74cc9..728aafd 100644 --- a/src/gallium

[Mesa-dev] [PATCH 10/71] st/nine: Do not call ID3DPresent_GetCursorPos for sw cursor

2015-08-16 Thread Axel Davy
For sw cursor we do not tell wine the cursor position (the app tells us directly). We shouldn't use ID3DPresent_GetCursorPos. device-cursor.pos already contains the coordinates the app gave us. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: David Heidelberg da...@ixit.cz --- src/gallium

[Mesa-dev] [PATCH 02/71] target/d3dadapter9: Return Windows like card names

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Add support for multiple cards and fill in Windows like card name, driver name and version info. Use fallback for unknown vendors and unknown card names. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src

[Mesa-dev] [PATCH 19/71] st/nine: Track dirty region for SYSTEMMEM too

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 6 -- src/gallium/state_trackers/nine/surface9.c | 4 ++-- src/gallium/state_trackers/nine/texture9.c | 10 ++ src/gallium/state_trackers/nine/volumetexture9.c | 8

[Mesa-dev] [PATCH 11/71] st/nine: Revert to sw cursor in case of failure to set hw cursor

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: David Heidelberg da...@ixit.cz --- src/gallium/state_trackers/nine/device9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index

[Mesa-dev] [PATCH 05/71] st/nine: Align texture memory

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Align texture memory on 32 byte boundry to allow SSE/AVX memcpy to work on locked rects. This fixes issue #88. Reviewed-by: David Heidelberg da...@ixit.cz Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src

[Mesa-dev] [PATCH 09/71] st/nine: Force hw cursor for Windowed mode

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: David Heidelberg da...@ixit.cz --- src/gallium/state_trackers/nine/device9.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9

[Mesa-dev] [PATCH 36/71] st/nine: Fix use of uninitialized values

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Set all values to 0 after allocation. Found using valgrind. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src/gallium/state_trackers/nine/device9.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[Mesa-dev] [PATCH 42/71] st/nine: Avoid useless updates in SetSamplerState

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: David Heidelberg da...@ixit.cz --- src/gallium/state_trackers/nine/device9.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9

[Mesa-dev] [PATCH 18/71] st/nine: Add missing BASETEX_REGISTER_UPDATE calls

2015-08-16 Thread Axel Davy
If the texture is bound and dirty_mip is true, BASETEX_REGISTER_UPDATE adds the texture to the list of things to update before the next draw call. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 4 +++- src/gallium/state_trackers/nine/texture9.c

[Mesa-dev] [PATCH 32/71] st/nine: Fix Lock Checks for Compressed textures

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/surface9.c | 10 ++ src/gallium/state_trackers/nine/volume9.c | 9 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium

[Mesa-dev] [PATCH 27/71] st/nine: fix failing wine test device.c test_lockrect_invalid()

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Mimic WindowsXp behaviour and allow negative values in the rectangle passed. Add comment to point out behaviour used. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src/gallium/state_trackers/nine/surface9.c

[Mesa-dev] [PATCH 04/71] st/nine: Always set point_quad_rasterization to 1

2015-08-16 Thread Axel Davy
Both Points and Point Sprites are rasterized like quads, according to d3d9 doc and gallium rasterizer doc. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 20/71] st/nine: Textures start dirty

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 6 +- src/gallium/state_trackers/nine/texture9.c | 3 +++ src/gallium/state_trackers/nine/volumetexture9.c | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 25/71] st/nine: Fix FillColor Flag check

2015-08-16 Thread Axel Davy
IT is better check if the surface was created with RT flag, instead of checking capability (llvmpipe was complaining) Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 23/71] st/nine: Implement EvictManagedResources

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 15 +++ src/gallium/state_trackers/nine/basetexture9.h | 3 +++ src/gallium/state_trackers/nine/device9.c | 12 3 files changed, 26 insertions(+), 4 deletions(-) diff

[Mesa-dev] [PATCH 30/71] st/nine: Return NULL pointer in lock error cases

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Tests showed, that in case of errors, the pBits pointer is set to NULL. The pBits field isn't set to NULL in case of an already locked object. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src/gallium

[Mesa-dev] [PATCH 01/71] st/nine: Require gcc = 4.6

2015-08-16 Thread Axel Davy
From: David Heidelberg da...@ixit.cz Fixes bug: fdo #89978 Signed-off-by: David Heidelberg da...@ixit.cz Cc: 10.4 10.5 10.6 mesa-sta...@lists.freedesktop.org --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 4e751e3..c355092 100644 ---

[Mesa-dev] [PATCH 00/71] New Gallium Nine Fixes and Improvements

2015-08-16 Thread Axel Davy
hesitated to send them, but I'd still like have them in. Patches 61-67 are some more fixes or improvements Patches 68-71 do silent some compilation warnings Axel Davy (55): st/nine: Fix Swizzle for ATI2 format st/nine: Always set point_quad_rasterization to 1 st/nine: fix

Re: [Mesa-dev] [RFC] loader: libudev vs sysfs vs libdrm

2015-07-09 Thread Axel Davy
On 09/07/2015 15:33, Emil Velikov wrote : Yakes forgot about that one. From a quick look we can (I know it feels durty) use readlink( /sys/dev/char/$(major):$(minor)). Everything seems to be there - bus type and exact location of the device on the bus. It's limited to sysfs users, but they are

Re: [Mesa-dev] [RFC] loader: libudev vs sysfs vs libdrm

2015-07-08 Thread Axel Davy
by udev with the device. Perhaps there is another way to compute that tag though. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH RFC] egl/dri2: Add dri3 support to x11 platform

2015-07-04 Thread Axel Davy
), and then you don't have to authenticate. In case render-nodes are not available, then it's ok not to advertise the extension. Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa

Re: [Mesa-dev] [RFC] DRI3 support for EGL

2015-07-01 Thread Axel Davy
the DRI2 implementation. It was misnamed. Thus the answer to your question is yes. Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 0/4] drisw/glx: use XShm if possible

2015-06-10 Thread Axel Davy
having a zero copy mechanism for wayland swrast. Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

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 matts...@gmail.com 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

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 axel.d...@ens.fr 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

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

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

2015-05-09 Thread Axel Davy
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 list mesa-dev

[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 airl...@redhat.com Reviewed-by: Daniel Stone dani...@collabora.com Signed-off-by: Axel Davy axel.d...@ens.fr v2: do not check

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 axel.d...@ens.fr 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

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

2015-05-06 Thread Axel Davy
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

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

2015-05-02 Thread Axel Davy
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: Add additional check

[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 axel.d...@ens.fr --- 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

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

2015-05-02 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- 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

[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 axel.d...@ens.fr --- 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 axel.d...@ens.fr --- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 58

[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 axel.d...@ens.fr --- 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

[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 axel.d...@ens.fr --- 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

[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 axel.d...@ens.fr --- 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

[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 axel.d...@ens.fr --- src/glx/dri3_glx.c | 5 + 1

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

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

Re: [Mesa-dev] [PATCH 1/2] util/macros: Move DIV_ROUND_UP to util/macros.h

2015-04-27 Thread Axel Davy
On 27/04/2015 15:52, Brian Paul wrote : On 04/26/2015 03:23 PM, Axel Davy wrote: */ #include svga3d_reg.h +#include util/macros.h Actually, it looks like this #include may not be needed. We get ARRAY_SIZE via including svga3d_reg.h, which includes svga_types.h, which includes

[Mesa-dev] [PATCH v2] st/nine: Rework texture data allocation

2015-04-27 Thread Axel Davy
Some applications assume the memory for multilevel textures is allocated per continuous blocks. This patch implements that behaviour. v2: cache offsets Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 46 ++- src/gallium

Re: [Mesa-dev] [PATCH 03/11] st/nine: Simplify Surface9 Managed resources implementation

2015-04-26 Thread Axel Davy
On 25/04/2015 22:53, Ilia Mirkin wrote : On Fri, Apr 24, 2015 at 4:11 PM, Axel Davy axel.d...@ens.fr wrote: +if (damaged) { +box = *damaged; +box.z = This-layer; +box.depth = 1; +} else { +box.x = 0; +box.y = 0; +box.z = This-layer

Re: [Mesa-dev] [PATCH 16/16] st/nine: Rework texture data allocation

2015-04-26 Thread Axel Davy
Le 25/04/2015 00:21, Ilia Mirkin a écrit : On Fri, Apr 24, 2015 at 6:13 PM, Axel Davy axel.d...@ens.fr wrote: Le 25/04/2015 00:02, Ilia Mirkin a écrit : I'm having trouble understanding what you're changing here... perhaps a better commit description could go a ways to clearing things up

Re: [Mesa-dev] [PATCH 12/16] st/nine: Fix computation of const_used_size

2015-04-26 Thread Axel Davy
On 24/04/2015 23:40, Ilia Mirkin wrote : On Fri, Apr 24, 2015 at 4:09 PM, Axel Davy axel.d...@ens.fr wrote: From: Xavier Bouchoux xavi...@gmail.com Was sometimes too large for PS. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- src/gallium

Re: [Mesa-dev] [PATCH 09/16] st/nine: Fix D3DQUERYTYPE_TIMESTAMPFREQ query

2015-04-26 Thread Axel Davy
On 24/04/2015 23:26, Ilia Mirkin wrote : From https://msdn.microsoft.com/en-us/library/windows/desktop/bb172594%28v=vs.85%29.aspx D3DQUERYTYPE_TIMESTAMPFREQ This query result is TRUE if the values from D3DQUERYTYPE_TIMESTAMP queries cannot be guaranteed to be continuous throughout the duration

Re: [Mesa-dev] [PATCH 05/16] st/nine: Workaround barycentrics issue on some cards

2015-04-26 Thread Axel Davy
Le 24/04/2015 23:19, Ilia Mirkin a écrit : On Fri, Apr 24, 2015 at 4:09 PM, Axel Davy axel.d...@ens.fr wrote: Might I suggest either describing the bug or the solution to the bug? e.g. boolean shift_viewport; Perhaps there's another different buggy barycentric problem which is solved

[Mesa-dev] [PATCH 08/16 v2] st/nine: Change x86 FPU Control word on device creation

2015-04-26 Thread Axel Davy
From: Tiziano Bacocco tizb...@gmail.com As on wined3d and windows, when D3DCREATE_FPU_PRESERVE is not specified, change the fpu control word to all exceptions masked, single precision, round to nearest. Signed-off-by: Axel Davy axel.d...@ens.fr Signed-off-by: Tiziano Bacocco tizb...@gmail.com

[Mesa-dev] [PATCH 11/16 v2] st/nine: Fix behaviour of D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING

2015-04-26 Thread Axel Davy
From: Xavier Bouchoux xavi...@gmail.com Ignore D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING when D3DUSAGE_RENDERTARGET is not specified. This behaviour matches windows drivers. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- v2: fix commit message src

Re: [Mesa-dev] [PATCH 1/2] util/macros: Move DIV_ROUND_UP to util/macros.h

2015-04-26 Thread Axel Davy
On 26/04/2015 23:23, Axel Davy wrote : Move DIV_ROUND_UP to a shared location accessible everywhere Signed-off-by: Axel Davy axel.d...@ens.fr --- I want to use DIV_ROUND_UP in a galliumm nine patch src/gallium/auxiliary/util/u_math.h | 1 - src/gallium/drivers/svga/include

[Mesa-dev] [PATCH 1/2] util/macros: Move DIV_ROUND_UP to util/macros.h

2015-04-26 Thread Axel Davy
Move DIV_ROUND_UP to a shared location accessible everywhere Signed-off-by: Axel Davy axel.d...@ens.fr --- I want to use DIV_ROUND_UP in a galliumm nine patch src/gallium/auxiliary/util/u_math.h | 1 - src/gallium/drivers/svga/include/svga3d_surfacedefs.h | 3 +-- src/mesa/main

[Mesa-dev] [PATCH 2/2] gallium/svga: Remove useless ARRAY_SIZE declaration

2015-04-26 Thread Axel Davy
This is already declared in util/macros.h Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/drivers/svga/include/svga3d_surfacedefs.h | 4 1 file changed, 4 deletions(-) diff --git a/src/gallium/drivers/svga/include/svga3d_surfacedefs.h b/src/gallium/drivers/svga/include

Re: [Mesa-dev] [PATCH 08/16] st/nine: Change x86 FPU Control word on device creation as on wined3d and windows

2015-04-25 Thread Axel Davy
Le 24/04/2015 23:42, Henri Verbeet a écrit : On 24 April 2015 at 22:09, Axel Davy axel.d...@ens.fr wrote: +static void nine_setup_fpu(void) +{ +#if defined(__GNUC__) (defined(__i386__) || defined(__x86_64__)) +WORD cw; +__asm__ volatile (fnstcw %0 : =m (cw)); +cw = (cw ~0xf3f

Re: [Mesa-dev] [PATCH 08/16] st/nine: Change x86 FPU Control word on device creation as on wined3d and windows

2015-04-25 Thread Axel Davy
Le 25/04/2015 10:15, Henri Verbeet a écrit : The comment is misleading, because the code does more than that. (Hint: What happens to rounding and precision control?) But really, please either explicitly tell people they can't look at Wine (D3D related) source if they want to contribute to

Re: [Mesa-dev] [PATCH 16/16] st/nine: Rework texture data allocation

2015-04-24 Thread Axel Davy
Le 25/04/2015 00:02, Ilia Mirkin a écrit : I'm having trouble understanding what you're changing here... perhaps a better commit description could go a ways to clearing things up? Were you allocating it a level at a time before? How did that work, I don't see a per-level structure... I'm

[Mesa-dev] [PATCH 15/16] st/nine: Fix update_vertex_elements bad rebase

2015-04-24 Thread Axel Davy
This code was supposed to be removed, but a rebase seems to have made it stay. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_state.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium

[Mesa-dev] [PATCH 06/16] st/nine: Fix comment in update_viewport

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_state.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 6c7eab3..27800c6 100644 --- a/src

[Mesa-dev] [PATCH 08/16] st/nine: Change x86 FPU Control word on device creation as on wined3d and windows

2015-04-24 Thread Axel Davy
From: Tiziano Bacocco tizb...@gmail.com Signed-off-by: Tiziano Bacocco tizb...@gmail.com --- src/gallium/state_trackers/nine/device9.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index

[Mesa-dev] [PATCH 08/11] st/nine: util_gen_mipmap doesn't need we reset states.

2015-04-24 Thread Axel Davy
util_gen_mipmap uses pipe-blit, and thus doesn't need we restore all states after using it. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src

[Mesa-dev] [PATCH 00/16] Some Gallium Nine fixes

2015-04-24 Thread Axel Davy
should be harder to review, while the 16 independent patches should be easier to review. Axel Davy (9): st/nine: Handle special LIT case st/nine: Fix wrong assert in nine_shader st/nine: Workaround barycentrics issue on some cards st/nine: Fix comment in update_viewport st/nine: Do

[Mesa-dev] [PATCH 04/16] st/nine: Clear struct pipe_blit_info before use.

2015-04-24 Thread Axel Davy
From: Xavier Bouchoux xavi...@gmail.com render_condition_enable was uninitialized. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- src/gallium/state_trackers/nine/device9.c| 2 ++ src/gallium/state_trackers/nine/swapchain9.c | 2 ++ 2 files

[Mesa-dev] [PATCH 13/16] st/nine: Rework update_vertex_buffers

2015-04-24 Thread Axel Davy
calling set_vertex_buffers on a buffer with vtxbuf-buffer = NULL. It works on some drivers, but not on all of them, because it isn't in Gallium spec. This patch fixes that. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_state.c | 15 --- 1 file changed, 4

[Mesa-dev] [PATCH 01/16] st/nine: Handle special LIT case

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_shader.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 2ba625e..0fd3d37

[Mesa-dev] [PATCH 09/11] st/nine: Some D3DUSAGE_AUTOGENMIPMAP fixes

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c | 14 +- src/gallium/state_trackers/nine/surface9.c | 2 +- src/gallium/state_trackers/nine/surface9.h | 3 +++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 07/11] st/nine: D3DUSAGE_AUTOGENMIPMAP is forbidden for volumes

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/volume9.c| 3 --- src/gallium/state_trackers/nine/volumetexture9.c | 14 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/gallium/state_trackers/nine/volume9.c b/src/gallium

[Mesa-dev] [PATCH 05/16] st/nine: Workaround barycentrics issue on some cards

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c| 4 +++- src/gallium/state_trackers/nine/device9.h| 4 src/gallium/state_trackers/nine/nine_state.c | 24 3 files changed, 31 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 07/16] st/nine: Do not advertise D3DDEVCAPS_TEXTURESYSTEMMEMORY

2015-04-24 Thread Axel Davy
No major vendor advertises it, and we weren't supporting it. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/adapter9.c | 2 +- src/gallium/state_trackers/nine/device9.c | 10 ++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 10/11] st/nine: Enforce LOD 0 for D3DUSAGE_AUTOGENMIPMAP

2015-04-24 Thread Axel Davy
For D3DUSAGE_AUTOGENMIPMAP textures, applications can only lock/copy from/get surface descriptor for/etc the first level. Thus it makes sense to restrict the LOD to 0, and use only the first level to generate the sublevels. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers

[Mesa-dev] [PATCH 01/11] st/nine: Encapsulate variables for MANAGED resource

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 82 src/gallium/state_trackers/nine/basetexture9.h | 19 +++--- src/gallium/state_trackers/nine/cubetexture9.c | 2 +- src/gallium/state_trackers/nine/device9.c

[Mesa-dev] [PATCH 06/11] st/nine: Fix NineBaseTexture9_PreLoad

2015-04-24 Thread Axel Davy
It wasn't uploading the texture when the lod had changed. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers

[Mesa-dev] [PATCH 11/16] st/nine: Ignore D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING when D3DUSAGE_RENDERTARGET is specified

2015-04-24 Thread Axel Davy
From: Xavier Bouchoux xavi...@gmail.com This behaviour matches windows drivers. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- src/gallium/state_trackers/nine/adapter9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src

[Mesa-dev] [PATCH 09/16] st/nine: Fix D3DQUERYTYPE_TIMESTAMPFREQ query

2015-04-24 Thread Axel Davy
at which PIPE_QUERY_TIMESTAMP value is updated. It isn't always 10. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- src/gallium/state_trackers/nine/query9.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src

[Mesa-dev] [PATCH 11/11] st/nine: Remove Managed texture hack.

2015-04-24 Thread Axel Davy
. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c index b868019..17a8f44 100644

[Mesa-dev] [PATCH 02/16] st/nine: Fix wrong assert in nine_shader

2015-04-24 Thread Axel Davy
The sampler src index was wrong for texldl and texldd Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_shader.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium

[Mesa-dev] [PATCH 10/16] st/nine: Improve D3DQUERYTYPE_TIMESTAMP

2015-04-24 Thread Axel Davy
From: Xavier Bouchoux xavi...@gmail.com Avoid blocking when retrieving D3DQUERYTYPE_TIMESTAMP result with NineQuery9_GetData(), when D3DGETDATA_FLUSH is not specified. This mimics Win behaviour and gives slightly better performance for some games. Reviewed-by: Axel Davy axel.d...@ens.fr Signed

[Mesa-dev] [PATCH 12/16] st/nine: Fix computation of const_used_size

2015-04-24 Thread Axel Davy
From: Xavier Bouchoux xavi...@gmail.com Was sometimes too large for PS. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- src/gallium/state_trackers/nine/nine_shader.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src

[Mesa-dev] [PATCH 02/11] st/nine: Remove impossible cases with Managed textures

2015-04-24 Thread Axel Davy
Copying to/from a Managed texture is forbidden. Rendering to a Managed texture is forbidden. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/surface9.c | 23 +-- src/gallium/state_trackers/nine/volume9.c | 19 +++ 2 files changed

[Mesa-dev] [PATCH 04/11] st/nine: Bound the dirty regions to resource size

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 4 src/gallium/state_trackers/nine/texture9.c | 3 +++ src/gallium/state_trackers/nine/volumetexture9.c | 9 + 3 files changed, 16 insertions(+) diff --git a/src/gallium

[Mesa-dev] [PATCH 05/11] st/nine: Rewrite Managed texture uploads

2015-04-24 Thread Axel Davy
That part of the code was quite obscure. This new implementation tries to make it clearer by separating the differents parts, and commenting more. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 221 ++--- 1 file changed, 125

[Mesa-dev] [PATCH 16/16] st/nine: Rework texture data allocation

2015-04-24 Thread Axel Davy
Some applications assume the memory for multilevel textures is allocated per continuous blocks. This patch implements that behaviour. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 42 -- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 14/16] st/nine: Add debug warning when application uses sw processing

2015-04-24 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/cubetexture9.c | 3 +++ src/gallium/state_trackers/nine/device9.c| 5 + src/gallium/state_trackers/nine/indexbuffer9.c | 14 -- src/gallium/state_trackers/nine/texture9.c | 5

[Mesa-dev] [PATCH 03/11] st/nine: Simplify Surface9 Managed resources implementation

2015-04-24 Thread Axel Davy
updates in corner cases. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 15 ++-- src/gallium/state_trackers/nine/nine_pipe.h| 11 --- src/gallium/state_trackers/nine/surface9.c | 108 ++--- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 03/16] st/nine: NineDevice9_Clear skip fastpath for bigger depth-buffers

2015-04-24 Thread Axel Davy
-buffer intact. This fixes failing WINE test visual.c:depth_buffer_test() Signed-off-by: Patrick Rudolph s...@das-labor.org Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 01/16] st/nine: Handle special LIT case

2015-04-24 Thread Axel Davy
Le 24/04/2015 23:04, Ilia Mirkin a écrit : On Fri, Apr 24, 2015 at 4:09 PM, Axel Davy axel.d...@ens.fr wrote: Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_shader.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH 03/16] st/nine: NineDevice9_Clear skip fastpath for bigger depth-buffers

2015-04-24 Thread Axel Davy
Le 24/04/2015 23:10, Ilia Mirkin a écrit : What if the depth buffer is smaller than the color RT? I'd assume that the fb would be reduced in that case as well... or does This-state.fb.width/height only represent the min of the color RT's sizes? It is forbidden by the spec to have depth buffer

Re: [Mesa-dev] [PATCH 11/16] st/nine: Ignore D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING when D3DUSAGE_RENDERTARGET is specified

2015-04-24 Thread Axel Davy
:09 PM, Axel Davy axel.d...@ens.fr wrote: From: Xavier Bouchoux xavi...@gmail.com This behaviour matches windows drivers. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Xavier Bouchoux xavi...@gmail.com --- src/gallium/state_trackers/nine/adapter9.c | 3 ++- 1 file changed, 2

[Mesa-dev] [PATCH v4] glx/dri3: Use a separate xcb connection for Present events

2015-04-19 Thread Axel Davy
-by: Tobias Jakobi tjak...@math.uni-bielefeld.de Signed-off-by: Axel Davy axel.d...@ens.fr v2: use xcb_connection_has_error to check if connection failed, instead of comparing to NULL (xcb_connect never returns NULL) v3: put the xcb_connection in dri3_screen, instead of dri3_context v4: add XSync before

Re: [Mesa-dev] [PATCH v3] glx/dri3: Use a separate xcb connection for Present events

2015-04-19 Thread Axel Davy
Le 20/04/2015 03:58, Michel Dänzer a écrit : On 19.04.2015 06:17, Axel Davy wrote: v3: put the xcb_connection in dri3_screen, instead of dri3_context What's the rationale for that? Couldn't that result in the same xcb_connection being used in several threads again (for several GLX contexts

[Mesa-dev] [PATCH v3] glx/dri3: Use a separate xcb connection for Present events

2015-04-18 Thread Axel Davy
-by: Tobias Jakobi tjak...@math.uni-bielefeld.de Signed-off-by: Axel Davy axel.d...@ens.fr v2: use xcb_connection_has_error to check if connection failed, instead of comparing to NULL (xcb_connect never returns NULL) v3: put the xcb_connection in dri3_screen, instead of dri3_context --- There's a strange

[Mesa-dev] [PATCH] glx/dri3: Use a separate xcb connection for Present events

2015-04-18 Thread Axel Davy
to) This patch creates a per-context xcb connection to solve these issues. Solves: https://bugs.freedesktop.org/show_bug.cgi?id=84252 Tested-by: Tobias Jakobi tjak...@math.uni-bielefeld.de Signed-off-by: Axel Davy axel.d...@ens.fr --- src/glx/dri3_glx.c | 56

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

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

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

2015-03-24 Thread Axel Davy
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.freedesktop.org/mailman

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

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] radeonsi: fix a crash if a stencil ref state is set before a DSA state

2015-02-15 Thread Axel Davy
It works fine. Since no state tracker need it currently, why do you want to backport it to older mesa versions ? In all cases, Reviewed-by: Axel Davy axel.d...@ens.fr (btw: missing signoff) Axel Davy On 15/02/2015 18:21, Marek Olšák wrote : From: Marek Olšák marek.ol...@amd.com + minor

Re: [Mesa-dev] [PATCH 36/43] st/nine: Fix multisampling support detection

2015-02-01 Thread Axel Davy
for some drivers ? Axel On 31/01/2015 07:04, Axel Davy wrote : The patch modifies the code used to check for format support. It needs to test for these flags for render targets because we create the back buffers with these. Probably these flags are not required for back buffers, I'll investigate

[Mesa-dev] [PATCH 06/43] st/nine: Check for the correct number of constants.

2015-01-30 Thread Axel Davy
for old vs and ps versions. The restrictions were fixed, unlike for the number of vertex shader constants for later versions. Likely apps use the correct number, and it's not a problem for us if it wants use more. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine

<    3   4   5   6   7   8   9   10   11   >