summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-05-10 09:24:42 +0200
committerKarol Herbst <[email protected]>2019-09-21 08:28:32 +0000
commitc8cd8e279de97913c2b9ce1bd17f96de0c263ae8 (patch)
tree459a0fc2a43b5df30856fcc50ff83ed5b5a4dfea /src/gallium/state_trackers/clover
parent1982ac6d6bb3e42db63729355fdd88e2b474e7e2 (diff)
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 v4: remove PIPE_CAP_MULTI_ENTRY_POINT_BINARIES v5: remove supports_multiple_entry_points Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/core/kernel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp
index 7fe66ae4ea2..3cffec320e1 100644
--- a/src/gallium/state_trackers/clover/core/kernel.cpp
+++ b/src/gallium/state_trackers/clover/core/kernel.cpp
@@ -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(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) {