clover/spirv: Add functions for validating SPIR-V binaries
authorPierre Moreau <pierre.morrow@free.fr>
Sat, 10 Feb 2018 20:40:10 +0000 (21:40 +0100)
committerKarol Herbst <karolherbst@gmail.com>
Sat, 21 Sep 2019 08:28:32 +0000 (08:28 +0000)
commit939a7e9a5c0a74fb2fabb00b61ba6375e22bf1a6
tree07b88b19e373213f48f5e0f7c2665fb5f7a542d4
parent866f6f11d928e6e9b1a45468ec9d6cf12b7f2778
clover/spirv: Add functions for validating SPIR-V binaries

Changes since:
* v12:
  - remove autotools (Karol Herbst)
  - Remove the callback in format_validation_msg. (Francisco Jerez)
  - Removed is_binary_spirv. (Francisco Jerez)
  - Pass a string reference to is_valid_spirv instead of the
    notification callback. (Francisco Jerez)
* 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` target
      in Meson.
* v7: Add DEFINES to libclspirv and libclover, in autotools, as they
      would otherwise never know whether CLOVER_ALLOW_SPIRV has been
      defined (Dave Airlie)
* v6: Update the dependency 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.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/Makefile.sources
src/gallium/state_trackers/clover/meson.build
src/gallium/state_trackers/clover/spirv/invocation.cpp [new file with mode: 0644]
src/gallium/state_trackers/clover/spirv/invocation.hpp [new file with mode: 0644]