clover: add support for passing kernels as nir to the driver
authorKarol Herbst <kherbst@redhat.com>
Tue, 6 Aug 2019 18:35:48 +0000 (20:35 +0200)
committerKarol Herbst <karolherbst@gmail.com>
Sat, 21 Sep 2019 08:28:32 +0000 (08:28 +0000)
commitdeb04adf2ae605a017d7ce4e81f57db679567dfa
tree93592efcef0582ea2cdf6c10fa81bc1227413c0f
parent1befaf4417d81d7fccf8b8d2d59e7b57d0255dd3
clover: add support for passing kernels as nir to the driver

v2: minor formatting fixes
v3: call glsl_type_singleton_init_or_ref and glsl_type_singleton_decref
v4: capitalize and punctuate comments
    fix text_executable -> text_intermediate in TODO
    make glsl_type_singleton wrapper static
v5: rewrite how we run the nir passes
v6: fix unhandled case switch warning in st/mesa

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net> (v4)
src/gallium/include/pipe/p_defines.h
src/gallium/state_trackers/clover/core/compiler.hpp
src/gallium/state_trackers/clover/core/device.cpp
src/gallium/state_trackers/clover/core/device.hpp
src/gallium/state_trackers/clover/meson.build
src/gallium/state_trackers/clover/nir/invocation.cpp [new file with mode: 0644]
src/gallium/state_trackers/clover/nir/invocation.hpp [new file with mode: 0644]
src/mesa/state_tracker/st_program.c