diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-01-19 00:45:42 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-02-10 12:00:43 +1000 |
commit | 3767dbf18c93b1c97ad428f724d4df809a54e75c (patch) | |
tree | a53999d531e3fcce21b4718927db4423d73b2278 | |
parent | 6a73ddfcccf46cdc7dafe8345fdd7e964cf2c8b5 (diff) |
renderer: use a uint32_t for shader type
That way an value if (type > PIPE_SHADER_GEOMETRY) guard will actually
work for all values.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | src/vrend_renderer.c | 2 | ||||
-rw-r--r-- | 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, |