Re: [Mesa-dev] [PATCH 28/39] st/nine: Fix buffer bind flags

2016-05-15 Thread Ilia Mirkin
On May 15, 2016 6:46 AM, "Axel Davy" wrote: > > Signed-off-by: Axel Davy > --- > src/gallium/state_trackers/nine/buffer9.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/gallium/state_trackers/nine/buffer9.c

[Mesa-dev] [PATCH 1/2] glsl: propagate used flag from interface var to new vars.

2016-05-15 Thread Dave Airlie
From: Dave Airlie This just propogates the flags down, this is necessary so gl_in[].gl_ClipDistance can be lowered correctly. Signed-off-by: Dave Airlie --- src/compiler/glsl/lower_named_interface_blocks.cpp | 1 + 1 file changed, 1 insertion(+) diff

[Mesa-dev] [PATCH 2/2] glsl: rewrite clip/cull distance lowering pass

2016-05-15 Thread Dave Airlie
From: Dave Airlie The last version of this broke clipping, and I had to spend sometime getting this working properly. I had to introduce a third pass to count the clip/cull totals, all due to one messy corner case. We have a piglit test tes-input-gl_ClipDistance.shader_test

Re: [Mesa-dev] [PATCH] i965: Fix undefined df bits in brw_reg comparisons.

2016-05-15 Thread Kenneth Graunke
On Saturday, May 14, 2016 2:42:20 PM PDT Emil Velikov wrote: > Hi Ken, > > On 14 May 2016 at 01:44, Kenneth Graunke wrote: > > Commit 5310bca024f77da40ea6f4c275455f9cb0528f9e added a new "double df" > > field to the brw_reg struct, adding an extra 4 bytes of data that

Re: [Mesa-dev] GBM backend dynamic dispatch method

2016-05-15 Thread Jammy Zhou
Hi Daniel, 2016-05-13 18:49 GMT+08:00 Daniel Vetter : > On Fri, May 13, 2016 at 02:33:13PM +0800, Jammy Zhou wrote: > > 2016-05-13 14:01 GMT+08:00 Nicolai Hähnle : > > > > > On 13.05.2016 00:22, Jammy Zhou wrote: > > > > > >> > > >> > > >> 2016-05-13 12:39

