swr: s/unsigned/enum pipe_shader_type/
authorBrian Paul <brianp@vmware.com>
Sun, 5 Mar 2017 19:30:01 +0000 (12:30 -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/swr/swr_shader.cpp
src/gallium/drivers/swr/swr_state.cpp
src/gallium/drivers/swr/swr_tex_sample.cpp
src/gallium/drivers/swr/swr_tex_sample.h

index 09d8145a8f5af076a7037b58aad3207a034e9900..a449c58ed95ea9a6c0befeaf9e2443cbb61b8ea9 100644 (file)
@@ -76,7 +76,7 @@ bool operator==(const swr_jit_gs_key &lhs, const swr_jit_gs_key &rhs)
 static void
 swr_generate_sampler_key(const struct lp_tgsi_info &info,
                          struct swr_context *ctx,
-                         unsigned shader_type,
+                         enum pipe_shader_type shader_type,
                          struct swr_jit_sampler_key &key)
 {
    key.nr_samplers = info.base.file_max[TGSI_FILE_SAMPLER] + 1;
index b3896649848011ea0770be1860a6c05208d94488..fb284d8576f0ac33eab1b397ec9966b7dce53d0c 100644 (file)
@@ -748,7 +748,7 @@ swr_update_resource_status(struct pipe_context *pipe,
 
 static void
 swr_update_texture_state(struct swr_context *ctx,
-                         unsigned shader_type,
+                         enum pipe_shader_type shader_type,
                          unsigned num_sampler_views,
                          swr_jit_texture *textures)
 {
@@ -802,7 +802,7 @@ swr_update_texture_state(struct swr_context *ctx,
 
 static void
 swr_update_sampler_state(struct swr_context *ctx,
-                         unsigned shader_type,
+                         enum pipe_shader_type shader_type,
                          unsigned num_samplers,
                          swr_jit_sampler *samplers)
 {
index 37ad39b950d2c58b26c4147c1e86b68acd0d8abe..ec2fa15408553208c62d91a417f6493656c08ac8 100644 (file)
@@ -74,7 +74,7 @@ struct swr_sampler_dynamic_state {
 
    const struct swr_sampler_static_state *static_state;
 
-   unsigned shader_type;
+   enum pipe_shader_type shader_type;
 };
 
 
@@ -325,7 +325,7 @@ swr_sampler_soa_emit_size_query(const struct lp_build_sampler_soa *base,
 
 struct lp_build_sampler_soa *
 swr_sampler_soa_create(const struct swr_sampler_static_state *static_state,
-                       unsigned shader_type)
+                       enum pipe_shader_type shader_type)
 {
    struct swr_sampler_soa *sampler;
 
index cb7e83d1c39ed309993f6ce532813007beb81088..715ca3c3e1917586f4470075a25344eb80a5d850 100644 (file)
@@ -44,4 +44,5 @@ struct swr_sampler_static_state {
  *
  */
 struct lp_build_sampler_soa *
-swr_sampler_soa_create(const struct swr_sampler_static_state *key, unsigned shader_type);
+swr_sampler_soa_create(const struct swr_sampler_static_state *key,
+                       enum pipe_shader_type shader_type);