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

2015-08-16 Thread Axel Davy
From: David Heidelberg Fixes bug: fdo #89978 Signed-off-by: David Heidelberg Cc: "10.4 10.5 10.6" --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 4e751e3..c355092 100644 --- a/configure.ac +++ b/configure.ac @@ -1632,6 +1632,10 @@ if

[Mesa-dev] [PATCH 61/71] st/nine: Remove NINED3DRS_ZBIASSCALE

2015-08-16 Thread Axel Davy
It wasn't giving the expected result. This fixes some object being transparents in games like FEAR. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.c | 12 +++- src/gallium/state_trackers/nine/nine_state.c | 20 src/gallium/state_tra

[Mesa-dev] [PATCH 67/71] st/nine: Catch setting the same shader

2015-08-16 Thread Axel Davy
This is quite rare that an app does set again the same shaders, but it isn't an expensive check either. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/ga

[Mesa-dev] [PATCH 62/71] st/nine: Better check shader constant limits

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 36 --- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 7e76d7d..9680c5a 100644

[Mesa-dev] [PATCH 29/71] st/nine: Fix resource SetPriority/GetPriority

2015-08-16 Thread Axel Davy
From: Patrick Rudolph Return 0 for non MANAGED textures and surfaces. Fixes failing wine d3d9 tests device.c test_resource_priority. Reviewed-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/resource9.c | 10 -- 1 file changed, 8 insertions(+), 2

[Mesa-dev] [PATCH 41/71] st/nine: Rework rasterizer states

2015-08-16 Thread Axel Davy
Separate state preparation and state commit Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.c | 8 src/gallium/state_trackers/nine/nine_pipe.h | 2 +- src/gallium/state_trackers/nine/nine_state.c | 23 --- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 43/71] st/nine: Improve fallback when driver doesn't support user buffers.

2015-08-16 Thread Axel Davy
For now the path updated is only used by Amd drivers, but a later patch will make it used by all drivers. Some drivers like llvmpipe doesn't support the uploading of constants from user buffers, so improve the path to work for all drivers Inspired from the gl state tracker. Signed-off-by:

[Mesa-dev] [PATCH 54/71] st/nine: Advertise Fog flags

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine/adapter9.c index c5ffcb1..ff1c33c 100644 --- a/src/gallium

[Mesa-dev] [PATCH 47/71] st/nine: Fix fixed function fog support

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 53 +++ 1 file changed, 19 insertions(+), 34 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index c08f5d3..9638d9c 100644 --- a

[Mesa-dev] [PATCH 12/71] gallium: Add blending to pipe blit

2015-08-16 Thread Axel Davy
From: Christoph Bumiller This type of blending is used for gallium nine software cursor Signed-off-by: David Heidelberg --- src/gallium/include/pipe/p_state.h | 1 + src/gallium/state_trackers/nine/device9.c| 1 + src/gallium/state_trackers/nine/swapchain9.c | 2 ++ src/mesa/stat

[Mesa-dev] [PATCH 46/71] st/nine: Rework ff constant buffers

2015-08-16 Thread Axel Davy
Always use a user constant buffer for ff. It means we have to: . commit the user constant buffer for ff when we use it . commit back the non-ff constant buffer when we stop using it Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 8 ++ src/gallium/state_trackers

[Mesa-dev] [PATCH 63/71] st/nine: Calculate dummy sampler state only once

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 21 ++--- src/gallium/state_trackers/nine/device9.h| 3 ++- src/gallium/state_trackers/nine/nine_state.c | 35 3 files changed, 24 insertions(+), 35 deletions(-) diff --git

[Mesa-dev] [PATCH 48/71] st/nine: Begin programmable shader fog support

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 49 +++ 1 file changed, 42 insertions(+), 7 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index a11c4c7..d9a20a5 100644

[Mesa-dev] [PATCH 40/71] st/nine: Reorder DSA state settings

2015-08-16 Thread Axel Davy
Separate state preparation and state commit Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.c | 5 +++-- src/gallium/state_trackers/nine/nine_pipe.h | 2 +- src/gallium/state_trackers/nine/nine_state.c | 27 +++ src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 38/71] st/nine: Remove group_mask argument from nine_update_state

