[Mesa-dev] [PATCH 1/1] clover: grid_offset should be padded with 0 not 1
Francisco Jerez
currojerez at riseup.net
Mon May 16 17:31:28 UTC 2016
Jan Vesely <jan.vesely at rutgers.edu> writes:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> ---
>
> This is the only mesa change to make the newly introduced global_offset
> piglit pass on r600 (the rest is llvm/clang/libclc)
>
> src/gallium/state_trackers/clover/core/kernel.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp
> index 266d50e..9231462 100644
> --- a/src/gallium/state_trackers/clover/core/kernel.cpp
> +++ b/src/gallium/state_trackers/clover/core/kernel.cpp
> @@ -179,7 +179,7 @@ kernel::exec_context::bind(intrusive_ptr<command_queue> _q,
> break;
> }
> case module::argument::grid_offset: {
> - for (cl_uint x : pad_vector(*q, grid_offset, 1)) {
> + for (cl_uint x : pad_vector(*q, grid_offset, 0)) {
> auto arg = argument::create(marg);
>
> arg->set(sizeof(x), &x);
> --
> 2.5.5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160516/8969f9f3/attachment-0001.sig>
More information about the mesa-dev
mailing list