[Mesa-dev] [PATCH v2] clover: fix build failure since bfd695e

Ilia Mirkin imirkin at alum.mit.edu
Sat Feb 13 17:33:37 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Sat, Feb 13, 2016 at 12:27 PM, Serge Martin <edb+mesa at sigluy.net> wrote:
> ---
>  src/gallium/state_trackers/clover/core/kernel.cpp | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp
> index 41b3852..3daec3b 100644
> --- a/src/gallium/state_trackers/clover/core/kernel.cpp
> +++ b/src/gallium/state_trackers/clover/core/kernel.cpp
> @@ -76,9 +76,12 @@ kernel::launch(command_queue &q,
>                                exec.g_buffers.data(), g_handles.data());
>
>     // Fill information for the launch_grid() call.
> -   info.block = pad_vector(q, block_size, 1).data(),
> -   info.grid = pad_vector(q, reduced_grid_size, 1).data(),
> -   info.pc = find(name_equals(_name), m.sysm).offset;
> +   auto block_info = pad_vector(q, block_size, 1);
> +   auto grid_info = pad_vector(q, reduced_grid_size, 1);
> +
> +   memcpy(info.block, block_info.data(), sizeof(info.block));
> +   memcpy(info.grid, grid_info.data(), sizeof(info.grid));
> +   info.pc = find(name_equals(_name), m.syms).offset;
>     info.input = exec.input.data();
>
>     q.pipe->launch_grid(q.pipe, &info);
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list