2015-08-16 Thread Axel Davy
It was only used to discriminate update framebuffer vs update everything. Instead use two functions. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 14 +++--- src/gallium/state_trackers/nine/nine_state.c | 23 ++- src/gallium

[Mesa-dev] [PATCH 26/71] st/nine: Fix GenerateMipSubLevels potential crash

2015-08-16 Thread Axel Davy
From: Patrick Rudolph For the case of D3DPOOL_MANAGED textures, This->base.resource can be NULL at the start of the function. In This case, UploadSelf will take care of the defining. Assign resource after the UploadSelf call to prevent NULL pointer exception. Reviewed-by: Axel Davy Signed-

[Mesa-dev] [PATCH 37/71] st/nine: Implement TEXBEM, TEXBEML and BEM

2015-08-16 Thread Axel Davy
From: Tiziano Bacocco Signed-off-by: Tiziano Bacocco --- src/gallium/state_trackers/nine/device9.c | 32 ++- src/gallium/state_trackers/nine/nine_shader.c | 126 +++-- src/gallium/state_trackers/nine/nine_shader.h | 1 + src/gallium/state_trackers/nine/nine_sta

[Mesa-dev] [PATCH 44/71] st/nine: Rework blend states

2015-08-16 Thread Axel Davy
Separate state preparation and state commit Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.c | 4 ++-- src/gallium/state_trackers/nine/nine_pipe.h | 2 +- src/gallium/state_trackers/nine/nine_state.c | 23 --- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 69/71] st/nine: Silent warning in NineCubeTexture9_ctor

2015-08-16 Thread Axel Davy
The compiler was complaining the value may be uninitialised when it is used (which is wrong). Initialize to NULL to silent the warning. --- src/gallium/state_trackers/nine/cubetexture9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/cubetexture

[Mesa-dev] [PATCH 59/71] st/nine: Implement ff vertex data passthrough

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 68 +++ 1 file changed, 61 insertions(+), 7 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 1033050..6740274 100644 --- a

[Mesa-dev] [PATCH 52/71] st/nine: Finish Fog implementation

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 47 +++-- src/gallium/state_trackers/nine/nine_shader.h | 47 + src/gallium/state_trackers/nine/nine_state.c| 43 +++--- src/gallium/state_trackers

[Mesa-dev] [PATCH 55/71] st/nine: Change a few advertised caps

2015-08-16 Thread Axel Davy
There were flags all sm3 cards do advertise, and we weren't. Some games can trigger buggy rendering path if the caps are not what they expect. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 26 +++--- 1 file changed, 11 insertions(+), 15 dele

[Mesa-dev] [PATCH 68/71] st/nine: Silent warning in update_vertex_buffer

2015-08-16 Thread Axel Davy
There was an unused variable --- src/gallium/state_trackers/nine/nine_state.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 847cf1b..558d07a 100644 --- a/src/gallium/state_trackers/nine/nine_sta

[Mesa-dev] [PATCH 34/71] st/nine: Return correct error codes in NineDevice9_Reset

2015-08-16 Thread Axel Davy
From: Patrick Rudolph Allow more than two errors, and return D3DERR_INVALIDCALL for failed display resolution changes. Reviewed-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/device9.c| 4 ++-- src/gallium/state_trackers/nine/swapchain9.c | 4 +++- 2

[Mesa-dev] [PATCH 39/71] st/nine: Reorder nine_state.

2015-08-16 Thread Axel Davy
ned-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c | 74 1 file changed, 43 insertions(+), 31 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 68f14d2..47e4148 100644 --- a/

[Mesa-dev] [PATCH 33/71] st/nine: Fail on D3DUSAGE_DYNAMIC for D3DPOOL_SCRATCH textures

2015-08-16 Thread Axel Davy
From: Patrick Rudolph Texture with pool D3DPOOL_SCRATCH and D3DPOOL_MANAGED cannot be used with flag D3DUSAGE_DYNAMIC. Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/basetexture9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trac

