gallium/util: fix two MSVC compiler warnings
authorBrian Paul <brianp@vmware.com>
Sat, 4 May 2019 16:04:57 +0000 (10:04 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 8 May 2019 16:05:42 +0000 (10:05 -0600)
Remove stray const qualifier.
s/unsigned/enum tgsi_semantic/

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_format_zs.h
src/gallium/auxiliary/util/u_simple_shaders.c

index 160919dde73e9c90d57ad746069ff27de191beed..bed3c5198e8f1ca65c30dc5cf16ff7a6a0f29c24 100644 (file)
@@ -113,7 +113,7 @@ void
 util_format_z24_unorm_s8_uint_pack_s_8uint(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height);
 
 void
-util_format_z24_unorm_s8_uint_pack_separate(uint8_t *dst_row, unsigned dst_stride, const uint32_t *z_src_row, unsigned z_src_stride, const uint8_t *s_src_row, unsigned s_src_stride, const unsigned width, unsigned height);
+util_format_z24_unorm_s8_uint_pack_separate(uint8_t *dst_row, unsigned dst_stride, const uint32_t *z_src_row, unsigned z_src_stride, const uint8_t *s_src_row, unsigned s_src_stride, unsigned width, unsigned height);
 
 void
 util_format_s8_uint_z24_unorm_unpack_z_float(float *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height);
index 4046ab1202b22e9215b25d0292d6da6fa6b61be6..d62a65579ae41e1267dfd39e0333f7d97b116e7b 100644 (file)
@@ -117,8 +117,8 @@ util_make_vertex_passthrough_shader_with_so(struct pipe_context *pipe,
 
 void *util_make_layered_clear_vertex_shader(struct pipe_context *pipe)
 {
-   const unsigned semantic_names[] = {TGSI_SEMANTIC_POSITION,
-                                      TGSI_SEMANTIC_GENERIC};
+   const enum tgsi_semantic semantic_names[] = {TGSI_SEMANTIC_POSITION,
+                                                TGSI_SEMANTIC_GENERIC};
    const unsigned semantic_indices[] = {0, 0};
 
    return util_make_vertex_passthrough_shader_with_so(pipe, 2, semantic_names,