From 3767dbf18c93b1c97ad428f724d4df809a54e75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 19 Jan 2016 00:45:42 +0100 Subject: [PATCH] renderer: use a uint32_t for shader type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That way an value if (type > PIPE_SHADER_GEOMETRY) guard will actually work for all values. Signed-off-by: Marc-André Lureau --- src/vrend_renderer.c | 2 +- src/vrend_renderer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 44abd60..fd5f96f 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2115,7 +2115,7 @@ int vrend_create_shader(struct vrend_context *ctx, uint32_t handle, const struct pipe_stream_output_info *so_info, const char *shd_text, uint32_t offlen, uint32_t num_tokens, - int type, uint32_t pkt_length) + uint32_t type, uint32_t pkt_length) { struct vrend_shader_selector *sel; int ret_handle; diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h index b78fba9..79fe081 100644 --- a/src/vrend_renderer.h +++ b/src/vrend_renderer.h @@ -109,7 +109,7 @@ int vrend_create_shader(struct vrend_context *ctx, uint32_t handle, const struct pipe_stream_output_info *stream_output, const char *shd_text, uint32_t offlen, uint32_t num_tokens, - int type, uint32_t pkt_length); + uint32_t type, uint32_t pkt_length); void vrend_bind_shader(struct vrend_context *ctx, uint32_t type,