[Mesa-dev] [PATCH 49/71] st/nine: Fix nine_ff_ps_key padding

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 9638d9c..4428ce6 100644 --- a/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 50/71] st/nine: Remove useless variables

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy Reviewed-by: David Heidelberg --- src/gallium/state_trackers/nine/pixelshader9.h | 1 - src/gallium/state_trackers/nine/vertexshader9.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/pixelshader9.h b/src/gallium/state_trackers

[Mesa-dev] [PATCH 58/71] st/nine: Change nine_state_update order

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c | 139 +++ 1 file changed, 76 insertions(+), 63 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index a439217..04b5f18 100644

[Mesa-dev] [PATCH 53/71] st/nine: Revert to userbuf path when needed

2015-08-16 Thread Axel Davy
Automatically switch to userbuf path when we would need to upload fog or bumpmat constants Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium

[Mesa-dev] [PATCH 35/71] st/nine: Prevent possible crash

2015-08-16 Thread Axel Davy
From: Patrick Rudolph In case NineBaseTexture9_ctor returns an error This->surfaces[l] might be NULL. Reviewed-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/texture9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gall

[Mesa-dev] [PATCH 71/71] st/nine: Silent warning in nine_ff

2015-08-16 Thread Axel Davy
non-debug build was complaining Signed-off-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_trackers/nine/nine_ff.c index 59ea2cb..fe8933b 100644 --- a/src/gallium

[Mesa-dev] [PATCH 70/71] st/nine: Silent warning in sm1_declusage_to_tgsi

2015-08-16 Thread Axel Davy
non-debug build was complaining 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 index 9680c5a..28f2787

[Mesa-dev] [PATCH 24/71] st/nine: Fix StretchRect checks

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 2ac49a1..28daeba 100644 --- a/src/gallium/state_trackers

[Mesa-dev] [PATCH 57/71] st/nine: Programmable ps D3DTTSS_PROJECTED support

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 3 ++ src/gallium/state_trackers/nine/nine_shader.c | 59 -- src/gallium/state_trackers/nine/nine_shader.h | 1 + src/gallium/state_trackers/nine/nine_state.c | 5 ++- src/gallium

[Mesa-dev] [PATCH 45/71] st/nine: Rework constant buffer state handling

2015-08-16 Thread Axel Davy
restore all states. Instead the commit of the constant buffer is moved to nine_state, and the other field settings moved to other functions where more appropriate. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 69 +-- src/gallium/state_trackers/nine/device9.h

[Mesa-dev] [PATCH 60/71] st/nine: Implement special DOTPRODUCT3 behaviour

2015-08-16 Thread Axel Davy
Taken from wine tests Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 6740274..59ea2cb 100644 --- a/src/gallium

[Mesa-dev] [PATCH 64/71] st/nine: Use CSO cache for sampler views

2015-08-16 Thread Axel Davy
The CSO cache unbinds views that are not needed anymore, which we don't do. It checks for change before committing the views. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 3 --- src/gallium/state_trackers/nine/nine_pipe.c | 4 ++-- src/gallium/state_tra

[Mesa-dev] [PATCH 66/71] st/nine: Avoid Constant upload when there is no change

2015-08-16 Thread Axel Davy
It is very common for d3d9 apps to set again the constants they need before every draw call, even if nothing changed. Since we are mostly gpu bound, it is better to check for change, and upload constants again (and thus use gpu bandwith) only if the constants changed. Signed-off-by: Axel Davy

[Mesa-dev] [PATCH 51/71] st/nine: Rework shader states

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c| 188 +++- src/gallium/state_trackers/nine/nine_state.h| 4 +- src/gallium/state_trackers/nine/pixelshader9.c | 30 +++- src/gallium/state_trackers/nine/pixelshader9.h | 41 +- src

[Mesa-dev] [PATCH 65/71] st/nine: Fix the number of texture stages

2015-08-16 Thread Axel Davy
The number of texture stages is 8. 'tex_stage' array was too big, and thus the checks with 'Elements(state->ff.tex_stage)' were passing, causing some invalid API calls to pass, and crash because of out of bounds write since bumpmap_vars was just the correct size. S

