[Mesa-dev] [PATCH 36/36] st/nine: Implement WFOG properly

2016-12-07 Thread Axel Davy
We were advertising support for WFOG (like all win drivers), but we weren't implementing it. This patch implements the behaviour. See comments. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/nine_ff.c | 42 +-- 1 file chang

Re: [Mesa-dev] NaN behavior in GLSL (was Re: [PATCH] glsl: always do sqrt(abs()) and inversesqrt(abs()))

2017-01-13 Thread Axel Davy
On 13/01/2017 19:50, Matteo Bruni wrote: 2017-01-13 3:37 GMT+01:00 Ilia Mirkin : On Thu, Jan 12, 2017 at 9:13 PM, Jason Ekstrand wrote: Unless, of course, it's controlled by the same hardware bit... Clearly, we can can give you abs on rsq without

Re: [Mesa-dev] NaN behavior in GLSL (was Re: [PATCH] glsl: always do sqrt(abs()) and inversesqrt(abs()))

2017-01-12 Thread Axel Davy
Preventing NaN from being generated is not sufficient to fix the 0*inf = 0 issue. For example radeonsi does convert all NaN to zeros via a hardware setting. But 0*inf = 0 behaviour should be also in mad, and with the NaN to zero conversion, you g

Re: [Mesa-dev] NaN behavior in GLSL (was Re: [PATCH] glsl: always do sqrt(abs()) and inversesqrt(abs()))

2017-01-12 Thread Axel Davy
On 12/01/2017 23:09, Matteo Bruni wrote: 2017-01-12 22:54 GMT+01:00 Axel Davy <axel.d...@ens.fr>: Preventing NaN from being generated is not sufficient to fix the 0*inf = 0 issue. For example radeonsi does convert all NaN to zeros via a hardware setting. But 0*inf = 0 behaviour should b

[Mesa-dev] [PATCH 2/7] st/nine: Remove duplicated checks

2017-01-06 Thread Axel Davy
There is no need to check on csmt_active before calling nine_csmt_process, because the function checks already. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c| 3 +-- src/gallium/state_trackers/nine/nine_state.c | 14 ++ 2 files c

[Mesa-dev] [PATCH 7/7] st/nine: Protect dtors with mutex

2017-01-06 Thread Axel Davy
hang, since nine_csmt_process is not threadsafe. Fixes Hitman hang, and possibly others. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/iunknown.c | 26 +++ src/gallium/state_trackers/nine/iunknown.h | 3 ++ src/gallium/state_tracker

[Mesa-dev] [PATCH 3/7] st/nine: Rework CreatePipeSurface

2017-01-06 Thread Axel Davy
Create both surfaces in one call. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/surface9.c | 49 ++ src/gallium/state_trackers/nine/surface9.h | 3 -- 2 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/g

[Mesa-dev] [PATCH 1/7] st/nine: Don't call u_box_union_* when dirty region is empty

2017-01-06 Thread Axel Davy
From: Masanori Kakura <kakura...@gmail.com> When dirty region is empty, u_box_union_* incorrectly expands the new region. This fixes broken font rendering issue in WOLF RPG Editor v2.10 games. Signed-off-by: Masanori Kakura <kakura...@gmail.com> Reviewed-by: Axel Davy <a

[Mesa-dev] [PATCH 6/7] st/nine: Flush the queue at device dtor

2017-01-06 Thread Axel Davy
Flush the queue to get refcounts right, and properly release the items, instead of throwing away all pending commands. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/g

[Mesa-dev] [PATCH 4/7] st/nine: Flush pending commands if needed for surface9 changes

2017-01-06 Thread Axel Davy
nine_context uses NineSurface9 fields, thus we need to flush pending commands using the surface before changing the fields. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/surface9.c | 28 src/gallium/state_trackers/nine/surf

[Mesa-dev] [PATCH 5/7] st/nine: Process pending commands on Reset

2017-01-06 Thread Axel Davy
Some nine_state_* and nine_context_* functions used for Reset() require all pending commands are flushed. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c| 1 + src/gallium/state_trackers/nine/device9ex.c | 1 + src/gallium/state_tracker

Re: [Mesa-dev] [RFC] loader: Automatic PRIME detection

2017-01-03 Thread Axel Davy
On 02/01/2017 15:32, Thierry Reding wrote: On Tue, Dec 27, 2016 at 01:57:21PM +0100, Axel Davy wrote: Hi Thierry, Could you explain why in this situation default_fd would be a non-renderable device node ? This is preparatory work to allow drivers for split display/render setups to be tied

Re: [Mesa-dev] [PATCH] dri: don't load .drirc from $HOME

2017-01-07 Thread Axel Davy
clicking on "Detect Future Running Apps" and before clicking again on "Stop"), and change device_id to affect on which card to run in the future. On 07/01/2017 14:01, Axel Davy wrote: I find ~/.drirc useful. You can add hacks missing in system drirc, or use device_id to

