Commit c8cd8e27 authored by Karol Herbst's avatar Karol Herbst 🐧 Committed by Karol Herbst

clover: add support for drivers having no proper binary format

Most drivers have actually no binary format and just store the IR directly
as a single entry point blob.

v2: add a cap to switch between single or multi entry point binaries
v3: remove the entry_point field
v5: remove supports_multiple_entry_points
Signed-off-by: Karol Herbst's avatarKarol Herbst <>
Reviewed-by: Pierre Moreau's avatarPierre Moreau <>
parent 1982ac6d
......@@ -161,8 +161,9 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _q,
// Bind kernel arguments.
auto &m = kern.program().build(q->device()).binary;
auto margs = find(name_equals(, m.syms).args;
auto msec = find(type_equals(module::section::text_executable), m.secs);
auto msym = find(name_equals(, m.syms);
auto margs = msym.args;
auto msec = find(id_equals(msym.section), m.secs);
auto explicit_arg = kern._args.begin();
for (auto &marg : margs) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment