diff options
author | Brian Paul <brianp@vmware.com> | 2019-05-04 10:04:57 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2019-05-08 10:05:42 -0600 |
commit | a17c1ae165a9344e8679b24c8925f5e669ad51fc (patch) | |
tree | 401de24da7e30921fa49aa865425719b81c2f021 /src/gallium/auxiliary/util/u_simple_shaders.c | |
parent | 4f54e550e91141cf8ad7fcad87150b50d47fc223 (diff) |
gallium/util: fix two MSVC compiler warnings
Remove stray const qualifier.
s/unsigned/enum tgsi_semantic/
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_simple_shaders.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_simple_shaders.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c index 4046ab1202b..d62a65579ae 100644 --- a/src/gallium/auxiliary/util/u_simple_shaders.c +++ b/src/gallium/auxiliary/util/u_simple_shaders.c @@ -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, |