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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2014-03-03 Thread Axel Davy
pixmaps to be argb, whereas by creating the texture directly you can't assert this. The bug you hit comes from this code. I already corrected a bug recently in gallium code when it was importing the gbm bo as EGLImage. A field wasn't copied. I can't say from where the bug you

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

2014-03-07 Thread Axel Davy
7;s in the specification. v2: some cleanup and fixes Signed-off-by: Axel Davy --- src/egl/drivers/dri2/Makefile.am| 3 +- src/egl/drivers/dri2/egl_dri2.h | 1 + src/egl/drivers/dri2/platform_wayland.c | 260 3 files changed, 235 insertions(+), 29

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

2014-03-07 Thread Axel Davy
will do) . patch 7 introduces a new mode using blitImage. We render to a buffer (with tiling) which is blitted to a shared buffer (a linear buffer) Axel Davy (7): wayland: Fix the logic in disabling the prime capability EGL/Wayland: DRI_PRIME support v3 drirc: Add string support EGL/Wayla

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

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

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

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

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

2014-03-07 Thread Axel Davy
What we want is disabling the path using primes fds if the client can't create primes fds. Signed-off-by: Axel Davy Signed-off-by: Neil Roberts --- Neil and me did the same correction independantly. src/egl/drivers/dri2/platform_wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 del

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

2014-03-07 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 7/7] EGL/Wayland: use blitImage when requested and on a different device

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

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

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

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

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

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

2014-03-07 Thread Axel Davy
/?h=dri3%2Bgallium> Without the DRIimage driver extension, egl won't launch on the requested card using gallium, saying "wayland-egl: display is not render-node capable", because DRIimage driver extension is required to work with render-nodes. Axel Davy This is the updated

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

2014-03-22 Thread Axel Davy
sn't have that yet). The trick I had to use when writing the code is to convert to gbm_bo the EGLImage, then convert back the gbm_bo to EGLImage. The new EGLImage has no restrictions. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

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

2014-12-02 Thread Axel Davy
dex) Cc: "10.4" Tested-by: Yaroslav Andrusyak Acked-by: Ilia Mirkin 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

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

2014-12-02 Thread Axel Davy
TE, we can map all combinations. Cc: "10.4" Tested-by: Yaroslav Andrusyak Reviewed-by: Marek Olšák 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

[Mesa-dev] [PATCH 7/8] st/nine: Queries: always succeed for D3DQUERYTYPE_TIMESTAMP when flushing

2014-12-02 Thread Axel Davy
This is the behaviour that Wine tests Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/query9.c index f22e821

[Mesa-dev] [PATCH 5/8] st/nine: Queries: Fix D3DISSUE_END behaviour.

2014-12-02 Thread Axel Davy
avid Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/query9.c index a3184d9..dfb17b9 100644 --- a/src/gallium

[Mesa-dev] [PATCH 1/8] st/nine: Queries: remove dummy queries

2014-12-02 Thread Axel Davy
. This patch drops the dummy queries support and matches wine behaviour. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 5 +- src/gallium/state_trackers/nine/query9.c | 101 +++--- 2 files changed, 12 insertions(+), 94

[Mesa-dev] [PATCH 3/8] st/nine: Queries: Use gallium caps to get if queries are supported. (v2)

2014-12-02 Thread Axel Davy
Some queries need the driver to advertise a cap to be supported. For example r300 doesn't support them. v2 (David): check also for PIPE_CAP_QUERY_PIPELINE_STATISTICS, fix wine tests on r300g Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers

[Mesa-dev] [PATCH 2/8] st/nine: Queries: Remove flush logic

2014-12-02 Thread Axel Davy
get_query_result flushes automatically, we don't need to flush. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 13 + src/gallium/state_trackers/nine/query9.h | 1 - 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_tra

[Mesa-dev] [PATCH 4/8] st/nine: Queries: return S_FALSE instead of INVALIDCALL when in building query state

2014-12-02 Thread Axel Davy
It is the same behaviour as wine has. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/query9.c

[Mesa-dev] [PATCH 6/8] st/nine: Queries: allow app to call GetData without Issuing first

2014-12-02 Thread Axel Davy
Nine was allowing that behaviour, but was not filling the result. Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src

