softpipe: s/unsigned/enum pipe_shader_type/
authorBrian Paul <brianp@vmware.com>
Sun, 5 Mar 2017 19:29:44 +0000 (12:29 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Mar 2017 15:50:20 +0000 (08:50 -0700)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/softpipe/sp_state_derived.c
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h

index 0083e332785e4be9338821856e66f3bed7af9874..f34997ab3d0b6114c339dffed7eaf3741a8e61ac 100644 (file)
@@ -282,7 +282,7 @@ compute_cliprect(struct softpipe_context *sp)
 
 static void
 set_shader_sampler(struct softpipe_context *softpipe,
-                   unsigned shader,
+                   enum pipe_shader_type shader,
                    int max_sampler)
 {
    int i;
index a4185c2b641acd0611e8445311cbe4011ba36776..c10fd918fd8fdeb6fe98e085327e8ffd30581c91 100644 (file)
@@ -167,7 +167,7 @@ prepare_shader_sampling(
    struct softpipe_context *sp,
    unsigned num,
    struct pipe_sampler_view **views,
-   unsigned shader_type,
+   enum pipe_shader_type shader_type,
    struct pipe_resource *mapped_tex[PIPE_MAX_SHADER_SAMPLER_VIEWS])
 {
 
index c457f896e49c608d3e6a14dbe532016a78b0acaf..3a8ad2eef4302e86f1921c4f04dd8161633aa338 100644 (file)
@@ -3443,7 +3443,8 @@ softpipe_create_sampler_state(struct pipe_context *pipe,
 
 
 compute_lambda_func
-softpipe_get_lambda_func(const struct pipe_sampler_view *view, unsigned shader)
+softpipe_get_lambda_func(const struct pipe_sampler_view *view,
+                         enum pipe_shader_type shader)
 {
    if (shader != PIPE_SHADER_FRAGMENT)
       return compute_lambda_vert;
index d591487d1b43d125f69db3be0e0665c9a249f8cd..f7774f5e88363f50d2edcc52cc3788d792d359b2 100644 (file)
@@ -155,7 +155,8 @@ struct sp_tgsi_sampler
 };
 
 compute_lambda_func
-softpipe_get_lambda_func(const struct pipe_sampler_view *view, unsigned shader);
+softpipe_get_lambda_func(const struct pipe_sampler_view *view,
+                         enum pipe_shader_type shader);
 
 
 void *