clover: Implement clCreateProgramWithILKHR
authorPierre Moreau <dev@pmoreau.org>
Tue, 5 May 2020 11:16:42 +0000 (13:16 +0200)
committerPierre Moreau <dev@pmoreau.org>
Fri, 1 Jan 2021 20:56:58 +0000 (21:56 +0100)
commita92afdea580cd75b93566bcea5f763de09319f88
tree1c03948ab2178035e1edcf31be70e154bd980b57
parent7b1659173ac56cd95498b2132e216a6a6309a88c
clover: Implement clCreateProgramWithILKHR

v2: Use the same storage for OpenCL C sources and ILs representations
    (Karol Herbst, Francisco Jerez)
v3:
* Remove `program::has_source` and instead add a value to
  `program::il_type` for sources. (Francisco Jerez)
* Use `std::move()` on sources.
* Replace `CL_MAKE_VERSION(99999999u, 0u, 0u)` with
  `std::numeric_limits<uint32_t>::max()` (Francisco Jerez)

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2078>
src/gallium/frontends/clover/api/dispatch.hpp
src/gallium/frontends/clover/api/program.cpp
src/gallium/frontends/clover/core/compiler.hpp
src/gallium/frontends/clover/core/program.cpp
src/gallium/frontends/clover/core/program.hpp