gallium: mark the input data as const in pipe_grid_info
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17334>
This commit is contained in:
@@ -438,7 +438,7 @@ struct lp_jit_cs_context
|
|||||||
|
|
||||||
struct lp_jit_buffer ssbos[LP_MAX_TGSI_SHADER_BUFFERS];
|
struct lp_jit_buffer ssbos[LP_MAX_TGSI_SHADER_BUFFERS];
|
||||||
|
|
||||||
void *kernel_args;
|
const void *kernel_args;
|
||||||
|
|
||||||
uint32_t shared_size;
|
uint32_t shared_size;
|
||||||
|
|
||||||
|
@@ -1272,7 +1272,7 @@ update_csctx_ssbo(struct llvmpipe_context *llvmpipe)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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) {
|
if (llvmpipe->cs_dirty & LP_CSNEW_CONSTANTS) {
|
||||||
lp_csctx_set_cs_constants(llvmpipe->csctx,
|
lp_csctx_set_cs_constants(llvmpipe->csctx,
|
||||||
|
@@ -150,7 +150,7 @@ struct lp_cs_context {
|
|||||||
struct pipe_image_view current;
|
struct pipe_image_view current;
|
||||||
} images[LP_MAX_TGSI_SHADER_IMAGES];
|
} images[LP_MAX_TGSI_SHADER_IMAGES];
|
||||||
|
|
||||||
void *input;
|
const void *input;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lp_cs_context *lp_csctx_create(struct pipe_context *pipe);
|
struct lp_cs_context *lp_csctx_create(struct pipe_context *pipe);
|
||||||
|
@@ -934,7 +934,7 @@ struct pipe_grid_info
|
|||||||
* Will be used to initialize the INPUT resource, and it should point to a
|
* 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.
|
* 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
|
* Grid number of dimensions, 1-3, e.g. the work_dim parameter passed to
|
||||||
|
Reference in New Issue
Block a user