Re: [Mesa-dev] [PATCH 1/8] i965: Change the parameters passed to intel_miptree_get_tile_masks()

2015-08-16 Thread Pohjolainen, Topi
On Fri, Aug 14, 2015 at 04:51:52PM -0700, Anuj Phogat wrote: > This change is required by the later patches. > > Cc: Ben Widawsky > Signed-off-by: Anuj Phogat > --- > src/mesa/drivers/dri/i965/brw_blorp.cpp | 3 ++- > src/mesa/drivers/dri/i965/brw_misc_state.c| 8 +--- > src/mesa/

Re: [Mesa-dev] [PATCH v2 2/3] mesa: validate size parameters for glTexStorage*Multisample

2015-08-16 Thread Tapani Pälli
On 08/14/2015 04:01 PM, Timothy Arceri wrote: On Fri, 2015-08-14 at 08:55 +0300, Tapani Pälli wrote: On 08/13/2015 11:54 AM, Timothy Arceri wrote: I've sent a couple of follow-up patches I notice when reviewing this. On Thu, 2015-08-13 at 09:30 +0300, Tapani Pälli wrote: v2: code cleanup

[Mesa-dev] [PATCH] [RFC] mesa/st: create a front buffer renderbuffer

2015-08-16 Thread Dave Airlie
From: Dave Airlie It appears CTS does a lot of glGetFrameBufferAttachmentParameteriv with GL_FRONT_LEFT, but gallium doesn't create a GL_FRONT_LEFT attachment, so these all fail badly, now I'd like to argue the test suite should probably only hit GL_BACK_LEFT but I'm guessing that won't go down

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

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 08:30 AM, Connor Abbott wrote: > Signed-off-by: Connor Abbott > --- > src/glsl/nir/nir_opcodes.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/

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

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan -- 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 > --- > src/glsl/nir/nir_builder.h | 2 ++ > 1 file cha

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 -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 09:52 AM, Timothy Arceri wrote: > Reviewed-by: Timothy Arceri > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lis

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

2015-08-16 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan -- Edward O'Callaghan edward.ocallag...@koparo.com On Sat, Aug 15, 2015, at 09:56 AM, Timothy Arceri wrote: > Reviewed-by: Timothy Arceri > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://list

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 : > On Fri, Aug 14, 2015 at 12:25 AM, Marcos Souza > wrote: > > Hi Ilia, > > > > 2015-08-14 1:02 GMT-03:00 Ilia Mirkin : > >> > >> On Thu, Aug 13, 2015 at 11:55 PM, Marcos Souza > >> wrote: > >> > Hi Ilia, > >> > > >> > So i found the point here it

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 : > On Fri, Aug 14, 2015 at 12:52 AM, Marcos Paulo de souza > 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 shader that demonstrates the problem? > Yes,

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 wrote: HI Ilia 2015-08-14 1:31 GMT-03:00 Ilia Mirkin : On Fri, Aug 14, 2015 at 12:25 AM, Marcos Souza wrote: Hi Ilia, 2015-08-14 1:02 GMT-03:00 Ilia Mirkin : On Thu, Aug 13, 2015 at 11:55 P

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 : > On Thu, Aug 13, 2015 at 11:55 PM, Marcos Souza > 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 someone could guide me > > here, I co

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 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 2015 - Re

Re: [Mesa-dev] [PATCH] clover: fix llvm 3.5 build error

2015-08-16 Thread Serge Martin (EdB)
On Sunday 09 August 2015 11:52:13 orome wrote: > On Sun, 2015-08-09 at 15:39 +0200, Zoltan Gilian wrote: > > There is no MDOperand in llvm 3.5. > > > > v2: Check if kernel metadata is present to avoid crash (EdB). > > still builds for me. Sadly, it's still crashing for me. auto kernel_node = ge

