aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/spirv
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2019-05-10 09:22:25 +0200
committerKarol Herbst <[email protected]>2019-09-21 08:28:32 +0000
commitb6c47abe3e9c26c18429a385d5b7a938ed92ab7f (patch)
tree89db39b3c466771cb790725f714b4c0256644965 /src/gallium/state_trackers/clover/spirv
parent2043c5f37cf1f1b64a8f5d9ae04bbf8e7860f616 (diff)
gallium: add blob field to pipe_llvm_program_header
makes it easier to consume a IR_NATIVE binary Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Francisco Jerez <[email protected]> Reviewed-by: Pierre Moreau <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/spirv')
-rw-r--r--src/gallium/state_trackers/clover/spirv/invocation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/spirv/invocation.cpp b/src/gallium/state_trackers/clover/spirv/invocation.cpp
index fa5b4dba606..86916117b48 100644
--- a/src/gallium/state_trackers/clover/spirv/invocation.cpp
+++ b/src/gallium/state_trackers/clover/spirv/invocation.cpp
@@ -625,8 +625,7 @@ clover::spirv::link_program(const std::vector<module> &modules,
sec.type == module::section::text_library;
}, mod.secs);
- const auto c_il = msec.data.data() +
- sizeof(struct pipe_llvm_program_header);
+ const auto c_il = ((struct pipe_llvm_program_header*)msec.data.data())->blob;
const auto length = msec.size;
sections.push_back(reinterpret_cast<const uint32_t *>(c_il));