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>
macos/master
Marc-André Lureau 9 years ago committed by Dave Airlie
parent 6a73ddfccc
commit 3767dbf18c
  1. 2
      src/vrend_renderer.c
  2. 2
      src/vrend_renderer.h

@ -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,

Loading…
Cancel
Save