[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 #6 from Serge Martin --- Hello This remind me this. Something similar have happen to ocl-icd, see https://bugzilla.redhat.com/show_bug.cgi?id=1219646 -- You are receiving this mail because: You are the QA Contact for the bug. You

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

2015-08-16 Thread Rob Clark
From: Rob Clark 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 --- src/mesa/drivers/common/driverfuncs.c | 2 +- src/mesa/main/dd.h| 6 +++--- src/mesa/ma

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

2015-08-16 Thread Rob Clark
From: Rob Clark Turn it into call to optional pipe->invalidate_resource(). Signed-off-by: Rob Clark --- 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 b/src/mesa/state_tracker/st_cb_fbo.c index 5707590..5

[Mesa-dev] [RFC 2/3] mesa: hook up DiscardTexture for InvalidateFramebuffer and friends

2015-08-16 Thread Rob Clark
From: Rob Clark We can use same Driver hook for these, in addition to DiscardFramebufferEXT() Signed-off-by: Rob Clark --- src/mesa/main/fbobject.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c

[Mesa-dev] [RFC 0/3] Flesh out DiscardFramebuffer and InvalidateFramebuffer

2015-08-16 Thread Rob Clark
From: Rob Clark Currently, these extension entry points were implemented, but other than error-checking, they were no-op. (Technically, DiscardFramebuffer had a driver hook, but no one implemented it.) So refactor the driver API slightly, and turn these all into calls to DiscardTexture, which i

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 wrote: > From: Nanley Chery > > This function's cases for non-generic compressed formats duplicate > the GL to MESA translation in

[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 changed: What|Removed |Added CC||dex+fdobugzilla@dragonslave

[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 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 parser from: LRP OUT[0][3], TE

[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 --- 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 --- a/src/gallium/drivers/nouveau/

[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 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 all the help and tips to fi

[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 --- 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 --- a/src/gallium/auxiliary/tgsi/tgsi_tex

[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 --- 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 --- a/src/gallium/drivers/nouveau/

[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 --- 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 --- a/src/gallium/auxiliary/tgsi/tgsi_tex

[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 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 parser from: LRP OUT[0][3], TE

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

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

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

[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_trackers/nin

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

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

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

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

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

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

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

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

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

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

[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 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. Signed-off

[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 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/gallium/state_tr

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

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

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

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

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

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

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

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

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

[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_trackers/nin

[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/gallium/state_

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

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

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

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

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

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

[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 Mimic WindowsXp behaviour and allow negative values in the rectangle passed. Add comment to point out behaviour used. Reviewed-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/surface9.c | 8 ++-- 1 file changed, 2 insertions(+), 6 del

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph Set all values to 0 after allocation. Found using valgrind. Reviewed-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/device9.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/device9.

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

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy Reviewed-by: David Heidelberg --- src/gallium/state_trackers/nine/device9.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 4aa5892..a327bf8 1006

[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 --- src/gallium/state_trackers/nine/cubetexture9.c | 4 +++- src/gallium/state_trackers/nine/texture9.c | 4 +++- 2 file

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph 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 Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/resource9.c

[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 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 Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/nine_pipe.c | 8 +++- src/gallium/state_trackers/nine/

[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 --- src/gallium/state_trackers/nine/nine_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_track

[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 Reviewed-by: David Heidelberg --- src/gallium/state_trackers/nine/basetexture9.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/nine

[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 Reviewed-by: David Heidelberg --- 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 b/src/gallium/state_trackers/nine/device9.c index 55948cb..fce19

[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 Reviewed-by: David Heidelberg --- src/gallium/state_trackers/nine/cubetexture9.c | 7 +++ src/gallium/state_trackers/nine/device9.c| 7 +++ src/gallium/state_trackers/nine/textu

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph 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 Reviewed-by: Axel Davy Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/cubetexture9.c | 2 +- src/gallium/sta

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

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy Reviewed-by: David Heidelberg --- src/gallium/state_trackers/nine/device9.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index fce19b2..9f6c90e 1006

[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 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 --- 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 insertions(+), 81 delet

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

[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 --- 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 --- 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 +- src/gallium/drivers/r300/r300_blit.c| 3 +-

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

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

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- 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 --git a/src/gallium/

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph 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 Signed-off-by: Patrick Rudolph --- src/gallium/state_trackers/nine/surface9.c | 11 +++ src/galli

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

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- 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 insertions(+), 2 deletio

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

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

[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 Reviewed-by: David Heidelberg --- src/gallium/state_trackers/nine/swapchai

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

2015-08-16 Thread Axel Davy
From: Patrick Rudolph 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 Signed-off-by: Patrick Rudolph --- src/gallium/targets/d3dadapter9/Makefile.am | 1 + src

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

2015-08-16 Thread Axel Davy
Signed-off-by: Axel Davy --- 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 +--- 4 files changed,

[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 --- src/gallium/state_trackers/nine/nine_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/nine_pipe.c b/s

[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 --- src/gallium/state_trackers/nine/basetexture9.c | 9 +-- src/gallium/state_trackers/nine/volume9.c | 82 ++ src/gallium/state_trackers/nine/volume9.h

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

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

[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 Reviewed-by: David Heidelberg --- 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 9f6c90e..38af8e3 100644 --- a/

[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 --- 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 assignee for the bug. _

  1   2   >