gallium: Use enum pipe_shader_type in set_shader_images()
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 27 Aug 2016 10:08:00 +0000 (04:08 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 29 Aug 2016 15:07:37 +0000 (09:07 -0600)
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h
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
src/mesa/state_tracker/st_atom_image.c

index 5e6b36e9b535ec9883ca5a51d29e4c3088fdb8d1..127e0711c20516a6fcdd5d5ff8d6c86f6395edd2 100644 (file)
@@ -1360,7 +1360,8 @@ cso_restore_fragment_sampler_views(struct cso_context *ctx)
 
 
 void
-cso_set_shader_images(struct cso_context *ctx, unsigned shader_stage,
+cso_set_shader_images(struct cso_context *ctx,
+                      enum pipe_shader_type shader_stage,
                       unsigned start, unsigned count,
                       struct pipe_image_view *images)
 {
index 27863f4a642451b211fd51b8727bfe7e39619bee..29e5e33171ea9711649ec7417b203212c8aea8f2 100644 (file)
@@ -196,7 +196,8 @@ cso_set_sampler_views(struct cso_context *cso,
 /* shader images */
 
 void
-cso_set_shader_images(struct cso_context *cso, unsigned shader_stage,
+cso_set_shader_images(struct cso_context *cso,
+                      enum pipe_shader_type shader_stage,
                       unsigned start, unsigned count,
                       struct pipe_image_view *views);
 
index 50edfd794e36e0ff9a6756cfa8df0212e719a139..4bcbbff230761242a0b1ee5d684ba57866fe08f2 100644 (file)
@@ -521,7 +521,8 @@ dd_context_set_sampler_views(struct pipe_context *_pipe,
 }
 
 static void
-dd_context_set_shader_images(struct pipe_context *_pipe, unsigned shader,
+dd_context_set_shader_images(struct pipe_context *_pipe,
+                             enum pipe_shader_type shader,
                              unsigned start, unsigned num,
                              const struct pipe_image_view *views)
 {
index 0ae32c76161c68935c030f413d3450f9246fc366..95b292a89398e14875be31a361da9811a23cec52 100644 (file)
@@ -1853,7 +1853,7 @@ ilo_set_sampler_views(struct pipe_context *pipe, enum pipe_shader_type shader,
 }
 
 static void
-ilo_set_shader_images(struct pipe_context *pipe, unsigned shader,
+ilo_set_shader_images(struct pipe_context *pipe, enum pipe_shader_type shader,
                       unsigned start, unsigned count,
                       const struct pipe_image_view *views)
 {
index ee1e184e798bc494599899065069d5c7e2d2106f..6aaada4ab6cdda6a3df8332e0fcd0e45a27dfb25 100644 (file)
@@ -1344,7 +1344,8 @@ nvc0_bind_images_range(struct nvc0_context *nvc0, const unsigned s,
 }
 
 static void
-nvc0_set_shader_images(struct pipe_context *pipe, unsigned shader,
+nvc0_set_shader_images(struct pipe_context *pipe,
+                       enum pipe_shader_type shader,
                        unsigned start, unsigned nr,
                        const struct pipe_image_view *images)
 {
index dfd0607891d665d982116c861740a64cadc7a75d..eb0e5fa62448e782cc965f808effdae238ca7281 100644 (file)
@@ -704,7 +704,8 @@ static void si_set_shader_image(struct si_context *ctx,
 }
 
 static void
-si_set_shader_images(struct pipe_context *pipe, unsigned shader,
+si_set_shader_images(struct pipe_context *pipe,
+                    enum pipe_shader_type shader,
                     unsigned start_slot, unsigned count,
                     const struct pipe_image_view *views)
 {
index c5ef466e1311a2da58b92fc6d2fcf573d60fcb78..38e5cd4ad48aaae0f0bc1f974b954d50c36ee656 100644 (file)
@@ -27,7 +27,7 @@
 #include "sp_buffer.h"
 
 static void softpipe_set_shader_images(struct pipe_context *pipe,
-                                       unsigned shader,
+                                       enum pipe_shader_type shader,
                                        unsigned start,
                                        unsigned num,
                                        const struct pipe_image_view *images)
index 61b69c23cee6e10cbab76bccc114eeb52b41ec27..e833fb2de470cbdfe5f17a1346e76405493f8d44 100644 (file)
@@ -1749,7 +1749,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,
+                                            enum pipe_shader_type shader,
                                             unsigned start, unsigned nr,
                                             const struct pipe_image_view *images)
 {
index bea192477c8642a834bbafb2dec9d70635aaefc0..f5841d7c4243986c458ac30a72e9fdf9f7dc1f87 100644 (file)
@@ -332,7 +332,8 @@ struct pipe_context {
     *                   unless it's NULL, in which case no images will
     *                   be bound.
     */
-   void (*set_shader_images)(struct pipe_context *, unsigned shader,
+   void (*set_shader_images)(struct pipe_context *,
+                             enum pipe_shader_type shader,
                              unsigned start_slot, unsigned count,
                              const struct pipe_image_view *images);
 
index 4d76ac972d956aa7ebf4f6a0ea85a19d188ccf22..a7b7371bfee1ba255bd1b54159163206b37024db 100644 (file)
@@ -46,7 +46,7 @@
 
 static void
 st_bind_images(struct st_context *st, struct gl_linked_shader *shader,
-              unsigned shader_type)
+              enum pipe_shader_type shader_type)
 {
    unsigned i;
    struct pipe_image_view images[MAX_IMAGE_UNIFORMS];