[Mesa-dev] [PATCH 8/8] st/nine: Queries: Always return D3D_OK when issuing with D3DISSUE_BEGIN

2014-12-02 Thread Axel Davy
This is the behaviour that wine tests. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine

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

2014-12-04 Thread Axel Davy
y not using XCB_PRESENT_OPTION_ASYNC, but this should not be the default. You can add my Reviewed-by: Axel Davy Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/5] glx/dri3: Fix glXWaitForSbcOML() to handle targetSBC==0 correctly.

2014-12-04 Thread Axel Davy
3_drawable *) pdraw; - while (priv->recv_sbc < target_sbc) { + while ((target_sbc != 0 && priv->recv_sbc < target_sbc) || + (target_sbc == 0 && priv->recv_sbc < priv->send_sbc)) { if (!dri3_wait_for_event(pdraw)) return 0;

Re: [Mesa-dev] [PATCH 1/5] glx/dri3: Fix glXWaitForSbcOML() to handle targetSBC==0 correctly.

2014-12-04 Thread Axel Davy
Le 04/12/2014 11:44, Axel Davy a écrit : On 02/12/2014 20:53, Mario Kleiner wrote : targetSBC == 0 is a special case, which asks the function to block until all pending OpenGL bufferswap requests have completed. Currently the function just falls through for targetSBC == 0, returning bogus

Re: [Mesa-dev] [PATCH 2/5] glx/dri3: Track separate (ust, msc) for PresentPixmap vs. PresentNotifyMsc

2014-12-04 Thread Axel Davy
t vblank_ust, vblank_msc; + /* Serial numbers for tracking wait_for_msc events */ uint32_t send_msc_serial; uint32_t recv_msc_serial; I find using 'vblank' here is ambiguous. Wouldn't 'notify' fit better, since you want to say it's what y

Re: [Mesa-dev] [PATCH 4/5] glx/dri3: Don't fail on glXSwapBuffersMscOML(dpy, window, 0, 0, 0)

2014-12-04 Thread Axel Davy
== 0 for divisor == 0. + */ + remainder = 0; + } if (priv->swap_interval == 0) options |= XCB_PRESENT_OPTION_ASYNC; It seems a bit heavy, but I don't find a better way to handle the case you describe. Reviewed-by: Axel Davy

Re: [Mesa-dev] DRI3/Present fixes for Mesa 10.3+ (v2)

2014-12-05 Thread Axel Davy
rrent msc we make new presentation, target msc y. Without patch 2/5, the calculus of y will be done on the basis that last presentation was done at x+1 instead of x. Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.fr

Re: [Mesa-dev] [PATCH] egl: dri2: Use present extension. (Was: Re: [RFC] egl: Add DRI3 support to the EGL backend.)

2015-01-07 Thread Axel Davy
ution, instead of switching to the new one ? I know DRI3 is having a few issues to get support because of a few bugs in the stack, but if what you want is just small improvement to reduce overhead, then I woud think the answer is more implement that feature with DRI3. Axel

[Mesa-dev] [PATCH 09/53] st/nine: CubeTexture: fix GetLevelDesc

2015-01-07 Thread Axel Davy
This->surfaces contains the surfaces associated to the levels and faces. This->surfaces[6*Level] is what we want here, since it gives us a face descriptor for the level 'Level'. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Signed-off-by: Xavier Bouchoux Cc: "10

[Mesa-dev] [PATCH 08/53] st/nine: NineBaseTexture9: fix setting of last_layer

2015-01-07 Thread Axel Davy
Use same similar settings as u_sampler_view_default_template Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/basetexture9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_tra

[Mesa-dev] [PATCH 10/53] st/nine: Fix crash when deleting non-implicit swapchain

2015-01-07 Thread Axel Davy
ick Sarnie Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c index bf87aaf..24ff

[Mesa-dev] [PATCH 01/53] st/nine: query: remove unused variable (trivial)

2015-01-07 Thread Axel Davy
From: David Heidelberg Signed-off-by: David Heidelberg Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/query9.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/query9.c index 6df4ead..466b4ba 100644

[Mesa-dev] [PATCH 06/53] st/nine: Fix D3DRS_POINTSPRITE support

2015-01-07 Thread Axel Davy
From: xavier It's done by testing the existence of the point sprite output register *after* parsing the vertex shader. Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Xavier Bouchoux Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 6

[Mesa-dev] [PATCH 13/53] st/nine: Hack to generate resource if it doesn't exist when getting view

2015-01-07 Thread Axel Davy
e hit this case, which prevents crashing, but doesn't help with the resource content. This fixes several games crashing at launch. Acked-by: Axel Davy Acked-by: David Heidelberg Signed-off-by: Stanislaw Halik Cc: "10.4" --- src/gallium/state_trackers/nine/basetexture9.c | 3

[Mesa-dev] [PATCH 16/53] st/nine: Rework of boolean constants

2015-01-07 Thread Axel Davy
Convert them to shader booleans at earlier stage Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/device9.c| 35 +--- src/gallium/state_trackers/nine/device9.h| 6 ++--- src/gallium/state_trackers/nine/nine_state.c | 13 +++-

[Mesa-dev] [PATCH 07/53] st/nine: Correctly advertise D3DPMISCCAPS_CLIPTLVERTS

2015-01-07 Thread Axel Davy
The cap means D3DFVF_XYZRHW vertices will see clipping. This is not the case when PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION is supported, since it'll disable clipping. Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/adapter9.c | 4 +++- 1 file changed, 3 i

[Mesa-dev] [PATCH 03/53] st/nine: Additional defines to d3dtypes.h

2015-01-07 Thread Axel Davy
From: xavier Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Xavier Bouchoux Cc: "10.4" --- include/D3D9/d3d9types.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/D3D9/d3d9types.h b/include/D3D9/d3d9types.h index 0a8f9e5..e53e389 10

[Mesa-dev] [PATCH 11/53] st/nine: Return D3DERR_INVALIDCALL when trying to create a texture of bad format

2015-01-07 Thread Axel Davy
Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/cubetexture9.c | 8 src/gallium/state_trackers/nine/texture9.c | 9 - src/gallium/state_trackers/nine/volumetexture9.c | 10 +- 3 files changed, 25 insertions(+), 2

[Mesa-dev] [PATCH 00/53] Gallium Nine fixes

2015-01-07 Thread Axel Davy
ean there is no mistake in these patches, so please review :-) Axel Davy (48): st/nine: Fix clip state logic st/nine: Add new texture format strings st/nine: Correctly advertise D3DPMISCCAPS_CLIPTLVERTS st/nine: NineBaseTexture9: fix setting of last_layer st/nine: CubeTexture: fix GetLeve

