Re: [Mesa-dev] [PATCH 07/15] clover/spirv: Add functions for parsing arguments, linking programs, etc.

2019-05-11 Thread Francisco Jerez
Karol Herbst writes: > From: Pierre Moreau > > v2 (Karol Herbst): > silence warnings about unhandled enum values > --- > .../clover/spirv/invocation.cpp | 598 ++ > .../clover/spirv/invocation.hpp | 12 + > 2 files changed, 610 insertions(+) > >

[Mesa-dev] [Bug 108596] [RADV] Implement a HUD for monitoring GPU/CPU loads, FPS, temperature and more

2019-05-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108596 jacobbrett+f...@jacobbrett.id.au changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH 06/15] clover/spirv: Add functions for validating SPIR-V binaries

2019-05-11 Thread Francisco Jerez
Karol Herbst writes: > From: Pierre Moreau > > Changes since: > * v12: remove autotools (Karol Herbst) > * v11: Fix compilation error introduced in v11. > * v10: > - Reuse format_validation_msg in is_valid_spirv. > - Remove LVL2STR macro in format_validation_msg. > * v9: Add

Re: [Mesa-dev] [PATCH 05/15] meson: Check for SPIRV-Tools and llvm-spirv

2019-05-11 Thread Francisco Jerez
Karol Herbst writes: > From: Pierre Moreau > > Changes since: > * v11 (Karol Herbst): > - only set new defines for clover to speed up recompilation > - remove autotools > * v10: > - Add a new flag (`--enable-opencl-spirv` for autotools, and > `-Dopencl-spirv=true` for meson) for

[Mesa-dev] [Bug 99553] Tracker bug for runnning OpenCL applications on Clover

2019-05-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99553 Jan Vesely changed: What|Removed |Added Depends on||104604 Referenced Bugs:

[Mesa-dev] [Bug 99553] Tracker bug for runnning OpenCL applications on Clover

2019-05-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99553 Jan Vesely changed: What|Removed |Added Depends on||99312 Referenced Bugs:

Re: [Mesa-dev] [PATCH 11/15] rename pipe_llvm_program_header to pipe_binary_program_header

2019-05-11 Thread Francisco Jerez
Karol Herbst writes: > We want to use it for other formats as well, so give it a more generic name > > Signed-off-by: Karol Herbst > Reviewed-by: Francisco Jerez > --- > src/gallium/drivers/r600/evergreen_compute.c | 2 +- > src/gallium/drivers/radeonsi/si_compute.c

Re: [Mesa-dev] [PATCH 2/2] st/mesa: enable the ST_DEBUG env var in release and debugoptimized builds

2019-05-11 Thread Kenneth Graunke
On Thursday, May 9, 2019 10:21:16 PM PDT Marek Olšák wrote: > From: Marek Olšák > > Useful for dumping shaders. > --- > src/mesa/state_tracker/st_debug.c | 4 > src/mesa/state_tracker/st_debug.h | 6 -- > 2 files changed, 10 deletions(-) > > diff --git

Re: [Mesa-dev] [RFC PATCH] nir: call nir_validate_shader in debug but not debugoptimized builds

2019-05-11 Thread Jason Ekstrand
Also, my preferred solution to this problem is to just make nir_validate faster: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/862 On Fri, May 10, 2019 at 9:47 PM Jason Ekstrand wrote: > Please, no. You could make a case for changing the default in > debugoptimized builds (which I

[Mesa-dev] [PATCH 14/15] clover: add support for consuming spirv

2019-05-11 Thread Karol Herbst
v2: rework arguments to compiler::compile_program add assert to device::ir_format Signed-off-by: Karol Herbst Reviewed-by: Francisco Jerez --- src/gallium/include/pipe/p_defines.h | 1 + .../state_trackers/clover/core/compiler.hpp | 68 +++

[Mesa-dev] [PATCH 11/15] rename pipe_llvm_program_header to pipe_binary_program_header

2019-05-11 Thread Karol Herbst
We want to use it for other formats as well, so give it a more generic name Signed-off-by: Karol Herbst Reviewed-by: Francisco Jerez --- src/gallium/drivers/r600/evergreen_compute.c | 2 +- src/gallium/drivers/radeonsi/si_compute.c | 2 +-

[Mesa-dev] [PATCH 04/15] nv50/ir/nir: implement load/store_global

2019-05-11 Thread Karol Herbst
required by OpenCL v2: fix setting globalAccess Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 36 +++ 1 file changed, 36 insertions(+) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 12/15] nir/spirv: add spirv_to_nir_cl

2019-05-11 Thread Karol Herbst
Signed-off-by: Karol Herbst --- src/compiler/Makefile.sources| 1 + src/compiler/nir/meson.build | 1 + src/compiler/spirv/nir_spirv.h | 4 + src/compiler/spirv/spirv_to_nir_cl.c | 124 +++ 4 files changed, 130 insertions(+) create mode 100644

[Mesa-dev] [PATCH 08/15] clover/llvm: Add options for dumping SPIR-V binaries

