If creating a library, do not allow non-compiled object in it, as
executables are not allowed, and libraries would make it really hard to
enforce the "-enable-link-options" flag.
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/
From the OpenCL 1.2 Specification, Section 5.6.2 (about clBuildProgram:
> If program is created with clCreateProgramWithBinary, then the
> program binary must be an executable binary (not a compiled binary or
> library).
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
-
On 2018-01-23 — 14:08, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
>
> Same comment as Karol, let's update the header instead.
I will do that. Though that won’t impact th
On 2018-01-23 — 14:04, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > If creating a library, do not allow non-compiled object in it, as
> > executables are not allowed, and libraries would make it really hard to
> > enforce t
On 2018-01-23 — 14:03, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > From the OpenCL 1.2 Specification, Section 5.6.2 (about clBuildProgram:
> >
> >> If program is created with clCreateProgramWithBinary, then the
> >> p
On 2018-01-23 — 14:03, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
> > ---
> > src/gallium/state_trackers/clover/core/device.cpp | 11 +++
> > src/gallium/
On 2018-01-23 — 14:06, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
> > ---
> > .../state_trackers/clover/spirv/spirv.hpp11| 997
> > +++
On 2018-01-23 — 15:16, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > On 2018-01-23 — 14:04, Francisco Jerez wrote:
> >> Pierre Moreau <pierre.mor...@free.fr> writes:
> >>
> >> > If creating a library, do not
On 2018-01-23 — 14:20, Jan Vesely wrote:
> On Tue, 2018-01-23 at 01:33 +0100, Pierre Moreau wrote:
> > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
>
> do these tools handle the original SPIR format as well? can this be
> used to support cl_khr_spir?
>
>
On 2018-01-23 — 14:07, Jan Vesely wrote:
> On Tue, 2018-01-23 at 01:33 +0100, Pierre Moreau wrote:
> > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
> > ---
> > src/gallium/include/pipe/p_defines.h | 1 +
> > 1 file changed, 1 insertion(+)
> >
&g
On 2018-01-23 — 13:33, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > On 2018-01-23 — 14:07, Jan Vesely wrote:
> >> On Tue, 2018-01-23 at 01:33 +0100, Pierre Moreau wrote:
> >> > Signed-off-by: Pierre Moreau <pierre.mor.
On 2018-01-23 — 14:08, Francisco Jerez wrote:
> Pierre Moreau <pierre.mor...@free.fr> writes:
>
> > Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
> > ---
> > src/gallium/state_trackers/clover/core/program.cpp | 22
> > +
On 2018-01-23 — 14:02, Francisco Jerez wrote:
> Karol Herbst <kher...@redhat.com> writes:
>
> > there seem to be some patches missing?
> >
> > On Tue, Jan 23, 2018 at 1:33 AM, Pierre Moreau <pierre.mor...@free.fr>
> > wrote:
> >> Hello,
> &
From the OpenCL 1.2 Specification, Section 5.6.2 (about clBuildProgram):
> If program is created with clCreateProgramWithBinary, then the
> program binary must be an executable binary (not a compiled binary or
> library).
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by
ed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4: drop the modification to the tgsi backend, as already dropped
(Aaron Watry)
src/gallium/state_trackers/clover/core/module.cpp | 1 +
src/gallium/state_trackers/clover/core/module.hpp
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4:
* validate_build_common no longer returns a list of devices (Francisco
Jerez);
* Dropped duplicate checks (Francisco Jerez).
src/gallium/state_trackers/clover/api/program.cpp
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/core/device.cpp | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/device.cpp
b
If creating a library, do not allow non-compiled object in it, as
executables are not allowed, and libraries would make it really hard to
enforce the "-enable-link-options" flag.
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
lover: Implement clCreateProgramWithIL from OpenCL 2.1”
Karol Herbst (1):
clover: update ICD table to support everything up to 2.2
Pierre Moreau (19):
include/CL: Update to the latest OpenCL 2.2 headers
clover/api: Fix tab indentation to spaces
clover: Remove the TGSI backend as unused
clove
Acked-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Karol Herbst <kher...@redhat.com>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/device.cpp | 2 +-
1 file changed, 1
From: Karol Herbst <kher...@redhat.com>
v2: add more prototypes
Signed-off-by: Karol Herbst <kher...@redhat.com>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Reviewed-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/dispatch.cpp
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/device.cpp | 11 +--
src/gallium/state_trackers/clover/core/device.cpp | 14 +
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/Makefile.am | 11 +-
src/gallium/state_trackers/clover/Makefile.sources | 4 -
src/gallium/state_trackers/clover/core/program.cpp | 13 +--
src/gallium/state_trackers/clover/meson.build
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
v3:
* Dropped supported_irs() (Francisco Jerez)
* Changed supports_ir() argument type to `enum pipe_shader_ir` (Francisco
Jerez)
src/gallium/state_trackers
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
v3: Remove the const from the length argument of clCreateProgramWithIL
src/gallium/state_trackers/clover/api/dispatch.cpp | 2 +-
src/gallium/state_trackers/clover/api/program.cpp | 8
2 files changed, 9 inse
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
include/CL/cl_ext.h | 37 +
1 file changed, 37 insertions(+)
diff --git a/include/CL/cl_ext.h b/include/CL/cl_ext.h
index 5078e8f45f..5ea49
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4: guard parts of the code behind SPIR-V support
v3:
* Remove the const on the length argument to CreateProgramWithILKHR
(Francisco
Jerez);
* Capitalize comment (Francisco Jerez);
*
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4:
* make SPIRV-Tools and llvm-spirv optional (Francisco Jerez);
* bump requirement for llvm-spirv to version 0.2
v3:
* Bump the required version of SPIRV-Tools to the latest release;
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4:
* guard the SPIR-V code;
* use an istringstream instead of a bidirectional stringstream, and
initialise
it directly (Francisco Jerez).
.../state_trackers/clover/llvm/invocation.cpp
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4: Use the core define instead of the extension one (Karol
Herbst)
v3: Throw an exception if the cl_khr_il_program extension is not supported
(Francisco Jerez)
src/gallium/state_trackers/clov
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4: do not advertise SPIR-V support if CLOVER_ALLOW_SPIRV is not
defined
v3: Advertise cl_khr_il_program if if the device support NATIVE as IR
src/gallium/state_trackers/clover/api/platform.cpp | 2 +
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/platform.cpp | 4 ++--
src/gallium/state_trackers/clover/core/platform.cpp | 5
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Notes:
Changes in v4: Use the core define instead of the extension one (Karol
Herbst)
v3: Switch from using a pointer attribute to a vector (Francisco Jerez)
src/gallium/state_trackers/clover/api/program.cpp | 7 +++
On 2018-02-20 — 22:02, Karol Herbst wrote:
> v2: add constant_folding
>
> Signed-off-by: Karol Herbst
> ---
> .../drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 40
> ++
> 1 file changed, 40 insertions(+)
>
> diff --git
On 2018-02-20 — 22:02, Karol Herbst wrote:
> v4: treat imul as unsigned
> v5: remove pointless !!
>
> Signed-off-by: Karol Herbst
> ---
> .../drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 117
> +
> 1 file changed, 117 insertions(+)
>
> diff --git
Sorry, partially forgot about it. I’ll look at it over the weekend, as I don’t
have time before. :-/
Pierre
signature.asc
Description: PGP signature
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
If creating a library, do not allow non-compiled object in it, as
executables are not allowed, and libraries would make it really hard to
enforce the "-enable-link-options" flag.
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
v6: Update Makefile.am to add to libclllvm its new llvm-spirv dependency.
(Karol Herbst)
src/gallium/state_trackers/clover/Makefile.am | 6 -
.../state_trackers/clover/llvm/invocation.cpp
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
This patch was not modified, but no longer applied cleanly after modifying
“clover/llvm: Allow translating from SPIR-V to LLVM IR” in the v6.
src/gallium/state_trackers/clover/Makefile.am | 15 ++-
src/gallium/state_trackers/
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
v6:
* Drop the `valid_devs` argument to `validate_build_common()` (Francisco Jerez)
* Change `clLinkProgram()` to initialise `prog`’s devices prior to calling
`validate_build_common()`.
src/gallium/state_trackers/clover/api/progr
From: Karol Herbst <kher...@redhat.com>
Reviewed-by: Pierre Moreau <pierre.mor...@free.fr>
Signed-off-by: Karol Herbst <kher...@redhat.com>
---
v5: Fix return type of clCreateCommandQueueWithProperties
v2: add more prototypes
src/gallium/state_trackers/clover/api/dispatch.c
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/Makefile.am | 11 +-
src/gallium/state_trackers/clover/Makefile.sources | 4 -
src/gallium/state_trackers/clover/core/program.cpp |
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/device.cpp | 11 +--
src/gallium/state_trackers/clover/core/device.cpp | 14 +
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
.../state_trackers/clover/llvm/invocation.cpp | 29 ++
.../state_trackers/clover/llvm/invocation.hpp | 6 +
src/gallium/state_trackers/clover/meson.build | 2 +-
3 files changed, 36 insertions
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/platform.cpp | 4 ++--
src/gallium/state_trackers/clover/core/platform.cpp | 5
ed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/core/module.cpp | 1 +
src/gallium/state_trackers/clover/core/module.hpp | 13 +
src/gallium/state_trackers/clover/llvm/codegen/bitcode.cpp | 3 ++-
src/gallium/state_trackers
If creating a library, do not allow non-compiled object in it, as
executables are not allowed, and libraries would make it really hard to
enforce the "-enable-link-options" flag.
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/core/device.cpp | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/gall
Acked-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-by: Karol Herbst <kher...@redhat.com>
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/device.cpp | 2 +-
1 file changed, 1
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
include/CL/cl_ext.h | 37 +
1 file changed, 37 insertions(+)
diff --git a/include/CL/cl_ext.h b/include/CL/cl_ext.h
index 5078e8f45f..5ea49
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/program.cpp | 23 +-
src/gallium/state_trackers/clover/core/program.cpp | 3 ++-
2 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/src/gallium/state_trackers/
for:
* Patch 07: “clover/api: Rework the validation of devices for building”;
* Patch 14: “clover/llvm: Allow translating from SPIR-V to LLVM IR”;
* Patch 18: “clover: Handle CL_PROGRAM_IL in clGetProgramInfo”
Karol Herbst (1):
clover: update ICD table to support everything up to 2.2
Pierre Moreau
From the OpenCL 1.2 Specification, Section 5.6.2 (about clBuildProgram):
> If program is created with clCreateProgramWithBinary, then the
> program binary must be an executable binary (not a compiled binary or
> library).
Reviewed-by: Aaron Watry <awa...@gmail.com>
Signed-off-by
Reviewed-by: Aaron Watry <awa...@gmail.com>
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/core/device.cpp | 6 ++
src/gallium/state_trackers/clover/core/device.hpp | 1 +
2 files cha
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Changes in v5:
* Use is_binary_spirv and is_valid_spirv from the SPIR-V backend;
* Drop the SPIRV-Tools and llvm-spirv dependencies on clover.
src/gallium/state_trackers/clover/api/dispatch.hpp | 4 ++
src/gallium/state_trackers/
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/platform.cpp | 2 ++
src/gallium/state_trackers/clover/core/device.cpp | 8 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
New in v5
src/gallium/state_trackers/clover/Makefile.am | 15 ++-
src/gallium/state_trackers/clover/Makefile.sources | 4 +
src/gallium/state_trackers/clover/meson.build | 10 +-
.../state_trackers/clover/spirv/invocati
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/dispatch.cpp | 2 +-
src/gallium/state_trackers/clover/api/program.cpp | 8
2 files changed, 9 insertions(+), 1 deletion(-)
diff
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/program.cpp | 7 +++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/state_trackers/clover/api/program.cpp
b/src/gallium/state_trackers/clover/api/program.cpp
index 3c7e56efb9..851a
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
Changes in v5:
* Add a comment saying where to find llvm-spirv (Karol Herbst).
configure.ac | 18 ++
meson.build | 8
2 files changed, 26 insertions(+)
Reviewed-by: Karol Herbst <kher...@redhat.com>
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr>
---
src/gallium/state_trackers/clover/api/device.cpp | 7 +++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/state_trackers/clover/api/device.cpp
b/src/gallium/state_tra
1+ use the version specified
> 2) If not, use the highest 1.x version that the device supports
>
> Curiously, there is no valid value for -cl-std=CL1.0
>
> Validates requested cl-std against device_clc_version
>
> Signed-off-by: Aaron Watry <awa...@gmail.com>
> C
Oops, sorry.
Reviewed-by: Pierre Moreau <pierre.mor...@free.fr>
Thanks again for the series!
Pierre
On 2018-03-20 — 20:23, Aaron Watry wrote:
> ping.
>
> This is the last of the series that still needs review.
>
> --Aaron
>
> On Thu, Mar 1, 2018 at 1:39 PM, Aa
On 2018-03-01 — 22:43, Pierre Moreau wrote:
> On 2018-03-01 — 13:39, Aaron Watry wrote:
> > Used to calculate the default CLC language version based on the --cl-std in
> > build args
> > and the device capabilities.
> >
> > According to section 5.8.4.5 of the 2.0
1+ use the version specified
> 2) If not, use the highest 1.x version that the device supports
>
> Curiously, there is no valid value for -cl-std=CL1.0
>
> Validates requested cl-std against device_clc_version
>
> Signed-off-by: Aaron Watry <awa...@gmail.com>
> C
the patches are squashed together or not, but with Jan’s
comment about the unused variable in patch 2 addressed, patches 1, 2 and 3 are
Reviewed-by: Pierre Moreau <pierre.mor...@free.fr>
Thank you for resending an updated version of this series.
Pierre
On 2018-03-01 — 13:39, Aaron Watry
Reviewed-by: Pierre Moreau <pierre.mor...@free.fr>
On 2018-03-01 — 13:44, Aaron Watry wrote:
> Useful for testing API, builtin library, and device completeness of
> not-yet-supported versions.
>
> Signed-off-by: Aaron Watry <awa...@gmail.com>
> Cc: Pierre Moreau <pi
With Francisco’s comments addressed,
Reviewed-by: Pierre Moreau <pierre.mor...@free.fr>
On 2018-03-04 — 09:13, Aaron Watry wrote:
> Useful for testing API, builtin library, and device completeness of
> not-yet-supported versions.
>
> Signed-off-by: Aaron Watry <awa...@gmail
in “configure.ac” when using
autotools.
Signed-off-by: Pierre Moreau
---
I am not that familiar with Meson yet and couldn’t found a better way to
extract the version numbers from the version string than splitting the
version string on the ‘s’ character.
src/gallium/state_trackers/clover/meson.build
;
- Add a dependency on llvm-spirv.
Signed-off-by: Pierre Moreau
---
Dylan, I dropped your Rb since the modification were substantial, even though
you were the one asking for them. I could easily have gotten them wrong. :-)
configure.ac | 38 ++
meson.build
On 2019-01-18 — 16:04, Francisco Jerez wrote:
[snip]
> > diff --git a/src/gallium/state_trackers/clover/core/module.hpp
> > b/src/gallium/state_trackers/clover/core/module.hpp
> > index 2ddd26426fb..ff7e9b6234a 100644
> > --- a/src/gallium/state_trackers/clover/core/module.hpp
> > +++
Thank you for the review.
Do you think you’ll have the opportunity to have a look at patches 13 and 16?
(Patch 15 is also missing a review, but I found some improvements to be made
there.)
Thanks,
Pierre
On 2019-01-18 — 15:52, Francisco Jerez wrote:
> Pierre Moreau writes:
>
> &
translating from
SPIR-V to LLVM IR” in the v6.
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/Makefile.am | 17 ++-
.../state_trackers/clover/Makefile.sources| 4 +
src/gallium/state_trackers/clover/meson.build | 11 +-
.../clover/spirv/invocation.cpp
on llvm-spirv.
Signed-off-by: Pierre Moreau
---
configure.ac | 18 ++
meson.build | 8
2 files changed, 26 insertions(+)
diff --git a/configure.ac b/configure.ac
index e4d20054d5f..799246e8319 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2513,6 +2513,24
Reviewed-by: Karol Herbst
Signed-off-by: Pierre Moreau
---
include/CL/cl_ext.h | 37 +
1 file changed, 37 insertions(+)
diff --git a/include/CL/cl_ext.h b/include/CL/cl_ext.h
index 5078e8f45f0..5ea49680423 100644
--- a/include/CL/cl_ext.h
+++ b/include/CL
of a bidirectional stringstream, and
initialise it directly (Francisco Jerez).
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/Makefile.am | 6 +++-
.../state_trackers/clover/llvm/invocation.cpp | 29 +++
.../state_trackers/clover/llvm/invocation.hpp | 6
name (meson) and the libs variable
(Makefile) due to the replacement of llvm-spirv to the new
official SPIRV-LLVM-Translator.
* v5: Changed to match the updated “clover/llvm: Allow translating from
SPIR-V to LLVM IR” in the v6.
Signed-off-by: Pierre Moreau
---
src/gallium
Reviewed-by: Karol Herbst
Changes since:
* v3: do not advertise SPIR-V support if CLOVER_ALLOW_SPIRV is not
defined
* v2: advertise cl_khr_il_program if if the device support NATIVE as IR
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/api/platform.cpp | 2 ++
src
initialise the devices associated to a program created
from clCreateProgramWithILKHR;
- Introduce free functions for validating the SPIR-V binary, and
detecting the IL used in the binary fed to clCreateProgramWithILKHR.
Signed-off-by: Pierre Moreau
---
.../state_trackers/clover/api
Reviewed-by: Karol Herbst
Change since:
* v2: Remove the const from the length argument of clCreateProgramWithIL
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/api/dispatch.cpp | 2 +-
src/gallium/state_trackers/clover/api/program.cpp | 8
2 files changed, 9
Reviewed-by: Karol Herbst
Changes since:
* v3: Use the core define instead of the extension one (Karol Herbst)
* v2: Switch from using a pointer attribute to a vector (Francisco
Jerez)
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/api/program.cpp | 7 +++
1 file
Reviewed-by: Karol Herbst
Changes since:
* v3: Use the core define instead of the extension one (Karol Herbst)
* v2: Throw an exception if the cl_khr_il_program extension is not
supported (Francisco Jerez)
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/api/device.cpp
Reviewed-by: Aaron Watry
Reviewed-by: Karol Herbst
Changes since:
* v2:
- Dropped supported_irs() (Francisco Jerez)
- Changed supports_ir() argument type to `enum pipe_shader_ir`
(Francisco Jerez)
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/core/device.cpp | 6
From the OpenCL 1.2 Specification, Section 5.6.2 (about clBuildProgram):
> If program is created with clCreateProgramWithBinary, then the
> program binary must be an executable binary (not a compiled binary or
> library).
Reviewed-by: Aaron Watry
Signed-off-by: Pierre Moreau
---
sr
Reviewed-by: Karol Herbst
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/Makefile.am | 11 +-
.../state_trackers/clover/Makefile.sources| 4 -
.../state_trackers/clover/core/program.cpp| 13 +-
src/gallium/state_trackers/clover/meson.build | 10
Reviewed-by: Aaron Watry
Reviewed-by: Karol Herbst
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/core/device.cpp | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/gallium/state_trackers/clover/core/device.cpp
b/src/gallium/state_trackers/clover
Reviewed-by: Francisco Jerez
Reviewed-by: Aaron Watry
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/api/device.cpp | 11 +--
src/gallium/state_trackers/clover/core/device.cpp | 14 ++
src/gallium/state_trackers/clover/core/device.hpp | 1 +
3 files
the update of "clover/api: Rework the
validation of devices for building” in the v6.
* v2: Re-write the explanation as to why libraries can’t be created from
other libraries (Francisco Jerez)
Signed-off-by: Pierre Moreau
---
.../state_trackers/clover/api/program.cpp | 21 +++
the modification to the tgsi backend, as already dropped
(Aaron Watry)
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/core/module.cpp | 1 +
src/gallium/state_trackers/clover/core/module.hpp | 13 +
.../state_trackers/clover/llvm/codegen/bitcode.cpp | 3
a list of devices (Francisco
Jerez);
- Dropped duplicate checks (Francisco Jerez).
Signed-off-by: Pierre Moreau
---
.../state_trackers/clover/api/program.cpp | 18 +-
.../state_trackers/clover/core/program.cpp | 3 ++-
2 files changed, 11 insertions(+), 10 deletions
Reviewed-by: Francisco Jerez
Reviewed-by: Aaron Watry
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/api/platform.cpp | 4 ++--
src/gallium/state_trackers/clover/core/platform.cpp | 5 +
src/gallium/state_trackers/clover/core/platform.hpp | 2 ++
3 files changed, 9
Karol Herbst (1):
clover: update ICD table to support everything up to 2.2
Pierre Moreau (19):
include/CL: Update to the latest OpenCL 2.2 headers
clover: Remove the TGSI backend as unused
clover: Add an helper for checking if an IR is supported
clover/device: Replace usage
From: Karol Herbst
v6: Fix return type of clCreateCommandQueueWithProperties
v2: add more prototypes
Reviewed-by: Pierre Moreau
Signed-off-by: Karol Herbst
Signed-off-by: Pierre Moreau
---
.../state_trackers/clover/api/dispatch.cpp| 29 ++-
.../state_trackers/clover/api/dispatch.hpp
On 2019-01-07 — 11:34, Dylan Baker wrote:
[snip]
> I think you can just use dep_llvm.version() now, which does split the 'svn' or
> 'git' off the end already. When this was written it didn't do that.
Thanks, it does indeed work and feels way less hacky than my split; I’ll send a
v2 shortly.
” suffix from the version when
using the dependency’s `version()` method.
This processing is already performed in “configure.ac” when using
autotools.
Signed-off-by: Pierre Moreau
---
v2:
* Replace the initial solution using a `split()`, by instead directly
using Meson’s own `version()` function
On 2019-01-08 — 15:18, Dylan Baker wrote:
[snip]
> >dep_clc = dependency('libclc')
> > + dep_spirv_tools = dependency('SPIRV-Tools', required : false, version :
> > '>= 2018.0')
> > + # LLVMSPIRVLib is available at
> > https://github.com/KhronosGroup/SPIRV-LLVM-Translator
> > +
> thanks! Just FYI, our meson build uses - in option names, not _. And, I'd
> prefer
> just "opencl-spirv".
Err right, I meant with '-' in the option name. I am fine with "opencl-spirv";
I was initially going with "gallium-opencl-spirv" since the other
clover-related command was named
`with_gallium_icd` is never used throughout the different Meson build
files, whereas `with_opencl_icd` tracks whether or not `gallium-opencl`
was set to "icd".
Signed-off-by: Pierre Moreau
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mes
Hello Dylan,
It looks fine to me as well. Thank you for fixing the merge conflict.
Pierre
On 2018-09-14 — 09:16, Dylan Baker wrote:
> Quoting Pierre Moreau (2017-12-04 15:51:04)
> > Those operations do not map to actual hardware instructions, therefore
> > those should always b
: Changed to match the updated “clover/llvm: Allow translating from
SPIR-V to LLVM IR” in the v6.
Signed-off-by: Pierre Moreau
---
src/gallium/state_trackers/clover/Makefile.am | 17 ++-
.../state_trackers/clover/Makefile.sources| 4 +
src/gallium/state_trackers/clover/meson.build | 11
201 - 300 of 309 matches
Mail list logo