[Mesa-dev] [PATCH 05/53] st/nine: Add new texture format strings

2015-01-07 Thread Axel Davy
Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- include/D3D9/d3d9types.h| 3 +++ src/gallium/state_trackers/nine/nine_pipe.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/D3D9/d3d9types.h b/include/D3D9/d3d9types.h ind

[Mesa-dev] [PATCH 04/53] st/nine: Add missing c++ declaration for IDirect3DVolumeTexture9

2015-01-07 Thread Axel Davy
From: xavier Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Xavier Bouchoux Cc: "10.4" --- include/D3D9/d3d9.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/D3D9/d3d9.h b/include/D3D9/d3d9.h index f872be7..e8b5214 100644 --- a/in

[Mesa-dev] [PATCH 02/53] st/nine: Fix clip state logic

2015-01-07 Thread Axel Davy
The clip state was reset everytime, incurring an overhead. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- 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 12/53] st/nine: NineBaseTexture9: update sampler view creation

2015-01-07 Thread Axel Davy
While previous code was having the correct behaviour in general, this new code is more readable (without checking all gallium formats manually) and has a more defined behaviour for depth stencil resources. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- s

[Mesa-dev] [PATCH 28/53] st/nine: Match REP implementation to LOOP

2015-01-07 Thread Axel Davy
Previous implementation was fine, just instead of having increasing counter, have a decreasing counter. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 41 +++ 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 35/53] st/nine: Fill missing dst and src number for some instructions.

2015-01-07 Thread Axel Davy
Not filling them correctly results in bad padding and later crash. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 46 +-- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/s

[Mesa-dev] [PATCH 47/53] st/nine: Fix sm3 relative addressing for non-debug build

2015-01-07 Thread Axel Davy
Relative addressing needs the constant buffer to get all the correct constants, even those defined by the shader. The code to copy the shader constants to the constant buffer was enabled only for debug build. Enable it always. Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by:

