From: Brian Paul Date: Thu, 15 Mar 2018 14:22:55 +0000 (-0600) Subject: st/mesa: s/unsigned/enum pipe_shader_type/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aad23f91ee197446c81718d9003fb08edf680a01;p=mesa.git st/mesa: s/unsigned/enum pipe_shader_type/ Reviewed-by: Eric Anholt Reviewed-by: Neha Bhende --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index fc53811be40..5f7a0dcd3e8 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -5450,7 +5450,7 @@ struct st_translate { const ubyte *inputMapping; const ubyte *outputMapping; - unsigned procType; /**< PIPE_SHADER_VERTEX/FRAGMENT */ + enum pipe_shader_type procType; /**< PIPE_SHADER_VERTEX/FRAGMENT */ bool need_uarl; }; @@ -6290,7 +6290,7 @@ st_translate_interp(enum glsl_interp_mode glsl_qual, GLuint varying) extern "C" enum pipe_error st_translate_program( struct gl_context *ctx, - uint procType, + enum pipe_shader_type procType, struct ureg_program *ureg, glsl_to_tgsi_visitor *program, const struct gl_program *proginfo, @@ -6723,6 +6723,8 @@ st_translate_program( } } break; + default: + ; /* nothing - silence compiler warning */ } out: diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.h b/src/mesa/state_tracker/st_glsl_to_tgsi.h index f38d41d6c76..8ccfff9bd37 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.h +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.h @@ -38,7 +38,7 @@ struct ureg_program; enum pipe_error st_translate_program( struct gl_context *ctx, - uint procType, + enum pipe_shader_type procType, struct ureg_program *ureg, struct glsl_to_tgsi_visitor *program, const struct gl_program *proginfo,