[Mesa-dev] [Bug 91646] dlopen'ing libudev.so.1 from static library initializer corrupts TLS state

2015-08-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91646 --- Comment #4 from Timo R. t...@rothenpieler.org --- That's unlikely to work, static local variables are no different to globals regarding initialization order, To my knowledge, static local variables are initialized on the first call to the

Re: [Mesa-dev] [RFC 2/2] i965: add support for image AoA

2015-08-16 Thread Francisco Jerez
Timothy Arceri t_arc...@yahoo.com.au writes: On Sat, 2015-08-15 at 17:33 +0300, Francisco Jerez wrote: Timothy Arceri t_arc...@yahoo.com.au writes: On Wed, 2015-08-12 at 19:39 +1000, Timothy Arceri wrote: Cc: Francisco Jerez curroje...@riseup.net --- This patch works for direct

[Mesa-dev] [Bug 91646] dlopen'ing libudev.so.1 from static library initializer corrupts TLS state

2015-08-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91646 --- Comment #5 from Francisco Jerez curroje...@riseup.net --- (In reply to Timo R. from comment #4) That's unlikely to work, static local variables are no different to globals regarding initialization order, To my knowledge, static local

Re: [Mesa-dev] [PATCH] st/mesa: also move yoffset to zoffset for 1d array textures

2015-08-16 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com On Sun, Aug 16, 2015 at 3:45 AM, Ilia Mirkin imir...@alum.mit.edu wrote: Do the same as in st_TexSubImage. This fixes arb_get_texture_sub_image-get on llvmpipe when it is set to prefer blits, and nouveau when it uses the 3d engine for blits.

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

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

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

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

