Commit 3767dbf1 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie

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: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 6a73ddfc
......@@ -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;
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment