gallium: make image_view const
authorRob Clark <robclark@freedesktop.org>
Tue, 7 Jun 2016 18:32:16 +0000 (14:32 -0400)
committerRob Clark <robclark@freedesktop.org>
Mon, 20 Jun 2016 16:36:20 +0000 (12:36 -0400)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/ddebug/dd_context.c
src/gallium/drivers/ilo/ilo_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/softpipe/sp_state_image.c
src/gallium/drivers/trace/tr_context.c
src/gallium/include/pipe/p_context.h

index 785dde784c922dcb9aaa20d97b29628aa303d1f2..f618f0cc8d80742044febc346affe8f27b341125 100644 (file)
@@ -491,7 +491,7 @@ dd_context_set_sampler_views(struct pipe_context *_pipe, unsigned shader,
 static void
 dd_context_set_shader_images(struct pipe_context *_pipe, unsigned shader,
                              unsigned start, unsigned num,
-                             struct pipe_image_view *views)
+                             const struct pipe_image_view *views)
 {
    struct dd_context *dctx = dd_context(_pipe);
    struct pipe_context *pipe = dctx->pipe;
index 53a5aca78cf47fe479839fe7dab4c26a845da678..4f1002eefe834d1487426a574fb407b93b640384 100644 (file)
@@ -1851,7 +1851,7 @@ ilo_set_sampler_views(struct pipe_context *pipe, unsigned shader,
 static void
 ilo_set_shader_images(struct pipe_context *pipe, unsigned shader,
                       unsigned start, unsigned count,
-                      struct pipe_image_view *views)
+                      const struct pipe_image_view *views)
 {
 #if 0
    struct ilo_state_vector *vec = &ilo_context(pipe)->state_vector;
index 4173d0687337ed6adb7ea044c1f60977cbe401b9..b389a7703fff8a4afeae8c7e9ab388302426daa0 100644 (file)
@@ -1250,7 +1250,7 @@ nvc0_set_compute_resources(struct pipe_context *pipe,
 static bool
 nvc0_bind_images_range(struct nvc0_context *nvc0, const unsigned s,
                        unsigned start, unsigned nr,
-                       struct pipe_image_view *pimages)
+                       const struct pipe_image_view *pimages)
 {
    const unsigned end = start + nr;
    unsigned mask = 0;
@@ -1318,7 +1318,7 @@ nvc0_bind_images_range(struct nvc0_context *nvc0, const unsigned s,
 static void
 nvc0_set_shader_images(struct pipe_context *pipe, unsigned shader,
                        unsigned start, unsigned nr,
-                       struct pipe_image_view *images)
+                       const struct pipe_image_view *images)
 {
    const unsigned s = nvc0_shader_stage(shader);
    if (!nvc0_bind_images_range(nvc0_context(pipe), s, start, nr, images))
index 55686e8b61efbd3f83c22e5db2a98963a1022984..e95556bf11752d034965973e94a36a1e9c0ba9e3 100644 (file)
@@ -560,7 +560,7 @@ si_disable_shader_image(struct si_context *ctx, unsigned shader, unsigned slot)
 }
 
 static void
-si_mark_image_range_valid(struct pipe_image_view *view)
+si_mark_image_range_valid(const struct pipe_image_view *view)
 {
        struct r600_resource *res = (struct r600_resource *)view->resource;
        const struct util_format_description *desc;
@@ -578,7 +578,7 @@ si_mark_image_range_valid(struct pipe_image_view *view)
 
 static void si_set_shader_image(struct si_context *ctx,
                                unsigned shader,
-                               unsigned slot, struct pipe_image_view *view)
+                               unsigned slot, const struct pipe_image_view *view)
 {
        struct si_screen *screen = ctx->screen;
        struct si_images_info *images = &ctx->images[shader];
@@ -674,7 +674,7 @@ static void si_set_shader_image(struct si_context *ctx,
 static void
 si_set_shader_images(struct pipe_context *pipe, unsigned shader,
                     unsigned start_slot, unsigned count,
-                    struct pipe_image_view *views)
+                    const struct pipe_image_view *views)
 {
        struct si_context *ctx = (struct si_context *)pipe;
        unsigned i, slot;
index 81bb7ca88ee09cc151e7d053c1809c51518f8f9f..553a76a2c870eb71e8698746b30c83ada7d09e80 100644 (file)
@@ -30,7 +30,7 @@ static void softpipe_set_shader_images(struct pipe_context *pipe,
                                        unsigned shader,
                                        unsigned start,
                                        unsigned num,
-                                       struct pipe_image_view *images)
+                                       const struct pipe_image_view *images)
 {
    struct softpipe_context *softpipe = softpipe_context(pipe);
    unsigned i;
index 0412dd79f8997c39b92261ed4a4359f20688a8de..c1ad991eedec13840a7ce38d47301488ec063b13 100644 (file)
@@ -1709,7 +1709,7 @@ static void trace_context_set_shader_buffers(struct pipe_context *_context,
 static void trace_context_set_shader_images(struct pipe_context *_context,
                                             unsigned shader,
                                             unsigned start, unsigned nr,
-                                            struct pipe_image_view *images)
+                                            const struct pipe_image_view *images)
 {
    struct trace_context *tr_context = trace_context(_context);
    struct pipe_context *context = tr_context->pipe;
index 67ee5cc6477a62effd547b680b606bdc63ffb8f4..0c88e00de165965fc190f65ac5a4746885d130fb 100644 (file)
@@ -331,7 +331,7 @@ struct pipe_context {
     */
    void (*set_shader_images)(struct pipe_context *, unsigned shader,
                              unsigned start_slot, unsigned count,
-                             struct pipe_image_view *images);
+                             const struct pipe_image_view *images);
 
    void (*set_vertex_buffers)( struct pipe_context *,
                                unsigned start_slot,