[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 axel.d...@ens.fr --- src/gallium/state_trackers/nine/adapter9.c | 26 +++--- 1 file changed, 11

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

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Allow more than two errors, and return D3DERR_INVALIDCALL for failed display resolution changes. 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 ++--

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

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

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

2015-08-16 Thread Axel Davy
We have two paths: . One that uses a fixed constant buffer, and updates it when needed . One that uses a user constant buffer, and upload it when needed. This patch separates the preparation of the constant buffer and the commit. It also removes NineDevice9_RestoreNonCSOState, which was used to

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

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

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

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

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

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

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

2015-08-16 Thread Axel Davy
From: Christoph Bumiller e0425...@student.tuwien.ac.at This type of blending is used for gallium nine software cursor Signed-off-by: David Heidelberg da...@ixit.cz --- src/gallium/include/pipe/p_state.h | 1 + src/gallium/state_trackers/nine/device9.c| 1 +

[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 axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c| 8 ++

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

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

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

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

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

[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 axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c| 14 +++--- src/gallium/state_trackers/nine/nine_state.c | 23 ++-

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org 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

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

2015-08-16 Thread Axel Davy
From: Tiziano Bacocco tizb...@gmail.com Signed-off-by: Tiziano Bacocco tizb...@gmail.com --- 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 +

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

[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

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

2015-08-16 Thread Axel Davy
Instead of mixing state preparation (filling pipe_) and state commit (pipe-set_*), begin doing so in two separate functions. This will allow to implement efficient Stateblocks, and eventually lead to optimisation where the complete pipe_*** structure is only partially updated.

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

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

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

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

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

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

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

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

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

[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 axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_pipe.c | 12 +++- src/gallium/state_trackers/nine/nine_state.c | 20

[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 axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/state_trackers/nine/device9.c

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

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

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Return 0 for non MANAGED textures and surfaces. Fixes failing wine d3d9 tests device.c test_resource_priority. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src/gallium/state_trackers/nine/resource9.c | 10

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

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org In case NineBaseTexture9_ctor returns an error This-surfaces[l] might be NULL. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org --- src/gallium/state_trackers/nine/texture9.c | 3 ++- 1 file changed, 2

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

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

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

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

[Mesa-dev] [PATCH 1/3] tgsi: set implicit array size for tess stages

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com --- src/gallium/auxiliary/tgsi/tgsi_text.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index a6675c5..24e2dbd 100644 ---

[Mesa-dev] [PATCH 3/3] nouveau: recognize tess stages in nouveau_compiler

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com --- src/gallium/drivers/nouveau/nouveau_compiler.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/nouveau/nouveau_compiler.c b/src/gallium/drivers/nouveau/nouveau_compiler.c index 8660498..495450b 100644 ---

[Mesa-dev] [PATCH 2/3] tgsi: Fix index printed in tgsi_dump and dst outputs

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com Before this patch, the tgsi_dumps was printing declaration as: DCL IN[][0][0], GENERIC[0] and now it is parsed correctly: DCL IN[][0], GENERIC[0] In the same way, for tess stages, the output addr now is parsed correctly, doing like src

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

[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. Signed-off-by: Axel Davy

[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 axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c| 3 --- src/gallium/state_trackers/nine/nine_pipe.c | 4 ++--

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

[Mesa-dev] [Bug 91643] mesa-demos-8.2.0 (latest released version) fails to build against mesa-10.6.4-2.mga6.tainted.src.rpm

2015-08-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91643 --- Comment #6 from Tobias Klausmann tobias.klausm...@mni.thm.de --- Oh right, i was not aware of this. I guess mesa-demo should make this the default then. -- You are receiving this mail because: You are the QA Contact for the bug. You are the

[Mesa-dev] [PATCH 16/71] st/nine: Simplify NineVolume9_CopyVolume

2015-08-16 Thread Axel Davy
We had only one usage for this function. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c | 4 +- src/gallium/state_trackers/nine/volume9.c | 90 ++- src/gallium/state_trackers/nine/volume9.h | 8 +-- 3 files changed, 21

[Mesa-dev] [PATCH 15/71] st/nine: Split NineSurface9_CopySurface

2015-08-16 Thread Axel Davy
NineSurface9_CopySurface was supporting more cases than what we needed, and doing checks that were innapropriate for some NineSurface9_CopySurface use cases. This patch splits it into two for the two use cases, and moves the checks to the caller. This patch also adds a few checks to

[Mesa-dev] [PATCH 21/71] st/nine: Only update dirty rect for UpdateTexture

2015-08-16 Thread Axel Davy
UpdateTexture is supposed to optimise by uploading only for the dirty region of the source (d3d9 doc, wine tests). This patch adds the behaviour for surfaces, but not entirely for volumes. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/device9.c | 47

[Mesa-dev] [PATCH 13/71] util/u_blitter: implement alpha blending for pipe-blit

2015-08-16 Thread Axel Davy
From: Marek Olšák marek.ol...@amd.com --- src/gallium/auxiliary/util/u_blitter.c | 54 ++--- src/gallium/auxiliary/util/u_blitter.h | 3 +- src/gallium/auxiliary/util/u_surface.c | 3 ++ src/gallium/drivers/i915/i915_surface.c | 3 +-

[Mesa-dev] [PATCH 22/71] st/nine: Track managed textures

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/basetexture9.c | 7 ++- src/gallium/state_trackers/nine/basetexture9.h | 3 ++- src/gallium/state_trackers/nine/device9.c | 1 + src/gallium/state_trackers/nine/device9.h | 1 + 4 files changed, 10

[Mesa-dev] [PATCH 06/71] st/nine: Account POINTSIZE_MIN and POINTSIZE_MAX for point size

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org When using D3DRS_POINTSIZE make sure the value is at least D3DRS_POINTSIZE_MIN but not greater than D3DRS_POINTSIZE_MAX. Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph s...@das-labor.org ---

[Mesa-dev] [PATCH 07/71] st/nine: fix D3DRS_DITHERENABLE wrong state group

2015-08-16 Thread Axel Davy
D3DRS_DITHERENABLE was assigned to the rasterizer state group, but it was used for the blend group. Assign it to the blend group. Signed-off-by: Axel Davy axel.d...@ens.fr --- src/gallium/state_trackers/nine/nine_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 03/71] st/nine: Fix Swizzle for ATI2 format

2015-08-16 Thread Axel Davy
We had red and green in the wrong channels for the ATI2 format (RGTC2). Found thanks to wine tests. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: David Heidelberg da...@ixit.cz --- src/gallium/state_trackers/nine/basetexture9.c | 5 + 1 file changed, 5 insertions(+) diff --git

[Mesa-dev] [PATCH 08/71] st/nine: Hide hardware cursor when we don't use it

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 | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c

[Mesa-dev] [PATCH 31/71] st/nine: Impose restrictions on DXTN texture sizes

2015-08-16 Thread Axel Davy
This is the expected behaviour. Fixes more than 1 wine tests failures. Signed-off-by: Axel Davy axel.d...@ens.fr Reviewed-by: David Heidelberg da...@ixit.cz --- src/gallium/state_trackers/nine/cubetexture9.c | 7 +++ src/gallium/state_trackers/nine/device9.c| 7 +++

[Mesa-dev] [PATCH 28/71] st/nine: Clean GetPrivateData

2015-08-16 Thread Axel Davy
From: Patrick Rudolph s...@das-labor.org Move the assert to return error codes in the correct order. Always set the pSizeOfData to the required buffer size. Fixes failing wine test device.c test_private_data() Reviewed-by: Axel Davy axel.d...@ens.fr Signed-off-by: Patrick Rudolph

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

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

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

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

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

[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

[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

[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

[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

[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

[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

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

[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 3/3] nouveau: recognize tess stages in nouveau_compiler

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com --- src/gallium/drivers/nouveau/nouveau_compiler.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/nouveau/nouveau_compiler.c b/src/gallium/drivers/nouveau/nouveau_compiler.c index 8660498..495450b 100644 ---

[Mesa-dev] [PATCH 2/3] tgsi: Fix index printed in tgsi_dump and dst outputs

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com Before this patch, the tgsi_dumps was printing declaration as: DCL IN[][0][0], GENERIC[0] and now it is parsed correctly: DCL IN[][0], GENERIC[0] In the same way, for tess stages, the output addr now is parsed correctly, doing like src

[Mesa-dev] [PATCHv2 0/3] Add tess stages to mesa/nouveau_compiler

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com Hi guys, first of all, sorry for the flood... my last bunch of patches were sent as a mistake... but now the compiling problem was solved :) I'm happy o send my first patches to mesa, and I have to say a huge thank you to Ilia Mirkin for

[Mesa-dev] [PATCH 1/3] tgsi: set implicit array size for tess stages

2015-08-16 Thread Marcos Paulo de Souza
From: Marcos Paulo de Souza marcos.souza@gmail.com --- src/gallium/auxiliary/tgsi/tgsi_text.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index a6675c5..24e2dbd 100644 ---

[Mesa-dev] [Bug 89018] Civilization: Beyond Earth terrain section not rendered

2015-08-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89018 Daniel Exner dex+fdobugzi...@dragonslave.de changed: What|Removed |Added CC|

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

2015-08-16 Thread Axel Davy
Some patches we had in our pending queue for quite some time. Overall not quite interesting set of patches, just minor fixes or improvements. As usual you can find the patch serie there: https://github.com/iXit/Mesa-3D/commits/mesa_submit Patch 2 is an interesting feature since instead of

Re: [Mesa-dev] [PATCH] mesa/texformat: Use format conversion function in _mesa_choose_tex_format

2015-08-16 Thread Nanley Chery
The last line of the commit message should say: GL_RGBA4_S3TC (0x83A3) - COMPRESSED_RGBA_S3TC_DXT5_EXT (0x83F3) On Wed, Aug 12, 2015 at 4:19 PM, Nanley Chery nanleych...@gmail.com wrote: From: Nanley Chery nanley.g.ch...@intel.com This function's cases for non-generic compressed formats

[Mesa-dev] [Bug 91646] dlopen'ing libudev.so.1 from static library initializer corrupts TLS state

2015-08-16 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91646 --- Comment #3 from Francisco Jerez curroje...@riseup.net --- (In reply to Tobias Jakobi from comment #2) Created attachment 117708 [details] [review] hack fix Untested hack/fix that is also not thread-safe. That's unlikely to work, static

Re: [Mesa-dev] [PATCH] tgsi/nouveau: Add support for tesselation ctrl and tesselation eval

2015-08-16 Thread Marcos Paulo de souza
Hi Ilia, Em 14-08-2015 01:45, Ilia Mirkin escreveu: On Fri, Aug 14, 2015 at 12:43 AM, Marcos Souza marcos.souza@gmail.com wrote: HI Ilia 2015-08-14 1:31 GMT-03:00 Ilia Mirkin imir...@alum.mit.edu: On Fri, Aug 14, 2015 at 12:25 AM, Marcos Souza marcos.souza@gmail.com wrote: Hi Ilia,

Re: [Mesa-dev] [PATCH] tgsi/nouveau: Add support for tesselation ctrl and tesselation eval

2015-08-16 Thread Marcos Souza
Hi Ilia, 2015-08-14 1:02 GMT-03:00 Ilia Mirkin imir...@alum.mit.edu: On Thu, Aug 13, 2015 at 11:55 PM, Marcos Souza marcos.souza@gmail.com wrote: Hi Ilia, So i found the point here it addrs that double brackets, and the following patch solves it, but this is a right solution? If

Re: [Mesa-dev] [PATCH] tgsi/nouveau: Add support for tesselation ctrl and tesselation eval

2015-08-16 Thread Marcos Souza
HI Ilia 2015-08-14 1:31 GMT-03:00 Ilia Mirkin imir...@alum.mit.edu: On Fri, Aug 14, 2015 at 12:25 AM, Marcos Souza marcos.souza@gmail.com wrote: Hi Ilia, 2015-08-14 1:02 GMT-03:00 Ilia Mirkin imir...@alum.mit.edu: On Thu, Aug 13, 2015 at 11:55 PM, Marcos Souza

Re: [Mesa-dev] [PATCH] tgsi/nouveau: Add support for tesselation ctrl and tesselation eval

2015-08-16 Thread Marcos Souza
Hi Ilia, So i found the point here it addrs that double brackets, and the following patch solves it, but this is a right solution? If someone could guide me here, I could fix it :) diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c index 8ceb5b4..046471e

Re: [Mesa-dev] [PATCH] tgsi/nouveau: Add support for tesselation ctrl and tesselation eval

2015-08-16 Thread Marcos Souza
2015-08-14 1:55 GMT-03:00 Ilia Mirkin imir...@alum.mit.edu: On Fri, Aug 14, 2015 at 12:52 AM, Marcos Paulo de souza marcos.souza@gmail.com wrote: Now I'll take a look about the last problem of LRP and MOV. That should ideally have solved itself too... if not, do you have the full

Re: [Mesa-dev] Mesa 11.0.0 release plan

2015-08-16 Thread Rob Clark
On Tue, Aug 11, 2015 at 1:45 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 29/07/15 19:20, Emil Velikov wrote: Hi all, Below is the preliminary release schedule for Mesa 11.0.0 August 21st 2015 - Feature freeze/Release candidate 1 August 28th 2015 - Release candidate 2 September 04th

Re: [Mesa-dev] [PATCH 05/12] glsl: fix isinf() for doubles

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan eocallag...@alterapraxis.com -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 09:56 AM, Timothy Arceri wrote: Reviewed-by: Timothy Arceri t_arc...@yahoo.com.au ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH 06/12] glsl: fix ir_constant::equals() for doubles

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan eocallag...@alterapraxis.com -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 09:52 AM, Timothy Arceri wrote: Reviewed-by: Timothy Arceri t_arc...@yahoo.com.au ___ mesa-dev mailing

Re: [Mesa-dev] [PATCH 01/12] nir/builder: include nir.h

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan eocallag...@alterapraxis.com -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 08:30 AM, Connor Abbott wrote: This makes intelligent autocomplete plugins much happier. Signed-off-by: Connor Abbott connor.w.abb...@intel.com ---

Re: [Mesa-dev] [PATCH 03/12] nir: fix constant folding of bfi

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan eocallag...@alterapraxis.com -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 08:30 AM, Connor Abbott wrote: Signed-off-by: Connor Abbott connor.w.abb...@intel.com --- src/glsl/nir/nir_opcodes.py | 4 ++-- 1 file changed, 2

[Mesa-dev] [RFC 1/3] mesa: Driver.DiscardFramebuffer - Driver.DiscardTexture

2015-08-16 Thread Rob Clark
From: Rob Clark robcl...@freedesktop.org No one was implementing this driver hook, so let's first turn it into something more useful and better matching the rest of the Driver API. Signed-off-by: Rob Clark robcl...@freedesktop.org --- src/mesa/drivers/common/driverfuncs.c | 2 +-

[Mesa-dev] [RFC 3/3] mesa/st: wire up DiscardTexture

2015-08-16 Thread Rob Clark
From: Rob Clark robcl...@freedesktop.org Turn it into call to optional pipe-invalidate_resource(). Signed-off-by: Rob Clark robcl...@freedesktop.org --- src/mesa/state_tracker/st_cb_fbo.c | 12 1 file changed, 12 insertions(+) diff --git a/src/mesa/state_tracker/st_cb_fbo.c

  1   2   >