gallium/tests: silence warning in compute.c
authorBrian Paul <brianp@vmware.com>
Sat, 5 Mar 2016 01:19:48 +0000 (18:19 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 5 Mar 2016 16:15:44 +0000 (09:15 -0700)
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 *?

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/tests/trivial/compute.c

index 288cf2ad629eeff1259725d90ee3ed99f6aa32c1..5d5e0b0b8c3dfd361c47f4fa5e09bc3c2f3026b8 100644 (file)
@@ -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;