[Mesa-dev] [PATCH 56/71] st/nine: Complete ff texture transform implementation

2015-08-16 Thread Axel Davy
Wine tests were used to get it right. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 161 ++-- src/gallium/state_trackers/nine/nine_ff.h | 81 src/gallium/state_trackers/nine/vertexshader9.h | 2 +- 3 files changed, 174

Re: [Mesa-dev] [PATCH 41/71] st/nine: Rework rasterizer states

2015-08-17 Thread Axel Davy
On Sun, 16 Aug 2015, Axel Davy wrote: void -nine_convert_rasterizer_state(struct cso_context *ctx, const DWORD *rs) +nine_convert_rasterizer_state(struct pipe_rasterizer_state *rast_state, const DWORD *rs) { struct pipe_rasterizer_state rast; -memset(&rast, 0, sizeof(rast)); /* me

Re: [Mesa-dev] [PATCH] st/nine: Disable NV path, it's broken right now.

2015-08-21 Thread Axel Davy
. User constant buffers are expected to be slower for Nvidia cards, so ideally this patch should be reverted when the path is fixed. I add this patch to the list of patches I will merge today. Axel DAvy On 21/08/2015 13:05, Krzysztof A. Sobiecki wrote : st/nine: Disable NV path, it's b

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

2015-08-21 Thread Axel Davy
vendor, or advertise another vendor (some games do disable some features for some cards). Yours, Axel Davy On 17/08/2015 19:30, Benjamin Bellec write : Hello, Where does this mapping list come from ? Is this an official map (Vendor or Windows drivers) ? Is that used just for information ? Because

Re: [Mesa-dev] [PATCH] vl/dri3: handle the case of different GPU(v4.1)

2016-09-30 Thread Axel Davy
On 16/09/2016 14:51, Nayan Deshmukh wrote: bool flushed; + bool is_different_gpu; }; I get a warning when I build about incompatible pointer type at the line fd = loader_get_user_preferred_fd(fd, &scrn->is_different_gpu); When compiling on 32 bits. I get this should be int.

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-10-02 Thread Axel Davy
Hi, If I understand, there hasn't been yet statements on whether the freeze is for Oct 7 or Oct 14. Could there be one ? I'd prefer myself Oct 14, because we have a lot of patches for nine, and they deserve more cleaning and testing, but if it's Oct 7, we'll try be on time. Axel On 29/09

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-10-04 Thread Axel Davy
On 04/10/2016 12:32, Emil Velikov wrote: On 2 October 2016 at 14:17, Axel Davy wrote: Hi, If I understand, there hasn't been yet statements on whether the freeze is for Oct 7 or Oct 14. Could there be one ? I'd prefer myself Oct 14, because we have a lot of patches for nine

[Mesa-dev] [PATCH 03/75] st/nine: Unify some check flags

2016-10-05 Thread Axel Davy
The new defines will be reused in a later patch. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_defines.h | 8 src/gallium/state_trackers/nine/swapchain9.c | 8 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 02/75] gallium/util: Really allow aliasing for u_box_union_*

2016-10-05 Thread Axel Davy
Fixes several game bugs with nine. Fixes https://github.com/iXit/Mesa-3D/issues/234 Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph Cc: "12.0" --- src/gallium/auxiliary/util/u_box.h | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) di

[Mesa-dev] [PATCH 04/75] st/nine: Fix some check flags

2016-10-05 Thread Axel Davy
Uses the new defines introduced in previous commit. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 05/75] st/nine: Disable seamless cubemap for d3d

2016-10-05 Thread Axel Davy
d3d9 doesn't have seamless cubemap. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 2 +- src/gallium/state_trackers/nine/nine_pipe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/ga

[Mesa-dev] [PATCH 18/75] st/nine: Rework vs int and bool constants buffer

2016-10-05 Thread Axel Davy
This will help to support swvp constants. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 35 +++ src/gallium/state_trackers/nine/nine_state.c | 4 +-- src/gallium/state_trackers/nine/nine_state.h | 4 +-- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 09/75] st/nine: Implement relative addressing for ps inputs

2016-10-05 Thread Axel Davy
To implement the feature we copy the ps inputs to a temp array. This is not optimal for performance, but it is the simplest solution. This is a feature that is very very rarely used. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 30 --- 1

[Mesa-dev] [PATCH 14/75] st/nine: Initial mixed vertex processing support

2016-10-05 Thread Axel Davy
In mixed vertex processing, the user can enable or disable software vertex processing. It is on hardware by default. This feature is not a state, and thus the setting doesn't need to be recorded by stateblocks. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c

[Mesa-dev] [PATCH 07/75] st/nine: Use fixed size arrays for swapchain buffers

2016-10-05 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 43 +--- src/gallium/state_trackers/nine/swapchain9.h | 8 +++--- 2 files changed, 11 insertions(+), 40 deletions(-) diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium

[Mesa-dev] [PATCH 00/75] Gallium Nine patches for Mesa 13

2016-10-05 Thread Axel Davy
Processing should now work, and The Sims 2 (which needs ProcessVertices with vs3 support) works (These are not yet supported by wine ogl, but this is likely to come as well on their side in some near future). Yours, Axel Axel Davy (50): llvmpipe: Fix overflow for 32 bits available memory

[Mesa-dev] [PATCH 08/75] st/nine: Wait for pending tasks to execute in swapchain

2016-10-05 Thread Axel Davy
Fixes crash after Reset() when using thread_submit=true Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9.c index bc34dd2

[Mesa-dev] [PATCH 23/75] st/nine: Cleaning code for vs temporaries

2016-10-05 Thread Axel Davy
no behaviour change, actually solved a visual bug observed on a sample program. This was due to ureg_normalize3 polluting a temporary variable. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 233 +- 1 file changed, 135 insertions(+), 98

[Mesa-dev] [PATCH 15/75] st/nine: Add support for swvp constants in shaders

2016-10-05 Thread Axel Davy
swvp has relaxed limits (more nested loops, etc). In particular it enables more constants. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 156 ++-- src/gallium/state_trackers/nine/nine_shader.h | 2 + src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 13/75] st/nine: Implement SetNPatchMode

2016-10-05 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index f2317b6..e4ede6e 100644 --- a/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 17/75] st/nine: Change dirty tracking for vs int and bool constants

2016-10-05 Thread Axel Davy
This change makes easier to introduce tracking for swvp constants. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 14 +++--- src/gallium/state_trackers/nine/nine_state.c | 18 + src/gallium/state_trackers/nine/nine_state.h | 8 +++--- src/gallium

[Mesa-dev] [PATCH 24/75] st/nine: Small simplification for position_t and fog

2016-10-05 Thread Axel Davy
position_t disables fog computation. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 7b3c67c..40717f1

[Mesa-dev] [PATCH 21/75] st/nine: Handle D3DRS_NORMALIZENORMALS

2016-10-05 Thread Axel Davy
When this state is set, the normals computed in the vs ff shader should be normalized. Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph s...@das-labor.org --- src/gallium/state_trackers/nine/nine_ff.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 06/75] st/nine: Fix buffer count check for Ex devices

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers/nine/swapchain9

[Mesa-dev] [PATCH 25/75] st/nine: Reorganize ff vtx processing

2016-10-05 Thread Axel Davy
The new order simplified the code a bit for next patches. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 124 +- 1 file changed, 72 insertions(+), 52 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium

[Mesa-dev] [PATCH 32/75] st/nine: Use materials if source is not given.

2016-10-05 Thread Axel Davy
Deduced by test on windows. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 4c92920..86e1420 100644

[Mesa-dev] [PATCH 11/75] st/nine: Allocate more space for ATI1

2016-10-05 Thread Axel Davy
rash on Windows. Increase buffersize for ATI1 to fix this crash. The same issue was present in WINE but a patch has been sent by me. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.h | 21 + src/gallium/state_trackers/nine/surface

[Mesa-dev] [PATCH 53/75] st/nine: Print interface id in NineSurface9_GetContainer

2016-10-05 Thread Axel Davy
From: Patrick Rudolph To ease debugging print interface id. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/surface9.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium/state_trackers

[Mesa-dev] [PATCH 44/75] st/nine: Do always accumulate diffuse

2016-10-05 Thread Axel Davy
According to spec. Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_ff.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 924cb4c

[Mesa-dev] [PATCH 16/75] st/nine: Drop unused constant upload path

2016-10-05 Thread Axel Davy
This path has been disabled for some time because of some bugs with it. It hasn't been updated to the new features, and is not faster. Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/device9.c| 26 src/gallium/state_trackers/nine/devi

[Mesa-dev] [PATCH 50/75] st/nine: Properly declare sampler states for ff

2016-10-05 Thread Axel Davy
Fixes a softpipe assertion failure with wine tests Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_ff.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium

[Mesa-dev] [PATCH 20/75] st/nine: Initial ProcessVertices support

2016-10-05 Thread Axel Davy
For now only VS 3 support is implemented. This enables The Sims 2 to work. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 143 +--- src/gallium/state_trackers/nine/device9.h | 7 + src/gallium/state_trackers/nine/nine_shader.c | 69

[Mesa-dev] [PATCH 33/75] st/nine: Disable ff vertex blending if required inputs are missing

2016-10-05 Thread Axel Davy
This behaviour has been partially tested on windows. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c

[Mesa-dev] [PATCH 72/75] st/nine: Set CLAMP_TO_EDGE on cubetextures

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Wine tests show that cubetextures always use PIPE_TEX_WRAP_CLAMP_TO_EDGE regardless of set sampler states. Fixes failing d3d9 wine test test_cube_wrap. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.c | 14

[Mesa-dev] [PATCH 38/75] st/nine: Used normed Vtx for reflectionvector

2016-10-05 Thread Axel Davy
Fix deduced from the spec. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index c2ce352..2c237f4 100644 --- a

[Mesa-dev] [PATCH 61/75] st/nine: Switch {Set/Get/Free}PrivateData functions

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Switch {Set/Get/Free}PrivateData function to introduced IUnknown functions. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/cubetexture9.c | 6 +- src/gallium/state_trackers/nine/indexbuffer9.c | 6 +- src/gallium

[Mesa-dev] [PATCH 54/75] st/nine: Print interface id in NineVolume9_GetContainer

2016-10-05 Thread Axel Davy
From: Patrick Rudolph To ease debugging print interface id. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/volume9.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/nine/volume9.c b/src/gallium/state_trackers

[Mesa-dev] [PATCH 48/75] st/nine: Fix the calculation of the number of vs inputs

2016-10-05 Thread Axel Davy
Fixes hangs on radeonsi, and assert on llvmpipe. Signed-off-by: Axel Davy Cc: "12.0" --- 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_tra

[Mesa-dev] [PATCH 51/75] st/nine: Move assert in NineSurface9_ctor

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Move assert to function entry. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/surface9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium

[Mesa-dev] [PATCH 73/75] st/nine: Prevent crash in GetRenderTargetData

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Return error instead of crashing on source surfaces with format D3DFMT_NULL. Fix for issue #236. Tested on Windows 7. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 2 ++ 1 file changed, 2 insertions(+) diff

[Mesa-dev] [PATCH 49/75] st/nine: Handle user clipping planes properly for ff

2016-10-05 Thread Axel Davy
Found reading msdn and checking Wine. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index

[Mesa-dev] [PATCH 57/75] st/nine: Fix D3DFMT_NULL size

2016-10-05 Thread Axel Davy
D3DFMT_NULL is mapped to PIPE_FORMAT_NONE. Instead of relying on PIPE_FORMAT_NONE to return a size, pick one. The one picked is the same than Wine. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium

[Mesa-dev] [PATCH 74/75] st/nine: Add debug output for lost devices

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Add debug output to ease debugging. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium/state_trackers

[Mesa-dev] [PATCH 26/75] st/nine: Fix vertex blending aVtx computation

2016-10-05 Thread Axel Davy
There was an multiplication by the world matrix 0 which had nothing to do there. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b

[Mesa-dev] [PATCH 12/75] st/nine: Implement D3DUSAGE_SOFTWAREPROCESSING

2016-10-05 Thread Axel Davy
Buffers with this flag must be usable with both software and hardware vertex processing. Use Staging for fast cpu access. Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/buffer9.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 37/75] st/nine: Implement SPHEREMAP

2016-10-05 Thread Axel Davy
Behaviour checked with a test app. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 2 +- src/gallium/state_trackers/nine/nine_ff.c | 32 +++--- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 35/75] st/nine: Fix wrong mask in ff vs

2016-10-05 Thread Axel Davy
Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 12d422b..ce19b9b 100644 --- a

[Mesa-dev] [PATCH 59/75] st/nine: Return device in NineSurface9_GetContainer

2016-10-05 Thread Axel Davy
From: Patrick Rudolph According to MSDN the device is returned for surfaces that do not have a regular container. Such surfaces are: OffscreenPlainSurface, DepthStencilSurface and RenderTarget Tested and verified on Windows. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src

[Mesa-dev] [PATCH 28/75] st/nine: Increase MaxVertexBlendMatrixIndex

2016-10-05 Thread Axel Davy
Modern cards do advertise 8. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 2 +- src/gallium/state_trackers/nine/nine_ff.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium

[Mesa-dev] [PATCH 22/75] st/nine: No need for the local flag for temporaries in ff

2016-10-05 Thread Axel Davy
Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 18d00a7..56876f0 100644

[Mesa-dev] [PATCH 64/75] st/nine: Fix compiler warning

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Use strict aliasing in SetPrivateData and struct pheader. Casting char[1] to IUnknown** isn't allowed in strict aliasing. Compute pointer to body by adding size of header to header pointer. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/ga

[Mesa-dev] [PATCH 58/75] st/nine: Allocate surface resources in surface ctor

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Allocate resources in surface ctor. Allows to use statetracker internal memory accounting. Fix for issue #231. Signed-off-by: Patrick Rudolph Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 53 --- src/gallium

[Mesa-dev] [PATCH 01/75] llvmpipe: Fix overflow for 32 bits available memory computation

2016-10-05 Thread Axel Davy
And cap to 2 GB on 32 bits. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=94561 Signed-off-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/auxiliary/os/os_misc.c | 2 +- src/gallium/drivers/llvmpipe/lp_screen.c | 5 + 2 files changed, 6 insertions(+), 1 deletion

[Mesa-dev] [PATCH 36/75] st/nine: Enable passthrough only if positiont is used

2016-10-05 Thread Axel Davy
Wine tests for the passthrough feature are for positiont. Nothing seems to indicate passthrough happens when positiont it not used. However having passthrough with positiont makes sense (to be used with ProcessVertices outputs). Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 29/75] st/nine: Implement normal transformation with vertex blending

2016-10-05 Thread Axel Davy
The formula is different from the one of the spec, but otherwise nothing particular. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 26 +- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c

[Mesa-dev] [PATCH 71/75] st/nine: handle possible failure of D3DWindowBuffer_create

2016-10-05 Thread Axel Davy
From: Patrick Rudolph Check for errors and pass them to the callers. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/state_trackers/nine/swapchain9.c b/src/gallium

[Mesa-dev] [PATCH 43/75] st/nine: Initialize ps ff registers

2016-10-05 Thread Axel Davy
Found with wine tests for the rTmp register. Not sure for the other ones. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index

[Mesa-dev] [PATCH 67/75] st/nine: Implement MSAA quality levels

2016-10-05 Thread Axel Davy
ch. Fixes several old games not having multisample support until now. Fix for issue #73. Signed-off-by: Patrick Rudolph Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 20 -- src/gallium/state_trackers/nine/device9.c| 8 +++- src/gallium/state_tra

[Mesa-dev] [PATCH 68/75] st/nine: Fix check and remove useless code in swapchain9

2016-10-05 Thread Axel Davy
force the resource_copy_region path, which should be fine without PIPE_BIND_SAMPLER_VIEW. Thus fix the check for 1), and remove the code. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 6 +- src/gallium/state_trackers/nine/swapchain9.c | 16 2 files

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