[Mesa-dev] [PATCH 41/53] st/nine: Implement TEXDP3

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index c484e7c..02fb

[Mesa-dev] [PATCH 14/53] st/nine: Check if srgb format is supported before trying to use it.

2015-01-07 Thread Axel Davy
According to msdn, we must act as if user didn't ask srgb if we don't support it. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/basetexture9.c | 11 ++- src/gallium/state_trackers/nine/surface9.c | 10

[Mesa-dev] [PATCH 32/53] st/nine: Fix some fixed function pipeline operation

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_ff.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index a6bd360..d2b30f8 100644 --- a/s

[Mesa-dev] [PATCH 48/53] st/nine: Add variables containing the size of the constant buffers

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/device9.c | 10 ++ src/gallium/state_trackers/nine/device9.h | 2 ++ src/gallium/state_trackers/nine/stateblock9.c | 4 ++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/s

[Mesa-dev] [PATCH 37/53] st/nine: implement TEXM3x2DEPTH

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c ind

[Mesa-dev] [PATCH 17/53] st/nine: Convert integer constants to floats before storing them when cards don't support integers

2015-01-07 Thread Axel Davy
The shader code is already behaving as if they are floats when the the card doesn't support integers Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/device9.c | 65 --- 1 file changed, 52 insertions(+), 13 deletions(-) d

[Mesa-dev] [PATCH 23/53] st/nine: Fix POW implementation

2015-01-07 Thread Axel Davy
POW doesn't match directly TGSI, since we should take the absolute value of src0. Fixes black textures in some games Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 13 - 1 file changed, 12 i

[Mesa-dev] [PATCH 36/53] st/nine: Fix TEXM3x3 and implement TEXM3x3VSPEC

2015-01-07 Thread Axel Davy
The fix is that this line: "src[s] = tx->regs.vT[s];" is wrong if s doesn't start from 0. Instead access tx->regs.vT directly when needed. Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 53 ++-

[Mesa-dev] [PATCH 31/53] st/nine: Clamp ps 1.X constants

2015-01-07 Thread Axel Davy
This is wine (and windows) behaviour. Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c ind

[Mesa-dev] [PATCH 19/53] st/nine: Clamp color inputs for ps <= 2.0 at ps level instead of vs

2015-01-07 Thread Axel Davy
Nine code was clamping color outputs for vs < 3, but msdn docs says it is done in the ps. Wine seems to clamp them at the vs level. It makes more sense to clamp at vs level for performance, but according to doc, ps 2.x shouldn't see clamping. Reviewed-by: David Heidelberg Signed-off-

[Mesa-dev] [PATCH 29/53] st/nine: Fix CND implementation

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Signed-off-by: Tiziano Bacocco Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_tra

[Mesa-dev] [PATCH 44/53] st/nine: Implement ps3 advanced input definition feature

2015-01-07 Thread Axel Davy
ssing on the ps inputs. Since here the inputs are not contiguous (we allocate temps) it cannot be implemented (we have an assert for that currently in the code, and at least one app was reported to need this to work) Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c

[Mesa-dev] [PATCH 21/53] st/nine: Correctly declare NineTranslateInstruction_Mkxn inputs

2015-01-07 Thread Axel Davy
Let's say we have c1 and c2 declared in the shader and c0 given by the app Then here we would have read c0, c1 and c2 given by the app, instead of the correct c0, c1, c2. This correction fixes several issues in some games. Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium

[Mesa-dev] [PATCH 45/53] st/nine: Correct rules for relative adressing and constants.

2015-01-07 Thread Axel Davy
relative adressing for constants is possible only for vs float constants. Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_s

[Mesa-dev] [PATCH 40/53] st/nine: Implement TEXDEPTH

2015-01-07 Thread Axel Davy
Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_tra

[Mesa-dev] [PATCH 46/53] st/nine: Remove unused code for ps

2015-01-07 Thread Axel Davy
Since constant indirect adressing is not allowed for ps, we can remove our code to handle that. Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_state.c | 43 +++--- src/gallium/state_trackers/nine/pixelshader9.c | 10 +++--- s

[Mesa-dev] [PATCH 24/53] st/nine: Handle RSQ special cases

