Commit ef0a0ae0 authored by Karol Herbst's avatar Karol Herbst 🐧
Browse files

gallium: mark the input data as const in pipe_grid_info



Signed-off-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie's avatarJesse Natalie <jenatali@microsoft.com>
parent fa1666df
Pipeline #628149 waiting for manual action with stages
in 11 seconds
......@@ -449,7 +449,7 @@ struct lp_jit_cs_context
const uint32_t *ssbos[LP_MAX_TGSI_SHADER_BUFFERS];
int num_ssbos[LP_MAX_TGSI_SHADER_BUFFERS];
void *kernel_args;
const void *kernel_args;
uint32_t shared_size;
......
......@@ -1276,7 +1276,7 @@ update_csctx_ssbo(struct llvmpipe_context *llvmpipe)
}
static void
llvmpipe_cs_update_derived(struct llvmpipe_context *llvmpipe, void *input)
llvmpipe_cs_update_derived(struct llvmpipe_context *llvmpipe, const void *input)
{
if (llvmpipe->cs_dirty & LP_CSNEW_CONSTANTS) {
lp_csctx_set_cs_constants(llvmpipe->csctx,
......
......@@ -150,7 +150,7 @@ struct lp_cs_context {
struct pipe_image_view current;
} images[LP_MAX_TGSI_SHADER_IMAGES];
void *input;
const void *input;
};
struct lp_cs_context *lp_csctx_create(struct pipe_context *pipe);
......
......@@ -924,7 +924,7 @@ struct pipe_grid_info
* Will be used to initialize the INPUT resource, and it should point to a
* buffer of at least pipe_compute_state::req_input_mem bytes.
*/
void *input;
const void *input;
/**
* Grid number of dimensions, 1-3, e.g. the work_dim parameter passed to
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment