st/mesa: s/unsigned/enum pipe_shader_type/
authorBrian Paul <brianp@vmware.com>
Thu, 15 Mar 2018 14:22:55 +0000 (08:22 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 23 Mar 2018 15:03:26 +0000 (09:03 -0600)
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.h

index fc53811be40f51331468857fa70cd219a52e8ead..5f7a0dcd3e8f8940771adcc50719c367dd82b429 100644 (file)
@@ -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:
index f38d41d6c768738d954e9f73bc93f8256550e136..8ccfff9bd37cac3e39154b191340740a70c3bc17 100644 (file)
@@ -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,