2015-01-07 Thread Axel Davy
We should use the absolute value of the input as input to ureg_RSQ. Moreover, an input of 0.0 should return FLT_MAX. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 13 - 1 file changed, 12 insert

[Mesa-dev] [PATCH 53/53] st/nine: Correctly handle when ff vs should have no texture coord input/output

2015-01-07 Thread Axel Davy
needs a texture coord input and ff vs doesn't output it is not handled, and should probably be a runtime error. This fixes 3Dmark05, which uses ff vs with programmable ps. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 31 --- 1 file ch

[Mesa-dev] [PATCH 22/53] st/nine: Fix typo for M4x4

2015-01-07 Thread Axel Davy
Cc: "10.4" Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c ind

[Mesa-dev] [PATCH 38/53] st/nine: Implement TEXM3x2TEX

2015-01-07 Thread Axel Davy
Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_tra

[Mesa-dev] [PATCH 27/53] st/nine: Rewrite LOOP implementation, and a0 aL handling

2015-01-07 Thread Axel Davy
crash while loading Bioshock - bug https://bugs.freedesktop.org/show_bug.cgi?id=85696 Tested-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 156 +++--- 1 file changed, 92 insertions(+), 64 deletions(-

[Mesa-dev] [PATCH 51/53] st/nine: Explicit nine requirements

2015-01-07 Thread Axel Davy
upport for them. We are already having hard time supporting r500, which is the most flexible dx9-only card apparently. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 106 + src/gallium/state_trackers/nine/device9.c | 9 +-- 2 files c

[Mesa-dev] [PATCH 39/53] st/nine: Implement TEXM3x3SPEC

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 39 ++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c ind

[Mesa-dev] [PATCH 26/53] st/nine: Correct LOG on negative values

2015-01-07 Thread Axel Davy
We should take the absolute value of the input. Also return -FLT_MAX instead of -Inf for an input of 0. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 15 +-- 1 file changed, 13 insertions(+), 2

[Mesa-dev] [PATCH 50/53] st/nine: Allocate vs constbuf buffer for indirect addressing once.

2015-01-07 Thread Axel Davy
When the shader does indirect addressing on the constants, we allocate a temporary constant buffer to which we copy the constants from the app given user constants and the constants filled in the shader. This patch makes this buffer be allocated once. Signed-off-by: Axel Davy Signed-off-by

[Mesa-dev] [PATCH 34/53] st/nine: Implement TEXCOORD special behaviours

2015-01-07 Thread Axel Davy
off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 29 ++- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 899aee8..c

[Mesa-dev] [PATCH 52/53] st/nine: Change comment related to vertex shader inputs not matching declaration

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 09b4401..99173fa 100644 --- a/src/gallium

[Mesa-dev] [PATCH 33/53] st/nine: Fix CALLNZ implementation

2015-01-07 Thread Axel Davy
to 0 or 0x. Given 0x is NaN if it was a float, better use UIF than IF. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src

[Mesa-dev] [PATCH 30/53] st/nine: Remove duplicated code for ps texcoord input declaration

2015-01-07 Thread Axel Davy
Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 8bcf67b

[Mesa-dev] [PATCH 43/53] st/nine: Implement TEXREG2AR, TEXREG2GB and TEXREG2RGB

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c ind

[Mesa-dev] [PATCH 18/53] st/nine: Remove some shader unused code

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 23 +-- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index fcc1c6

[Mesa-dev] [PATCH 20/53] st/nine: Saturate oFog and oPts vs outputs

2015-01-07 Thread Axel Davy
According to docs and Wine, these two vs outputs have to be saturated. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_tra

[Mesa-dev] [PATCH 15/53] st/nine: Add ATI1 and ATI2 support

2015-01-07 Thread Axel Davy
Adds ATI1 and ATI2 support to nine. They map to PIPE_FORMAT_RGTC1_UNORM and PIPE_FORMAT_RGTC2_UNORM, but need special handling. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Signed-off-by: Xavier Bouchoux Cc: "10.4" --- src/gallium/state_trackers/nine/adapter9.c

[Mesa-dev] [PATCH 42/53] st/nine: Implement TEXDP3TEX

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/nine_shader.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 02fb69

[Mesa-dev] [PATCH 25/53] st/nine: Handle NRM with input of null norm

