[Mesa-dev] [PATCH] gallium/tests: silence warning in compute.c
Samuel Pitoiset
samuel.pitoiset at gmail.com
Sat Mar 5 10:40:39 UTC 2016
On 05/03/2016 02:20, Brian Paul wrote:
> compute.c: In function ‘launch_grid’:
> compute.c:435:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
> info.input = input;
> ^
>
> Maybe the pipe_grid_info::input field should be const void *?
Maybe, but this will require lot of changes. Anyway this patch is :
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/gallium/tests/trivial/compute.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c
> index 288cf2a..5d5e0b0 100644
> --- a/src/gallium/tests/trivial/compute.c
> +++ b/src/gallium/tests/trivial/compute.c
> @@ -421,7 +421,7 @@ static void destroy_globals(struct context *ctx)
>
> static void launch_grid(struct context *ctx, const uint *block_layout,
> const uint *grid_layout, uint32_t pc,
> - const void *input)
> + void *input)
> {
> struct pipe_context *pipe = ctx->pipe;
> struct pipe_grid_info info;
>
More information about the mesa-dev
mailing list