Re: [Mesa-dev] [PATCH] dri: don't load .drirc from $HOME

2017-01-07 Thread Axel Davy
I find ~/.drirc useful. You can add hacks missing in system drirc, or use device_id to set the card to use for the given game for dual gpu systems. Nine also has some drirc settings that are not hacks, but user options. I think it's driconf that should be fixed. It shouldn't copy the system

Re: [Mesa-dev] [PATCH] dri: don't load .drirc from $HOME

2017-01-07 Thread Axel Davy
Expecting the user to use env vars it ok for power users, but not very user-friendly for newbies, or just people who don't like using the command line. And that's exactly these users who are likely to use something like driconf. Axel On 07/01/2017 14:23, Kai Wasserbäch wrote: Hey Marek,

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 16:57, Nicolai Hähnle wrote: On 18.12.2016 13:38, Axel Davy wrote: Currently there is no real specification on what is allowed for using different contexts in several threads, or when you map/unmap a resource in a thread, but uses it in another for draw calls. For the gallium

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 16:57, Nicolai Hähnle wrote: I'm happy to be convinced otherwise if I missed something, but using multiple contexts from different threads, or using Map/UnmapBuffer from one context but sourcing the buffer from draw calls in another context are all perfectly supported OpenGL

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 18:34, Nicolai Hähnle wrote: Then again, why not just call flush unconditionally? If the flush was unnecessary, it should be a no-op, and the driver should already have a fast path for that anyway. I just looked at radeon source with amdgpu, and it looks like to me a flush

[Mesa-dev] [PATCH] st/nine: Upload on secondary context for Draw*Up

2016-12-18 Thread Axel Davy
Avoid synchronization by using the secondary context for uploading the vertex data for Draw*Up. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/g

