summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2020-02-28 15:54:08 +0100
committerMarge Bot <[email protected]>2020-03-10 22:06:19 +0000
commite1ffb72a05f9b50ee47767aaadbab3e47896ee14 (patch)
treed21fbcc831db43d2064cf9d6c171e0ddcd96c62e /src/gallium/state_trackers/clover
parent0541350e3a3cca58484880df04c0db160180b726 (diff)
gallium: make handles of set_global_binding 64 bit
needed by CL Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4072> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4072>
Diffstat (limited to 'src/gallium/state_trackers/clover')
-rw-r--r--src/gallium/state_trackers/clover/core/kernel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp
index 3cffec320e1..428229c0503 100644
--- a/src/gallium/state_trackers/clover/core/kernel.cpp
+++ b/src/gallium/state_trackers/clover/core/kernel.cpp
@@ -59,8 +59,8 @@ kernel::launch(command_queue &q,
// The handles are created during exec_context::bind(), so we need make
// sure to call exec_context::bind() before retrieving them.
- std::vector<uint32_t *> g_handles = map([&](size_t h) {
- return (uint32_t *)&exec.input[h];
+ std::vector<uint64_t *> g_handles = map([&](size_t h) {
+ return (uint64_t *)&exec.input[h];
}, exec.g_handles);
q.pipe->bind_compute_state(q.pipe, st);