Re: [Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Ilia Mirkin
On Sun, May 15, 2016 at 8:25 PM, Martin Peres wrote: > On 16/05/16 02:55, Jason Ekstrand wrote: >> On May 15, 2016 2:01 PM, "Martin Peres" > > wrote: >> > >> > On 15/05/16 23:54, Ilia Mirkin wrote: >> >> >> >> On Sun, May

Re: [Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Martin Peres
On 16/05/16 02:55, Jason Ekstrand wrote: On May 15, 2016 2:01 PM, "Martin Peres" > wrote: > > On 15/05/16 23:54, Ilia Mirkin wrote: >> >> On Sun, May 15, 2016 at 4:32 PM, Dave Airlie > wrote:

[Mesa-dev] [PATCH 1/1] clover: grid_offset should be padded with 0 not 1

2016-05-15 Thread Jan Vesely
Signed-off-by: Jan Vesely --- This is the only mesa change to make the newly introduced global_offset piglit pass on r600 (the rest is llvm/clang/libclc) src/gallium/state_trackers/clover/core/kernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Jason Ekstrand
On May 15, 2016 2:01 PM, "Martin Peres" wrote: > > On 15/05/16 23:54, Ilia Mirkin wrote: >> >> On Sun, May 15, 2016 at 4:32 PM, Dave Airlie wrote: >>> >>> So I said this on irc over the weekend and it seemed like we had some >>> consensus on holding off

Re: [Mesa-dev] [PATCH 1/2] nir/print: add support for print annotations

2016-05-15 Thread Jason Ekstrand
On May 14, 2016 12:48 PM, "Rob Clark" wrote: > > From: Rob Clark > > Caller can pass a hashtable mapping NIR object (currently instr or var, > but I guess others could be added as needed) to annotation msg to print > inline with the shader dump. As

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix JIP to skip over sibling do...while loops.

2016-05-15 Thread Francisco Jerez
Kenneth Graunke writes: > We've apparently always been botching JIP for sequences such as: > > do > cmp.f0.0 ... > (+f0.0) break > ... > do > ... > while > ... > while > > Because the "do" instruction doesn't actually exist, the inner

[Mesa-dev] [PATCH] i965: Make a "does this while jump before our instruction?" helper.

2016-05-15 Thread Kenneth Graunke
I need to use this in an additional place. Cc: mesa-sta...@lists.freedesktop.org Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_emit.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) Whoops. This is patch 1/2, the other patch

Re: [Mesa-dev] [Mesa-stable] [PATCH] i965: Fix JIP to skip over sibling do...while loops.

2016-05-15 Thread Francisco Jerez
Kenneth Graunke writes: > We've apparently always been botching JIP for sequences such as: > > do > cmp.f0.0 ... > (+f0.0) break > ... > do > ... > while > ... > while > > Because the "do" instruction doesn't actually exist, the inner

Re: [Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Francisco Jerez
Dave Airlie writes: > So I said this on irc over the weekend and it seemed like we had some > consensus on holding off 12.0 until we could announce 4.5 on some > hardware. This assumes the FP64 stuff is going in at least. > > So I decided to roll out the proposal here, which

Re: [Mesa-dev] [PATCH 1/2] nir/print: add support for print annotations

2016-05-15 Thread Rob Clark
On Sun, May 15, 2016 at 1:53 PM, Eduardo Lima Mitev wrote: > On 05/15/2016 03:23 PM, Rob Clark wrote: >> On Sun, May 15, 2016 at 8:52 AM, Eduardo Lima Mitev wrote: >>> On 05/14/2016 09:47 PM, Rob Clark wrote: From: Rob Clark

Re: [Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Martin Peres
On 15/05/16 23:54, Ilia Mirkin wrote: On Sun, May 15, 2016 at 4:32 PM, Dave Airlie wrote: So I said this on irc over the weekend and it seemed like we had some consensus on holding off 12.0 until we could announce 4.5 on some hardware. This assumes the FP64 stuff is going in

Re: [Mesa-dev] [RFC PATCH] clover: add LLVM version to device and platform version

2016-05-15 Thread Giuseppe Bilotta
On Sun, May 15, 2016 at 9:35 AM, Vedran Miletić wrote: > 2016-05-15 3:32 GMT+02:00 Francisco Jerez : >> Giuseppe Bilotta writes: >> >>> Code generation (kernel compilation) may sometimes hit LLVM-specific >>> bugs. Adding the

Re: [Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Ilia Mirkin
On Sun, May 15, 2016 at 4:32 PM, Dave Airlie wrote: > So I said this on irc over the weekend and it seemed like we had some > consensus on holding off 12.0 until we could announce 4.5 on some > hardware. This assumes the FP64 stuff is going in at least. > > So I decided to roll

[Mesa-dev] GL4.5 or bust...

2016-05-15 Thread Dave Airlie
So I said this on irc over the weekend and it seemed like we had some consensus on holding off 12.0 until we could announce 4.5 on some hardware. This assumes the FP64 stuff is going in at least. So I decided to roll out the proposal here, which is that we finish GL4.5 features off for at least

Re: [Mesa-dev] mediump / half-precision support

2016-05-15 Thread Rob Clark
hmm, that is still a lot of sites of type comparison to fixup, unless maybe some operator overloading hackery.. but that sounds ugly.. I guess the pass to propagate precision works out equivalently, as far as applying precision propagation, to my precision_visitor. Not *really* sure that makes it

[Mesa-dev] [PATCH] nvc0/ir: make sure out-of-bounds buffer loads/atomics get a 0 result

2016-05-15 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 27 +- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp

Re: [Mesa-dev] mediump / half-precision support

2016-05-15 Thread Connor Abbott
Maybe instead you could do something in the middle -- add a precision field to glsl_type instead of adding to glsl_base_type. Then make different precision types compare equal in most places (since it is a hint to the compiler, rather than a full-fledged extra type) and have a pass that propagates

[Mesa-dev] mediump / half-precision support

2016-05-15 Thread Rob Clark
So I've been hacking around on a couple approaches to getting half-precision support going for gles (and btw, someday it might be interesting to have an extension to respect precision qualifiers in gl too) I initially started by propagating ir_variable_data::precision to nir_variable_data and

Re: [Mesa-dev] [PATCH 00/39] Some nine patches for Mesa 12.0

2016-05-15 Thread Axel Davy
On 15/05/2016 12:45, Axel Davy wrote: . Steam overlay now working . Last remaining issue with thread_submit option solved (thread_submit allows DRI_PRIME support without any glitch or tearing), thus turn it default. Just a small clarification: The steam overlay needs patch "st/nine: Increase

Re: [Mesa-dev] [PATCH 1/2] nir/print: add support for print annotations

2016-05-15 Thread Eduardo Lima Mitev
On 05/15/2016 03:23 PM, Rob Clark wrote: > On Sun, May 15, 2016 at 8:52 AM, Eduardo Lima Mitev wrote: >> On 05/14/2016 09:47 PM, Rob Clark wrote: >>> From: Rob Clark >>> >>> Caller can pass a hashtable mapping NIR object (currently instr or var, >>>

Re: [Mesa-dev] [PATCH 2/2] nir/validate: dump annotated shader with error msgs

2016-05-15 Thread Rob Clark
On Sun, May 15, 2016 at 12:48 PM, Connor Abbott wrote: > On Sat, May 14, 2016 at 3:47 PM, Rob Clark wrote: >> From: Rob Clark >> >> Log all the errors, and at the end dump the shader w/ error annotations >> to make it easier to

Re: [Mesa-dev] [PATCH 1/2] nir/print: add support for print annotations

2016-05-15 Thread Connor Abbott
On Sun, May 15, 2016 at 8:52 AM, Eduardo Lima Mitev wrote: > On 05/14/2016 09:47 PM, Rob Clark wrote: >> From: Rob Clark >> >> Caller can pass a hashtable mapping NIR object (currently instr or var, >> but I guess others could be added as needed) to

Re: [Mesa-dev] [PATCH 2/2] nir/validate: dump annotated shader with error msgs

2016-05-15 Thread Connor Abbott
On Sat, May 14, 2016 at 3:47 PM, Rob Clark wrote: > From: Rob Clark > > Log all the errors, and at the end dump the shader w/ error annotations > to make it easier to see where the problems are. > > Signed-off-by: Rob Clark

Re: [Mesa-dev] [PATCH 1/8] nvc0: bind images on fragment and compute shaders for Fermi

2016-05-15 Thread Samuel Pitoiset
On 05/14/2016 04:37 PM, Ilia Mirkin wrote: On Sat, May 14, 2016 at 9:54 AM, Samuel Pitoiset wrote: Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_compute.c | 53

Re: [Mesa-dev] [PATCH 18/18] winsys/amdgpu: decay max_ib_size over time

2016-05-15 Thread Marek Olšák
For patches 10-12, 14-18: Reviewed-by: Marek Olšák Marek On Tue, May 10, 2016 at 1:21 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > So that memory use will eventually decrease again after a temporary peak. > --- >

Re: [Mesa-dev] [PATCH 1/2] nir/print: add support for print annotations

2016-05-15 Thread Rob Clark
On Sun, May 15, 2016 at 8:52 AM, Eduardo Lima Mitev wrote: > On 05/14/2016 09:47 PM, Rob Clark wrote: >> From: Rob Clark >> >> Caller can pass a hashtable mapping NIR object (currently instr or var, >> but I guess others could be added as needed) to

Re: [Mesa-dev] [PATCH 2/2] nir/validate: dump annotated shader with error msgs

2016-05-15 Thread Eduardo Lima Mitev
Reviewed-by: Eduardo Lima Mitev On 05/14/2016 09:47 PM, Rob Clark wrote: > From: Rob Clark > > Log all the errors, and at the end dump the shader w/ error annotations > to make it easier to see where the problems are. > > Signed-off-by: Rob Clark

Re: [Mesa-dev] [PATCH] nvc0/ir: make sure to align the second arg of TXD to 4, as we do for TEX

2016-05-15 Thread Samuel Pitoiset
I don't like this code duplication but we don't really have the choice here. Reviewed-by: Samuel Pitoiset On 05/15/2016 01:27 AM, Ilia Mirkin wrote: This was handled in handleTEX(), however the way the logic works, those extra arguments aren't added on by then, so

Re: [Mesa-dev] [PATCH 1/2] nir/print: add support for print annotations

2016-05-15 Thread Eduardo Lima Mitev
On 05/14/2016 09:47 PM, Rob Clark wrote: > From: Rob Clark > > Caller can pass a hashtable mapping NIR object (currently instr or var, > but I guess others could be added as needed) to annotation msg to print > inline with the shader dump. As the annotation msg is

Re: [Mesa-dev] [PATCH] nvc0: don't try to go through the push path for indirect draws

2016-05-15 Thread Samuel Pitoiset
This makes sense, thanks for fixing this. Reviewed-by: Samuel Pitoiset On 05/15/2016 07:28 AM, Ilia Mirkin wrote: This fixes dEQP-GLES31.functional.draw_indirect.draw_elements_indirect.*.default_attribute These tests were causing a const vbo to be set up, and were

[Mesa-dev] [PATCH 02/39 v2] d3dadapter9: Add d3dadapter9.pc

2016-05-15 Thread Axel Davy
Export d3dadapter9.pc It is essentially the same than d3d.pc, except we want to drop d3d.pc in the future (we prefer the name d3dadapter9). v2: Resend because one file was missing. Signed-off-by: Axel Davy --- configure.ac | 1 +

Re: [Mesa-dev] [PATCH] nv50,nvc0: add support for cull distances

2016-05-15 Thread Tobias Klausmann
Looks a bit silly to review this patch as it is run under my name, but anyway: Reviewed-by: Tobias Klausmann On 14.05.2016 16:21, Ilia Mirkin wrote: From: Tobias Klausmann Cull distances are just a special case of

[Mesa-dev] [PATCH RESEND 3/3] gallium: push offset down to driver

2016-05-15 Thread Stanimir Varbanov
Push offset down to drivers when importing dmabuf. This is needed to more fully support EGL_EXT_image_dma_buf_import when a non-zero offset is specified. Signed-off-by: Rob Clark Signed-off-by: Stanimir Varbanov ---

[Mesa-dev] [PATCH RESEND 1/3] st/dri: add handling of R8 and GR88 DRI fourcc formats

2016-05-15 Thread Stanimir Varbanov
This helps to import dmabuf buffers from DRM_FORMAT_R8 and DRM_FORMAT_GR88 used for example by GStreamer and Wayland for YUV to RGB conversion on shaders. Signed-off-by: Stanimir Varbanov --- src/gallium/state_trackers/dri/dri2.c | 20 1 file

[Mesa-dev] [PATCH RESEND 2/3] st/dri: cleanup image_from_fd/dma_buf paths

2016-05-15 Thread Stanimir Varbanov
Signed-off-by: Stanimir Varbanov --- src/gallium/state_trackers/dri/dri2.c | 75 ++- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index

[Mesa-dev] [PATCH RESEND 0/3] st: dri2: handle dmabuf plane offsets != 0

2016-05-15 Thread Stanimir Varbanov
Resend with proper subscription for mese-dev ML. Here we extend dri2 to handle dmabuf plain offsets != 0 applicable when GStreamer/Wayland converting YUV->RGB dmabuf buffers using shaders. Tested on Freedreno and compile tested with configure

[Mesa-dev] [PATCH 29/39] st/nine: Improve buffer placement

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/buffer9.c | 34 +++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index

[Mesa-dev] [PATCH 36/39] st/nine: Fix usage of rasterizer multisample bit.

2016-05-15 Thread Axel Davy
pipe_rasterizer multisample bit should be enabled only when really wanting to do multisampling, thus we should disable when not having msaa render target. This fixes some depth calculation precision issues on radeon. Also disable it when depth and stencil tests are disabled, since in that case

[Mesa-dev] [PATCH 30/39] st/nine: Fix CheckDeviceFormat advertising for surfaces

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 12 1 file changed, 12 insertions(+) diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine/adapter9.c index 48e1e44..b06528d 100644 ---

[Mesa-dev] [PATCH 22/39] st/nine: Implement IPresent version 1.2

2016-05-15 Thread Axel Davy
From: Patrick Rudolph Implement presentation interface version 1.2: * ID3DPresent_ResolutionMismatch Poll for resolution mismatch. A third party app might have changed resolution, which requires a device reset. * ID3DPresent_CreateThread Create a thread in

[Mesa-dev] [PATCH 37/39] st/nine: Turn on thread_submit by default when on different device

2016-05-15 Thread Axel Davy
The last remaining issues with thread_submit have been resolved, thus turn it when on a different device (the case where is is beneficial). Signed-off-by: Axel Davy --- src/gallium/targets/d3dadapter9/drm.c | 22 -- 1 file changed, 12 insertions(+), 10

[Mesa-dev] [PATCH 10/39] st/nine: Fix leak after ctor failures

2016-05-15 Thread Axel Davy
Previously ctor failures would not unreference the device. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/iunknown.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/nine/iunknown.c b/src/gallium/state_trackers/nine/iunknown.c

[Mesa-dev] [PATCH 04/39] st/nine: Use bufs instead of Flags for Clear

2016-05-15 Thread Axel Davy
bufs doesn't contain depthstencil if there is z buffer mismatch. This is the behaviour we want. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 09/39] st/nine: Add ColorFill test for compressed textures

2016-05-15 Thread Axel Davy
ColorFill should contain alignment checks for compressed textures. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/state_trackers/nine/device9.c

[Mesa-dev] [PATCH 28/39] st/nine: Fix buffer bind flags

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/buffer9.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index ed0c4f1..f6bad6a 100644 ---

[Mesa-dev] [PATCH 08/39] st/nine: PositionT and Tessfactor are forbidden as PS input

2016-05-15 Thread Axel Davy
According to wine tests, they are forbidden as PS input, which makes sense. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c

[Mesa-dev] [PATCH 02/39] d3dadapter9: Add d3dadapter9.pc

2016-05-15 Thread Axel Davy
Export d3dadapter9.pc It is essentially the same than d3d.pc, except we want to drop d3d.pc in the future (we prefer the name d3dadapter9). Signed-off-by: Axel Davy --- configure.ac| 1 + src/gallium/targets/d3dadapter9/Makefile.am | 2 +- 2

[Mesa-dev] [PATCH 15/39] gallium/util: Implement util_format_translate_3D

2016-05-15 Thread Axel Davy
This is the equivalent of util_format_translate, but for volumes. Signed-off-by: Axel Davy --- src/gallium/auxiliary/util/u_format.c | 34 ++ src/gallium/auxiliary/util/u_format.h | 13 + 2 files changed, 47 insertions(+) diff --git

[Mesa-dev] [PATCH 14/39] st/nine: Fix Pointsize in programmable shader

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 17 +--- src/gallium/state_trackers/nine/nine_shader.h | 52 +++-- src/gallium/state_trackers/nine/nine_state.c| 7 ++-- src/gallium/state_trackers/nine/nine_state.h

[Mesa-dev] [PATCH 33/39] st/nine: Add asserts for output/input packing

2016-05-15 Thread Axel Davy
Nine doesn't support vs output/ps input packing. We haven't found any application requiring that, and implementing it properly is complex. Add asserts for now. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 4 1 file changed, 4 insertions(+)

[Mesa-dev] [PATCH 05/39] st/nine: Rework UpdateTexture Checks

2016-05-15 Thread Axel Davy
Our code did match the user documentation of the function quite well (except for format check). However the DDI documentation and wine tests show that documentation was not correct. Thus adapt our code to fit the best possible to the -real- spec. Signed-off-by: Axel Davy ---

[Mesa-dev] [PATCH 00/39] Some nine patches for Mesa 12.0

2016-05-15 Thread Axel Davy
Hi, Here are some patches I'd like to get into next Mesa release. While mostly the patches are fixes, interesting changes are: . Steam overlay now working . Last remaining issue with thread_submit option solved (thread_submit allows DRI_PRIME support without any glitch or tearing), thus turn it

[Mesa-dev] [PATCH 34/39] st/nine: Add debug string for ATOC

2016-05-15 Thread Axel Davy
We were missing a debug string for this format. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_pipe.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/nine/nine_pipe.h b/src/gallium/state_trackers/nine/nine_pipe.h index

[Mesa-dev] [PATCH 38/39] st/nine: Enable D3DPMISCCAPS_PERSTAGECONSTANT

2016-05-15 Thread Axel Davy
From: Patrick Rudolph Nine already supports the feature. There are no failing WINE tests for per stage constants. Enabling D3DPMISCCAPS_PERSTAGECONSTANT as it fixes https://github.com/iXit/Mesa-3D/issues/205 Signed-off-by: Patrick Rudolph Reviewed-by:

[Mesa-dev] [PATCH 19/39] st/nine: Remove one useless function output

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/volume9.c | 6 +++--- src/gallium/state_trackers/nine/volume9.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/nine/volume9.c

[Mesa-dev] [PATCH 12/39] st/nine: Fix header of GetIndices

2016-05-15 Thread Axel Davy
There is a mistake in the online documentation, the function only has 2 arguments. Signed-off-by: Axel Davy --- include/D3D9/d3d9.h | 10 +- src/gallium/state_trackers/nine/device9.c | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff

[Mesa-dev] [PATCH 20/39] st/nine: Format conversion for volumes in UpdateTexture

2016-05-15 Thread Axel Davy
We were doing the conversion for surfaces, but not yet volumes. Now that volumes can do conversion, use it. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 8 1 file changed, 8 deletions(-) diff --git

[Mesa-dev] [PATCH 13/39] st/nine: Fix ff pointscale computation

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 27 ++- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index 7b26c95..5a55767

[Mesa-dev] [PATCH 32/39] st/nine: Use correct PIPE_HANDLE_USAGE flag for frontbuffer copy

2016-05-15 Thread Axel Davy
When taking screenshots we do a copy from the frontbuffer to an allocated buffer (which we then copy to a ram buffer). Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git

[Mesa-dev] [PATCH 18/39] st/nine: Add support for X8L8V8U8

2016-05-15 Thread Axel Davy
X8L8V8U8 support should be common. Some more recent cards do support this format, but not L6V5U5. Add fallback for this format to have it alwaus supported. L6V5U5 conversion rule apparently differs a bit from the normal spec, and thus the gallium equivalent format leads to slightly wrong colors.

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

2016-05-15 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 --- src/gallium/auxiliary/os/os_misc.c | 2 +- src/gallium/drivers/llvmpipe/lp_screen.c | 5 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 16/39] st/nine: Add format fallback with conversion to surfaces

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/surface9.c | 70 +- src/gallium/state_trackers/nine/surface9.h | 3 ++ 2 files changed, 72 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/nine/surface9.c

[Mesa-dev] [PATCH 25/39] st/nine: Use WINE thread for threadpool

2016-05-15 Thread Axel Davy
From: Patrick Rudolph Use present interface 1.2 function ID3DPresent_CreateThread to create the thread for threadpool. Creating the thread with WINE prevents some rarely occuring crashes. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy

[Mesa-dev] [PATCH 24/39] st/nine: Don't present if window is occluded

2016-05-15 Thread Axel Davy
From: Patrick Rudolph The problem is that if one d3d present call fails, because of our occlusion check in present method, the next presentation call will send the same pixmap to the Xserver again, without waiting it is released, which is wrong. Move the present call after

[Mesa-dev] [PATCH 17/39] st/nine: Add format fallback with conversion to volumes

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/volume9.c | 115 +++--- src/gallium/state_trackers/nine/volume9.h | 4 ++ 2 files changed, 110 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers/nine/volume9.c

[Mesa-dev] [PATCH 21/39] st/nine: Implement BumpEnvMap for ff

2016-05-15 Thread Axel Davy
Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 78 +-- 1 file changed, 54 insertions(+), 24 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 27/39] st/nine: Fix buffer locking flags handling

2016-05-15 Thread Axel Davy
Our behaviour was not entirely similar to what the docs and our tests describe. Drop d3dlock_buffer_to_pipe_transfer_usage. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/buffer9.c | 24 ++-- src/gallium/state_trackers/nine/nine_pipe.h | 27

[Mesa-dev] [PATCH 39/39] st/nine: Minor change to support musl libc

2016-05-15 Thread Axel Davy
From: Wang He A few changes to support musl libc as well. In particular fpu_control.h is glibc specific. fenv.h doesn't enable to do exactly what we want either, so instead use assembly directly. Signed-off-by: Wang He Reviewed-by: Axel Davy

[Mesa-dev] [PATCH 26/39] st/nine: Improve logging

2016-05-15 Thread Axel Davy
From: Patrick Rudolph Add missing DBG calls in dtors. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy --- src/gallium/state_trackers/nine/buffer9.c| 2 ++ src/gallium/state_trackers/nine/query9.c | 2 ++

[Mesa-dev] [PATCH 11/39] st/nine: Increase minor d3dadapter9drm ABI

2016-05-15 Thread Axel Davy
Version 0.1 allows to assume that the second element of the IDirect3D* structures will be a pointer to the internal nine vtable. This is useful if the gallium nine user wants to wrap some interfaces. Signed-off-by: Axel Davy --- include/d3dadapter/drm.h | 6

[Mesa-dev] [PATCH 31/39] st/nine: Fix output shift calculation

2016-05-15 Thread Axel Davy
We were getting it wrong for negative values. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c

[Mesa-dev] [PATCH 35/39] st/nine: ATOC has effect only with ALPHATESTENABLE

2016-05-15 Thread Axel Davy
ATOC extension does something only when alpha test is enabled. Use a second bit to encode the difference with ATIATOC. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 9 - src/gallium/state_trackers/nine/nine_pipe.c | 2 +-

[Mesa-dev] [PATCH 06/39] st/nine: Forbid POSITION0 for PS3.0

2016-05-15 Thread Axel Davy
POSITION0 input is forbidden for PS3.0 apparently. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c

[Mesa-dev] [PATCH 23/39] st/nine: Use new function to query for resolution mismatch

2016-05-15 Thread Axel Davy
From: Patrick Rudolph Any third party app might change the current screen resolution. Poll for resolution mismatch to force a device reset. Required for non ex devices only. Signed-off-by: Patrick Rudolph Reviewed-by: Axel Davy ---

[Mesa-dev] [PATCH 01/39] d3dadapter9: Add ddebug support

2016-05-15 Thread Axel Davy
Add support for ddebug, noop, rbug and trace Signed-off-by: Axel Davy --- src/gallium/targets/d3dadapter9/Makefile.am | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/gallium/targets/d3dadapter9/Makefile.am b/src/gallium/targets/d3dadapter9/Makefile.am

[Mesa-dev] [PATCH 07/39] st/nine: Fix some shader failures not triggering error

2016-05-15 Thread Axel Davy
Some failures during shader translation would not raise errors before this patch. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c

Re: [Mesa-dev] [PATCH] st/mesa: fix reversed copyimage canonical format

2016-05-15 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, May 13, 2016 at 8:19 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > The format_desc swizzle describes where in the array each color channel > comes from - but the existing code was

Re: [Mesa-dev] [PATCH] st/mesa: disable cull distance for now

2016-05-15 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sat, May 14, 2016 at 4:20 PM, Ilia Mirkin wrote: > The pass that st/mesa relies on to combine clip and cull distances has > been reverted, so we can't expose ARB_cull_distance until that is > resolved. > >

[Mesa-dev] [PATCH] i965: Fix JIP to skip over sibling do...while loops.

2016-05-15 Thread Kenneth Graunke
We've apparently always been botching JIP for sequences such as: do cmp.f0.0 ... (+f0.0) break ... do ... while ... while Because the "do" instruction doesn't actually exist, the inner "while" is at the same depth as the "break". brw_find_next_block_end() thus

Re: [Mesa-dev] [RFC PATCH] clover: add LLVM version to device and platform version

2016-05-15 Thread Vedran Miletić
2016-05-15 3:32 GMT+02:00 Francisco Jerez : > Giuseppe Bilotta writes: > >> Code generation (kernel compilation) may sometimes hit LLVM-specific >> bugs. Adding the used LLVM version to the version string may make bug >> triaging easier. >> >>