Re: [Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
On 18/12/2016 18:34, Nicolai Hähnle wrote: On 18.12.2016 17:37, Axel Davy wrote: On 18/12/2016 16:57, Nicolai Hähnle wrote: On 18.12.2016 13:38, Axel Davy wrote: Currently there is no real specification on what is allowed for using different contexts in several threads, or when you map/unmap

[Mesa-dev] [PATCH 84/84 v5] st/nine: Implement new buffer upload path

2016-12-18 Thread Axel Davy
content is copied to the new resource used. v5: flush for safety after unmap (not sure it is really required here, but safer to flush). Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/Makefile.sources | 2 + src/gallium/state_trackers/nine/buf

[Mesa-dev] [PATCH 2/3] radeon: enable PIPE_CAP_THREAD_SAFE

2016-12-18 Thread Axel Davy
r600 and radeonsi are thread safe. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/drivers/r600/r600_pipe.c | 2 +- src/gallium/drivers/radeonsi/si_pipe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/g

[Mesa-dev] [PATCH 3/3] gallium: add flag for transfers in a different context than draw calls

2016-12-18 Thread Axel Davy
Add cap PIPE_CAP_BUFFER_TRANSFER_EXTERNAL_CONTEXT. See commit for detailed description of the flag. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/docs/source/screen.rst | 9 + src/gallium/drivers/freedreno/freedreno_screen.c | 1 + src/gallium/driver

[Mesa-dev] [PATCH 1/3] gallium: add PIPE_CAP_THREAD_SAFE

2016-12-18 Thread Axel Davy
Add flag indicating if the driver is thread safe or not. See commit for documentation on the meaning of the flag. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/docs/source/screen.rst | 3 +++ src/gallium/drivers/freedreno/freedreno_screen.c | 1 + src/gallium/d

[Mesa-dev] [RFC] New gallium flags for using different contexts in several threads

2016-12-18 Thread Axel Davy
is allowed. Please comment. Yours, Axel Davy Axel Davy (3): gallium: add PIPE_CAP_THREAD_SAFE radeon: enable PIPE_CAP_THREAD_SAFE gallium: add flag for transfers in a different context than draw call src/gallium/docs/source/screen.rst | 12 src/gallium/drivers

[Mesa-dev] [PATCH 57/84 v2] st/nine: Implement Fast path for dynamic buffers and csmt

2016-12-18 Thread Axel Davy
-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/buffer9.c | 65 ++ src/gallium/state_trackers/nine/buffer9.h | 7 ++- src/gallium/state_trackers/nine/indexbuffer9.c | 2 + 3 files changed, 64 insertions(+), 10 deletions(-) diff --git

[Mesa-dev] [PATCH] st/nine: Call GetPipe for implicit pipe usages

2016-12-18 Thread Axel Davy
With csmt, every usage of the pipe in the main thread has to be protected by calling GetPipe. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c| 6 ++ src/gallium/state_trackers/nine/swapchain9.c | 2 ++ 2 files changed, 8 insertions(+) diff

[Mesa-dev] [PATCH 3/3 v2] gallium: add flag for transfers in a different context than draw calls

2016-12-18 Thread Axel Davy
Add cap PIPE_CAP_BUFFER_TRANSFER_EXTERNAL_CONTEXT. See commit for detailed description of the flag. v2: Explicit flush behaviour. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/docs/source/screen.rst | 11 +++ src/gallium/drivers/freedreno/freedreno_sc

[Mesa-dev] [PATCH 84/84 v6] st/nine: Implement new buffer upload path

2016-12-18 Thread Axel Davy
content is copied to the new resource used. v5: flush for safety after unmap (not sure it is really required here, but safer to flush). v6: Do not use the path if persistent coherent mapping is unavailable. Fix buffer creation flags. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/g

[Mesa-dev] [PATCH 2/2] gallium-docs: Add documentation for when using several contexts

2016-12-19 Thread Axel Davy
Add documentation to explicit what can be expected and what is allowed when using several contexts. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/docs/source/context.rst | 23 +++ 1 file changed, 23 insertions(+) diff --git a/src/gallium/docs/source/conte

[Mesa-dev] [PATCH 1/2] gallium-docs: Add documentation for threading requirements

2016-12-19 Thread Axel Davy
Add documentation for the requirements related to threading for screens and contexts. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/docs/source/screen.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/

[Mesa-dev] [RFCv2] New gallium documentation to explicit threading requirements

2016-12-19 Thread Axel Davy
This is a new RFC to replace "New gallium flags for using different contexts in several threads". Please comment. Yours, Axel Davy Axel Davy (2): gallium-docs: Add documentation for threading requirements gallium-docs: Add documentation for when using several contexts src/ga

Re: [Mesa-dev] [RFC] loader: Automatic PRIME detection

2016-12-27 Thread Axel Davy
. Yours, Axel Davy On 23/12/2016 21:36, Thierry Reding wrote: From: Thierry Reding <tred...@nvidia.com> If a device doesn't support rendering and support for PRIME isn't enabled via the DRI_PRIME environment variable or dri.conf, attempt to find a render node which can be used to o

[Mesa-dev] [PATCH 84/84 v7] st/nine: Implement new buffer upload path

2016-12-19 Thread Axel Davy
content is copied to the new resource used. v5: flush for safety after unmap (not sure it is really required here, but safer to flush). v6: Do not use the path if persistent coherent mapping is unavailable. Fix buffer creation flags. v7: Do not flush since it is not needed. Signed-off-by: Axel Davy

[Mesa-dev] [PATCH v2] st/nine: Upload on secondary context for Draw*Up

2016-12-19 Thread Axel Davy
Avoid synchronization by using the secondary context for uploading the vertex data for Draw*Up. v2: Rely on u_upload_mgr to use persistent coherent buffers. Do not flush. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c | 23 +++-

Re: [Mesa-dev] NaN behavior in GLSL (was Re: [PATCH] glsl: always do sqrt(abs()) and inversesqrt(abs()))

2017-01-14 Thread Axel Davy
On 13/01/2017 19:06, Nicolai Hähnle wrote: On 13.01.2017 18:53, Jason Ekstrand wrote: On Fri, Jan 13, 2017 at 8:43 AM, Marek Olšák > wrote: On Fri, Jan 13, 2017 at 5:25 PM, Jason Ekstrand >

[Mesa-dev] [PATCH] st/nine: Fix support for ps 1.4 dw and dz modifiers

2017-03-26 Thread Axel Davy
RCP was used incorrectly to support NINED3DSPSM_DW and NINED3DSPSM_DZ. src.x as used as input instead of src.w or src.z. Fixes: https://github.com/iXit/Mesa-3D/issues/271 Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/nine_shader.c | 4 ++-- 1 file chan

Re: [Mesa-dev] [PATCH] st/nine: Fix support for ps 1.4 dw and dz modifiers

2017-03-28 Thread Axel Davy
This probably should be CC Mesa 17 stable. I'll add it before push. On 26/03/2017 23:00, Axel Davy wrote: RCP was used incorrectly to support NINED3DSPSM_DW and NINED3DSPSM_DZ. src.x as used as input instead of src.w or src.z. Fixes: https://github.com/iXit/Mesa-3D/issues/271 Signed-off

[Mesa-dev] [PATCH 1/2] st/nine: Fix issue with surface and volume dtors and csmt

2017-03-15 Thread Axel Davy
g> Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/nine_csmt_helper.h | 2 +- src/gallium/state_trackers/nine/surface9.c | 10 -- src/gallium/state_trackers/nine/volume9.c | 10 -- 3 files changed, 17 insertions(+), 5 deletion

[Mesa-dev] [PATCH 2/2] st/nine: Use atomics for available_texture_mem

2017-03-15 Thread Axel Davy
Resource dtor can be executed in the worker thread. Use atomic to avoid threading safety issues. CC: "17.0" <mesa-sta...@lists.freedesktop.org> Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/resource9.c | 4 ++-- 1 file changed, 2 inse

[Mesa-dev] [PATCH] st/nine: Fix user vertex data uploader with csmt

2017-03-15 Thread Axel Davy
Fix regression caused by abb1c645c476b5dd289ce3efae0594f8796f9cf8 The patch made csmt use context.pipe instead of secondary_pipe, leading to thread safety issues. Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/gallium/state_trackers/nine/device9.c | 15 +++ src/g

Re: [Mesa-dev] [PATCH 1/2] util/disk_cache: support caches for multiple architectures

2017-03-02 Thread Axel Davy
On 02/03/2017 17:24, Marek Olšák wrote: On Thu, Mar 2, 2017 at 3:03 PM, Mike Lothian wrote: Is this because the 32bit and 64bit versions have slightly different time stamps used in the cache directory name? I was under the impression that the cache itself could be shared

Re: [Mesa-dev] [PATCH 2/2] st/nine: pass NULL to ureg_get_tokens()

2017-03-08 Thread Axel Davy
Reviewed-by: Axel Davy <axel.d...@ens.fr> On 03/03/2017 00:12, Timothy Arceri wrote: The number of tokens in never used and the pointer is NULL checked so just pass NULL. --- src/gallium/state_trackers/nine/nine_ff.c | 3 +-- src/gallium/state_trackers/nine/nine_shader.c | 3 +

Re: [Mesa-dev] [PATCH 5/5] dri3: Use SwapBuffer flips for back- and fake front

2017-06-28 Thread Axel Davy
tching may be incorrect relative to buffer size too. Yours, Axel Davy On 22/06/2017 12:42, Thomas Hellstrom wrote: Use flips for back- and fake front buffers. This might lead to fake front and real front being shared if the hardware is page-flip capable. In any case it will save a full-drawabl

Re: [Mesa-dev] [PATCH 5/5] dri3: Use SwapBuffer flips for back- and fake front

2017-06-28 Thread Axel Davy
On 28/06/2017 20:40, Thomas Hellstrom wrote: On 06/28/2017 07:36 PM, Axel Davy wrote: Hi, To my knowledge, this is invalid to switch the front fake buffer with the back buffer. The front buffer is supposed to take into account what the app draws with the xserver commands, etc

Re: [Mesa-dev] [PATCH 2/2] radeonsi: get rid of secondary input/output word

2017-05-10 Thread Axel Davy
Hi Nicolai and Marek, Gallium nine associates to every d3d usage/index a generic unique index. That should fit on a 16bits integer, but not for 32 values. We could fit in 32 indexes by recompiling vertex and pixel shaders to match, but one advantage of gallium nine is we don't need much

Re: [Mesa-dev] [PATCH 2/2] radeonsi: get rid of secondary input/output word

2017-05-10 Thread Axel Davy
On 10/05/2017 09:17, Nicolai Hähnle wrote: On 10.05.2017 08:58, Axel Davy wrote: Hi Nicolai and Marek, Gallium nine associates to every d3d usage/index a generic unique index. That should fit on a 16bits integer, but not for 32 values. Hold on, you're saying the semantic index could

Re: [Mesa-dev] [PATCH v3 0/4] Disable glthread if libX11 isn't thread-safe

2017-05-07 Thread Axel Davy
Hi, There should be very few X11 calls while rendering (basically only at the beginning or end of a frame). Why not just always run these calls in the main thread (and wait for glthread work to finish) ? That's basically what we do for gallium nine. Yours, Axel On 05/05/2017 17:37,

Re: [Mesa-dev] [PATCH 3/4] gallium: remove pipe_index_buffer and set_index_buffer

2017-04-30 Thread Axel Davy
(previously it would use index user buffer, but you remove support for it) Yours, Axel Davy On 29/04/2017 01:12, Marek Olšák wrote: diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 6390735..5dc24d6 100644 --- a/src/gallium/state_trackers

Re: [Mesa-dev] [PATCH 3/4] gallium: remove pipe_index_buffer and set_index_buffer

2017-04-30 Thread Axel Davy
Hi Marek, Here is probably the second mistake: I guess you should change info.start to take into account the offset of the index buffer. Yours, Axel Davy On 29/04/2017 01:12, Marek Olšák wrote: CSMT_ITEM_NO_WAIT(nine_context_draw_indexed_primitive, ARG_VAL

[Mesa-dev] [PATCH] st/nine: Fix a regression and syntax cleanup

2017-05-21 Thread Axel Davy
A few cleanups and in particular initializing properly the new pipe_draw_info fields. This should fix the regression caused by 330d0607ed60fd3edca192e54b4246310f06652f Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101088 Signed-off-by: Axel Davy <axel.d...@ens.fr> --- src/g

Re: [Mesa-dev] [PATCH 1/2] loader/dri3: Use client local back to front blit in copySubBuffer if available

2017-09-04 Thread Axel Davy
g a server copy if loader_dri3_blit_image fails doesn't seem a good choice, because what the server sees is the linear copy of the buffers. You'd have to add a blit from the linear copy to the tiled buffer (which won't work if local blit is not available). Yours, Axel Davy ___

Re: [Mesa-dev] [PATCH 1/2] loader/dri3: Use client local back to front blit in copySubBuffer if available

2017-09-05 Thread Axel Davy
Hi, On 05/09/2017 08:37, Thomas Hellstrom wrote: Hi! On 09/05/2017 07:36 AM, Axel Davy wrote: On 04/09/2017 14:27, Thomas Hellstrom wrote: The copySubBuffer functionality always attempted a server side blit from back to fake front if a fake front was present, and we weren't displaying

Re: [Mesa-dev] [PATCH 1/2] radeonsi: enable out-of-order rasterization when possible on VI and GFX9 dGPUs

2017-09-06 Thread Axel Davy
+* +* - depth-only rendering: +* + depth must force ordering Why depth must force ordering in depth only rendering ? If the depth func is PIPE_FUNC_LESS, PIPE_FUNC_GREATER or similar, you get min or max behaviour, thus the order shouldn't matter. Yours, Axel Davy

Re: [Mesa-dev] [PATCH] dri3: Stricter SBC wraparound handling

2018-05-16 Thread Axel Davy
Hi, Shouldn't this be fixed on the xserver or the ddx side, rather than in Mesa ? Yours, Axel Davy On 16/05/2018 11:10, Michel Dänzer wrote: From: Michel Dänzer <michel.daen...@amd.com> Prevents spuriously bumping the upper 32 bits of the SBC, which results in hangs with the modes

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for advanced MSAA

2018-05-21 Thread Axel Davy
used for coverage and enable EQAA/CSAA (in fact there is a similar way to advertise the feature for Nvidia and Amd). But maybe I misunderstood. Yours, Axel Davy On 18/05/2018 06:05, Marek Olšák wrote: From: Marek Olšák <marek.ol...@amd.com> The interface only uses general MSAA terms, s

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-01 Thread Axel Davy
< bitmask of PIPE_RESOURCE_FLAG_x */ /** * For planar images, ie. YUV EGLImage external, etc, pointer to the * next plane. */ struct pipe_resource *next; + struct pipe_screen *screen; /**< screen that this texture belongs to */ Out of curiosity, why

Re: [Mesa-dev] [PATCH 2/7] gallium: use PIPE_CAP_CONSTBUF0_FLAGS

2018-02-02 Thread Axel Davy
Hi Marek, Since the previous patch makes it mandatory to use the flags when required, I guess this patch should also add the neccessary changes to gallium nine. Yours, Axel Davy On 02/02/2018 21:48, Marek Olšák wrote: From: Marek Olšák <marek.ol...@amd.com> --- src/gallium/auxiliar

Re: [Mesa-dev] [PATCH 2/7] gallium: use PIPE_CAP_CONSTBUF0_FLAGS

2018-02-03 Thread Axel Davy
On 02/02/2018 23:41, Marek Olšák wrote: On Fri, Feb 2, 2018 at 10:44 PM, Axel Davy <axel.d...@normalesup.org> wrote: Hi Marek, Since the previous patch makes it mandatory to use the flags when required, I guess this patch should also add the neccessary changes to gallium nine. Nine use

Re: [Mesa-dev] New EGL extension in mesa and 'adriconf' packaging - EVoC'18

2018-08-14 Thread Axel Davy
for glXCreateContextAttribsARB. https://github.com/axeldavy/driCenter/blob/master/CardDetection/driCenterDete/glx_info.c Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 00/13] Implement INTEL_shader_atomic_float_minmax

2018-08-21 Thread Axel Davy
/documentation/intel-gfx-prm-osrc-bdw-vol07-3d_media_gpgpu_3.pdf But there is no mention of it for Skylake. Maybe it was supported, but dropped ? Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org

Re: [Mesa-dev] [PATCH 1/5] st/nine: Clamp RCP when 0*inf!=0

2018-09-09 Thread Axel Davy
On 9/9/18 9:35 PM, Ilia Mirkin wrote: On Sun, Sep 9, 2018 at 3:19 PM, Axel Davy wrote: For now clamp for all drivers. An ulterior optimization would be to avoid clamping for drivers with MUL_ZERO_WINS for the specific shader versions where NV or AMD don't clamp. Too bad. The whole point

[Mesa-dev] [PATCH 3/5] st/nine: Add parameter to start with bind

2018-09-09 Thread Axel Davy
Add a parameter to start new object with a bind instead of a refcount. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/iunknown.c | 18 +++--- src/gallium/state_trackers/nine/iunknown.h | 1 + src/gallium/state_trackers/nine/nine_helpers.h | 2 ++ 3 files

[Mesa-dev] [PATCH 2/5] st/nine: Use perspective correction for ps depth fog

2018-09-09 Thread Axel Davy
/Mesa-3D/issues/315 Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index 5b8ad3f161

[Mesa-dev] [PATCH 4/5] st/nine: Add new helper for object creation with bind

2018-09-09 Thread Axel Davy
Add a new helper to create objects starting with a bind count instead of a ref count. Signed-off-by: Axel Davy --- .../state_trackers/nine/nine_helpers.h| 26 +++ 1 file changed, 26 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_helpers.h b/src/gallium

[Mesa-dev] [PATCH 5/5] st/nine: Avoid RefToBind calls in ff

2018-09-09 Thread Axel Davy
is avoided by creating the shaders with a bind count directly. Fixes: https://github.com/iXit/Mesa-3D/issues/295 Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 2 -- src/gallium/state_trackers/nine/pixelshader9.c | 6 +- src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 1/5] st/nine: Clamp RCP when 0*inf!=0

2018-09-09 Thread Axel Davy
where NV or AMD don't clamp. LOG and RSQ being already clamped, this patch only clamps RCP. Fixes: https://github.com/iXit/Mesa-3D/issues/316 Signed-off-by: Axel Davy CC: --- src/gallium/state_trackers/nine/nine_shader.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion

Re: [Mesa-dev] [PATCH 1/5] st/nine: Clamp RCP when 0*inf!=0

2018-09-09 Thread Axel Davy
On 9/9/18 9:40 PM, Ilia Mirkin wrote: On Sun, Sep 9, 2018 at 3:19 PM, Axel Davy wrote: Tests showed Intel on windows does always clamp RCP, RSQ and LOG (thus preventing inf/nan generation), for all shader versions (some vendor behaviours vary with shader versions). By the way, this happens

Re: [Mesa-dev] [PATCH 0/8] Gallium & RadeonSI optimization for Ryzen CPUs

2018-09-06 Thread Axel Davy
the pinned cores if load would be better shared among cores. Yours, Axel Davy On 9/6/18 6:02 AM, Marek Olšák wrote: Hi, When the Ryzen CPUs were launched, they didn't perform very well in games, and it took a while before games were patched. Guess what, Mesa drivers have suffered from the same

Re: [Mesa-dev] [PATCH 0/8] Gallium & RadeonSI optimization for Ryzen CPUs

2018-09-06 Thread Axel Davy
threads to one L3, which can have 4 or 8 cores. Marek On Thu, Sep 6, 2018 at 5:22 AM, Axel Davy wrote: Hi Marek, Shouldn't this core pinning be handled by the kernel ? Else all multithreaded games (or applications) need an update. I also see a risk in applications handling the core pinning

Re: [Mesa-dev] [PATCH 1/2] st/nine: do not double-close the fd on teardown

2018-08-29 Thread Axel Davy
Hi Emil, This patch and the nine part of the second patch look fine. Reviewed-by: Axel Davy for them. Yours, Axel On 29/08/2018 19:13, Emil Velikov wrote: From: Emil Velikov As the newly introduced comment says: The pipe loader takes ownership of the fd Thus, there's no need to close

Re: [Mesa-dev] [GSOC] DriConf Replacement

2018-01-18 Thread Axel Davy
Hi all, Don't hesitate to recycle parts of my old try at DriConf Replacement: https://github.com/axeldavy/driCenter It had automatic detection of prime system and of the device_id. It detected also on which card apps run, and running apps. Yours, Axel On 18/01/2018 11:07, Michel Dänzer

Re: [Mesa-dev] [PATCH 1/5] st/nine: Clamp RCP when 0*inf!=0

2018-09-12 Thread Axel Davy
On 9/12/18 8:17 AM, Axel Davy wrote: The goal is to catch inf and -inf and replace them by FLT_MAX and -FLT_MAX. Without, the NaN would appear when doing mul or mad. Axel I small precision I want to add: This is not the only place clamping makes a difference. Indeed else MUL_ZERO_WINS

Re: [Mesa-dev] [PATCH 1/5] st/nine: Clamp RCP when 0*inf!=0

2018-09-12 Thread Axel Davy
On 9/11/18 11:28 PM, Roland Scheidegger wrote: Am 09.09.2018 um 21:19 schrieb Axel Davy: Tests done on several devices of all 3 vendors and of different generations showed that there are several ways of handling infs and NaN for d3d9. Tests showed Intel on windows does always clamp RCP, RSQ

[Mesa-dev] [PATCH 2/4] st/nine: Fix bad tracking of vs textures for NINESBT_ALL

2018-03-13 Thread Axel Davy
Stateblocks with NINESBT_ALL should track all textures. For better performance they have a faster path which copies all the required. This path was only tracking ps textures. Fixes: https://github.com/iXit/Mesa-3D/issues/303 Signed-off-by: Axel Davy <davyax...@gmail.com> CC: "17.3

[Mesa-dev] [PATCH 4/4] st/nine: Fix non inversible matrix check

2018-03-13 Thread Axel Davy
There was a missing absolute value when checking if the determinant was big enough. Fixes: https://github.com/iXit/Mesa-3D/issues/292 Signed-off-by: Axel Davy <davyax...@gmail.com> CC: "17.3 18.0" <mesa-sta...@lists.freedesktop.org> --- src/gallium/state_trackers/nine/ni

[Mesa-dev] [PATCH 1/4] st/nine: Fix bad tracking of bound vs textures

2018-03-13 Thread Axel Davy
An incorrect formula was used to compute bound_samplers_mask_vs. Since s is above always 8 for vs and the variable is encoded on 8 bits, it was always 0. This resulted in commiting the samplers every call when there was at least one texture read in the vs shader. Signed-off-by: Axel Davy <dav

[Mesa-dev] [PATCH 3/4] st/nine: Fixes warning about implicit conversion

2018-03-13 Thread Axel Davy
Makes the conversion explicit. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=102542 Signed-off-by: Axel Davy <davyax...@gmail.com> CC: "17.3 18.0" <mesa-sta...@lists.freedesktop.org> --- src/gallium/state_trackers/nine/nine_ff.c | 2 +- 1 file changed, 1 insertion(+

[Mesa-dev] [PATCH] st/nine: Do not use scratch for face register

2018-04-06 Thread Axel Davy
Scratch registers are reused every instructions. Since vFace is reused, a new temporary register should be used. Fixes: https://github.com/iXit/Mesa-3D/issues/311 Signed-off-by: Axel Davy <davyax...@gmail.com> CC: "17.3 18.0" <mesa-sta...@lists.freedesktop.org> --- src/

Re: [Mesa-dev] Request for new Components in bugzilla

2018-04-13 Thread Axel Davy
Hi, It would be great to have something for the gallium state trackers as well. galliumnine, vaapi, etc Yours, Axel On 13/04/2018 09:00, Timothy Arceri wrote: Wasn't sure who to bug about this so I've sent it here. I've spent a little big of time lately fixing a few bugs and cleaning out

[Mesa-dev] [PATCH] st/nine: Declare lighting consts for ff shaders

2018-04-02 Thread Axel Davy
The lighting constants were not declared previously, but were accessed with indirect addressing, which is illegal. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=105442 Signed-off-by: Axel Davy <davyax...@gmail.com> CC: "17.3 18.0" <mesa-sta...@lists.freedesktop.or

[Mesa-dev] [PATCH 09/12] st/nine: Enable shadow mapping for ps 1.X

2018-10-24 Thread Axel Davy
We didn't implement shadow textures for ps 1.X, assuming the case couldn't happen... Well it does. Fixes: https://github.com/iXit/Mesa-3D/issues/261 Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_shader.c | 8 +--- src/gallium/state_trackers/nine/pixelshader9.c | 2

[Mesa-dev] [PATCH 04/12] st/nine: Mark transform matrices dirty for D3DSBT_ALL

2018-10-24 Thread Axel Davy
D3DSBT_ALL stateblocks capture the transform matrices. Fixes some d3d test programs not displaying properly. Signed-off-by: Axel Davy --- Notice without the previous patch, D3DSBT_ALL stateblocks would send hundreds of identity matrices to the context every apply. src/gallium/state_trackers

[Mesa-dev] [PATCH 12/12] st/nine: Handle window resize when a presentation buffer is used

2018-10-24 Thread Axel Davy
. ID3DPresent_GetWindowInfo is a function available with D3DPresent v1.0, and thus we don't need to check if the function is available. The function had been introduced to implement this very feature. Signed-off-by: Axel Davy --- A presentation buffer is used when multisampling is used or when

[Mesa-dev] [PATCH 11/12] d3dadapter: Fix wrong naming in header file

2018-10-24 Thread Axel Davy
GetWindowInfo used to be GetWindowSize before gallium nine was merged. A left-over remained... Signed-off-by: Axel Davy --- include/d3dadapter/present.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/d3dadapter/present.h b/include/d3dadapter/present.h index

[Mesa-dev] [PATCH 07/12] st/nine: Fix aliasing states for stateblocks

2018-10-24 Thread Axel Davy
. Fixes: https://github.com/iXit/Mesa-3D/issues/320 Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 461b212995b

[Mesa-dev] [PATCH 05/12] st/nine: Capture also default matrices for D3DSBT_ALL

2018-10-24 Thread Axel Davy
We avoid allocating space for never unused matrices. However we must do as if we had captured them. Thus when a D3DSBT_ALL stateblock apply has fewer matrices than device state, allocate the default matrices for the stateblock before applying. Signed-off-by: Axel Davy --- src/gallium

[Mesa-dev] [PATCH 06/12] st/nine: Never update device changed.* fields

2018-10-24 Thread Axel Davy
The device state changed.* field are never used. These fields are used only for stateblocks. Avoid setting them at all for clarity. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c | 4 +- src/gallium/state_trackers/nine/nine_state.c | 7 +- src/gallium

[Mesa-dev] [PATCH 03/12] st/nine: Don't update unused world matrices

2018-10-24 Thread Axel Davy
to send the updated values for the unreachable matrices. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_state.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index c9901209189

[Mesa-dev] [PATCH 02/12] st/nine: Remove two unused states.

2018-10-24 Thread Axel Davy
NINE_STATE_MATERIAL was used incorrectly at one location. Replace it with the correct state. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/device9.c| 2 +- src/gallium/state_trackers/nine/nine_state.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src

[Mesa-dev] [PATCH 08/12] st/nine: Do not set unused states for stateblocks

2018-10-24 Thread Axel Davy
A lot of these states are used only for the context, and are unused for stateblocks (which just uses the changed.* fields instead for a lot of them). Signed-off-by: Axel Davy --- Before we implemented csmt, which separated the 'context' states and the application visible states + the stateblocks

[Mesa-dev] [PATCH 10/12] st/nine: Reduce MaxSimultaneousTextures to 8

2018-10-24 Thread Axel Davy
Windows drivers don't set this flag (which affects ff) to more than 8. Do the same in case some games check for 8. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/adapter9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/nine

[Mesa-dev] [PATCH 01/12] st/nine: Remove commented nine_context_apply_stateblock

2018-10-24 Thread Axel Davy
At some point the project was to adapt the commented version to csmt. The csmt rework enabled to fix some state aliasing issues between stateblocks and internal state updates. The commented version needs a lot of work to work with that. Just drop it. Signed-off-by: Axel Davy --- src/gallium

[Mesa-dev] [PATCH v2] st/nine: Reduce MaxSimultaneousTextures to 8

2018-10-24 Thread Axel Davy
requirements. Signed-off-by: Axel Davy --- Thanks to our tester iive who spotted the issue. src/gallium/state_trackers/nine/adapter9.c | 9 - src/gallium/state_trackers/nine/device9.c | 8 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/gallium/state_trackers

[Mesa-dev] [PATCH 0/2] Update on thread_submit

2018-11-10 Thread Axel Davy
/141ba5cf73029029a5a0bd2cdcfd5f9f9ab7ee7b Axel Davy (2): st/nine: Allow 'triple buffering' with thread_submit st/nine: Remove thread_submit warning src/gallium/state_trackers/nine/swapchain9.c | 66 +++- src/gallium/state_trackers/nine/swapchain9.h | 1 + src/gallium/targets

[Mesa-dev] [PATCH 2/2] st/nine: Remove thread_submit warning

2018-11-10 Thread Axel Davy
thread_submit can be useful even without DRI_PRIME, as it can help avoid missed pageflips. Signed-off-by: Axel Davy --- src/gallium/targets/d3dadapter9/drm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c

[Mesa-dev] [PATCH 1/2] st/nine: Allow 'triple buffering' with thread_submit

2018-11-10 Thread Axel Davy
The path allowing triple buffering behaviour wasn't implemented yet for thread_submit Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/swapchain9.c | 66 +++- src/gallium/state_trackers/nine/swapchain9.h | 1 + 2 files changed, 50 insertions(+), 17 deletions

Re: [Mesa-dev] [PATCH v2 2/5] gallium: Add new PIPE_CAP_MULTISAMPLED_RENDER_TO_TEXTURE

2018-11-06 Thread Axel Davy
+* FramebufferTexture2DMultisampleEXT. +*/ + unsigned nr_samples:8; + union pipe_surface_desc u; }; Yours, Axel Davy ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/3] st/nine: fix stack corruption due to ABI mismatch

2018-11-06 Thread Axel Davy
Hi, The three patches seem ok. Thanks, Reviewed-by: Axel Davy I assume you don't have push rights. I will push in a few days if nobody complains. Yours, Axel Davy On 06/11/2018 09:27, Andre Heider wrote: This fixes various crashes and hangs when using nine's 'thread_submit' feature

Re: [Mesa-dev] [PATCH] st/mesa: disable L3 thread pinning

2018-11-12 Thread Axel Davy
Is there any replacement plan with a new feature ? Axel On 12/11/2018 21:45, Marek Olšák wrote: From: Marek Olšák This implementation can have massive drawbacks. Cc: 18.3 --- src/mesa/state_tracker/st_manager.c | 9 - 1 file changed, 9 deletions(-) diff --git

<    5   6   7   8   9   10   11   >