2015-01-07 Thread Axel Davy
When the input's xyz are 0.0, the output should be 0.0. This is due to the fact that Inf * 0 = 0 for dx9. To handle this case, cap the result of RSQ to FLT_MAX. We have FLT_MAX * 0 = 0. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/stat

[Mesa-dev] [PATCH 49/53] st/nine: Allocate the correct size for the user constant buffer

2015-01-07 Thread Axel Davy
Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/device9.c| 6 +++--- src/gallium/state_trackers/nine/nine_state.c | 7 --- src/gallium/state_trackers/nine/nine_state.h | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/s

Re: [Mesa-dev] [PATCH 07/53] st/nine: Correctly advertise D3DPMISCCAPS_CLIPTLVERTS

2015-01-07 Thread Axel Davy
On Wed, 7 Jan 2015, Ilia Mirkin wrote: On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: The cap means D3DFVF_XYZRHW vertices will see clipping. This is not the case when PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION is supported, since it'll disable clipping. Signed-off-by: Axel Davy Cc:

Re: [Mesa-dev] [PATCH 15/53] st/nine: Add ATI1 and ATI2 support

2015-01-07 Thread Axel Davy
On 07/01/2015 18:42, Ilia Mirkin wrote : On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: Adds ATI1 and ATI2 support to nine. They map to PIPE_FORMAT_RGTC1_UNORM and PIPE_FORMAT_RGTC2_UNORM, but need special handling. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Signed-off-by

Re: [Mesa-dev] [PATCH 16/53] st/nine: Rework of boolean constants

2015-01-07 Thread Axel Davy
On 07/01/2015 18:23, Ilia Mirkin wrote : On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: Convert them to shader booleans at earlier stage Why? What's wrong with the conversion as it is now? The conversion is fine for booleans, but not for integers. I think it is cleaner to have

Re: [Mesa-dev] [PATCH 24/53] st/nine: Handle RSQ special cases

2015-01-07 Thread Axel Davy
Le 07/01/2015 19:09, Ilia Mirkin a écrit : On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: We should use the absolute value of the input as input to ureg_RSQ. Moreover, an input of 0.0 should return FLT_MAX. Reviewed-by: David Heidelberg Signed-off-by: Axel Davy Cc: "10.4"

Re: [Mesa-dev] [PATCH 28/53] st/nine: Match REP implementation to LOOP

2015-01-07 Thread Axel Davy
Le 07/01/2015 21:13, Ilia Mirkin a écrit : On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: Previous implementation was fine, just instead of having increasing counter, have a decreasing counter. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 41

Re: [Mesa-dev] [PATCH 11/53] st/nine: Return D3DERR_INVALIDCALL when trying to create a texture of bad format

2015-01-07 Thread Axel Davy
On Wed, 7 Jan 2015, Ilia Mirkin wrote: On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: Reviewed-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/cubetexture9.c | 8 src/gallium/state_trackers/nine/texture9.c | 9 - src/gallium

Re: [Mesa-dev] [PATCH 15/53] st/nine: Add ATI1 and ATI2 support

2015-01-08 Thread Axel Davy
On 07/01/2015 23:18, Axel Davy wrote : On 07/01/2015 18:42, Ilia Mirkin wrote : On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: Adds ATI1 and ATI2 support to nine. They map to PIPE_FORMAT_RGTC1_UNORM and PIPE_FORMAT_RGTC2_UNORM, but need special handling. Reviewed-by: David Heidelberg

Re: [Mesa-dev] [PATCH 48/53] st/nine: Add variables containing the size of the constant buffers

2015-01-08 Thread Axel Davy
On 08/01/2015 05:08, Ilia Mirkin wrote : On Wed, Jan 7, 2015 at 11:36 AM, Axel Davy wrote: Signed-off-by: Axel Davy Cc: "10.4" --- src/gallium/state_trackers/nine/device9.c | 10 ++ src/gallium/state_trackers/nine/device9.h | 2 ++ src/gallium/state_tra

[Mesa-dev] [PATCH v2 03/52] st/nine: Additional defines to d3dtypes.h

2015-01-10 Thread Axel Davy
From: Xavier Bouchoux Reviewed-by: Ilia Mirkin Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Xavier Bouchoux Cc: "10.4" --- include/D3D9/d3d9types.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/D3D9/d3d9types.h b/include/D3D9/d

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