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
v4: remove PIPE_CAP_MULTI_ENTRY_POINT_BINARIES
v5: remove supports_multiple_entry_points
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
// Bind kernel arguments.
auto &m = kern.program().build(q->device()).binary;
- auto margs = find(name_equals(kern.name()), m.syms).args;
- auto msec = find(type_equals(module::section::text_executable), m.secs);
+ auto msym = find(name_equals(kern.name()), 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) {