diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-09-12 15:15:24 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-10-15 18:22:57 -0700 |
commit | 3b3591cd152fb46eedad234c86745de972339459 (patch) | |
tree | f3df3f6cd496bb306eac406dd831d73438f2a620 | |
parent | b1e7cd037e42255a249391547ce24cf4a3faba25 (diff) | |
download | external_mesa3d-3b3591cd152fb46eedad234c86745de972339459.zip external_mesa3d-3b3591cd152fb46eedad234c86745de972339459.tar.gz external_mesa3d-3b3591cd152fb46eedad234c86745de972339459.tar.bz2 |
draw: make vs_slot signed.
Otherwise (vs_slot < 0) will never be true.
Trivial.
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c index 13d3d3b..f4fbb4c 100644 --- a/src/gallium/auxiliary/draw/draw_gs.c +++ b/src/gallium/auxiliary/draw/draw_gs.c @@ -126,7 +126,8 @@ static void tgsi_fetch_gs_input(struct draw_geometry_shader *shader, unsigned prim_idx) { struct tgsi_exec_machine *machine = shader->machine; - unsigned slot, vs_slot, i; + unsigned slot, i; + int vs_slot; unsigned input_vertex_stride = shader->input_vertex_stride; const float (*input_ptr)[4]; @@ -225,7 +226,8 @@ llvm_fetch_gs_input(struct draw_geometry_shader *shader, unsigned num_vertices, unsigned prim_idx) { - unsigned slot, vs_slot, i; + unsigned slot, i; + int vs_slot; unsigned input_vertex_stride = shader->input_vertex_stride; const float (*input_ptr)[4]; float (*input_data)[6][PIPE_MAX_SHADER_INPUTS][TGSI_NUM_CHANNELS][TGSI_NUM_CHANNELS] = &shader->gs_input->data; |