2019-05-11 Thread Karol Herbst
From: Pierre Moreau Reviewed-by: Karol Herbst --- .../state_trackers/clover/llvm/util.hpp | 4 ++- .../clover/spirv/invocation.cpp | 30 +++ .../clover/spirv/invocation.hpp | 4 +++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 03/15] nv50/ir/nir: handle kernel inputs

2019-05-11 Thread Karol Herbst
required by OpenCL Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 21 --- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 00/15] Clover: support CL through SPIR-V

2019-05-11 Thread Karol Herbst
MR on gitlab: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/563 Due to some nouveau and other random bits I thought it makes sense to post this series on the Mailing List as well. In short, this series adds support for providing OpenCL through spirv by using the spirv-llvm-translator

[Mesa-dev] [PATCH 15/15] nvc0: expose spirv support

2019-05-11 Thread Karol Herbst
required for OpenCL Signed-off-by: Karol Herbst --- src/gallium/drivers/nouveau/nouveau_screen.c | 1 + src/gallium/drivers/nouveau/nouveau_screen.h | 1 + src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 14 +- src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 2 ++

[Mesa-dev] [PATCH 13/15] gallium: add entry_point field to pipe_compute_state

2019-05-11 Thread Karol Herbst
for binaries containing multiple entry_points the driver can if this field is set, optimize the binary in order to save memory. For spir-v it can be used to compile against a specific entry_point. It is guarenteed that the pc field can be ignored by the driver later if it decides to do so.

[Mesa-dev] [PATCH 09/15] clover/llvm: Add functions for compiling from source to SPIR-V

2019-05-11 Thread Karol Herbst
From: Pierre Moreau Reviewed-by: Karol Herbst --- .../state_trackers/clover/llvm/invocation.cpp | 100 +++--- .../state_trackers/clover/llvm/invocation.hpp | 8 ++ src/gallium/state_trackers/clover/meson.build | 2 +- 3 files changed, 92 insertions(+), 18 deletions(-) diff

[Mesa-dev] [PATCH 07/15] clover/spirv: Add functions for parsing arguments, linking programs, etc.

2019-05-11 Thread Karol Herbst
From: Pierre Moreau v2 (Karol Herbst): silence warnings about unhandled enum values --- .../clover/spirv/invocation.cpp | 598 ++ .../clover/spirv/invocation.hpp | 12 + 2 files changed, 610 insertions(+) diff --git

[Mesa-dev] [PATCH 06/15] clover/spirv: Add functions for validating SPIR-V binaries

2019-05-11 Thread Karol Herbst
From: Pierre Moreau Changes since: * v12: remove autotools (Karol Herbst) * v11: Fix compilation error introduced in v11. * v10: - Reuse format_validation_msg in is_valid_spirv. - Remove LVL2STR macro in format_validation_msg. * v9: Add `clover_cpp_std` to the overrides of the `libclspirv`

[Mesa-dev] [PATCH 05/15] meson: Check for SPIRV-Tools and llvm-spirv

2019-05-11 Thread Karol Herbst
From: Pierre Moreau Changes since: * v11 (Karol Herbst): - only set new defines for clover to speed up recompilation - remove autotools * v10: - Add a new flag (`--enable-opencl-spirv` for autotools, and `-Dopencl-spirv=true` for meson) for enabling SPIR-V support in clover, and

[Mesa-dev] [PATCH 10/15] gallium: add blob field to pipe_llvm_program_header

2019-05-11 Thread Karol Herbst
makes it easier to consume a IR_NATIVE binary Signed-off-by: Karol Herbst Reviewed-by: Francisco Jerez --- src/gallium/drivers/r600/evergreen_compute.c | 4 +--- src/gallium/drivers/radeonsi/si_compute.c | 4 +--- src/gallium/include/pipe/p_state.h |

[Mesa-dev] [PATCH 01/15] nv50/ir/nir: parse system values first and stop for compute shaders

2019-05-11 Thread Karol Herbst
required by OpenCL Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- .../nouveau/codegen/nv50_ir_from_nir.cpp | 61 ++- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [PATCH 02/15] nv50/ir/nir: don't assert on !main

2019-05-11 Thread Karol Herbst
required for OpenCL Signed-off-by: Karol Herbst Reviewed-by: Pierre Moreau --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

[Mesa-dev] [Bug 110663] threads_posix.h:96: undefined reference to `pthread_once'

2019-05-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110663 --- Comment #1 from Eric Engestrom --- This should fix your issue, but I haven't had time to dive in and see exactly why quad-tex uses threads. 8< diff --git a/src/gallium/tests/trivial/meson.build

[Mesa-dev] [Bug 110345] Unrecoverable GPU crash with DiRT 4

2019-05-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110345 --- Comment #23 from Thomas Rohloff --- Created attachment 144232 --> https://bugs.freedesktop.org/attachment.cgi?id=144232=edit RADV_DEBUG=info vulkaninfo (In reply to Samuel Pitoiset from comment #22) > Created attachment 144219 [details]