nine: Make vdecl_index_map always signed
vdecl_index_map needs to be able to store negative values, but char is not signed on all platforms, so change it to int8_t. Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17698>
This commit is contained in:
parent
5aafe29aee
commit
57dea11e7c
|
@ -839,7 +839,7 @@ update_vertex_elements(struct NineDevice9 *device)
|
||||||
const struct NineVertexShader9 *vs;
|
const struct NineVertexShader9 *vs;
|
||||||
unsigned n, b, i;
|
unsigned n, b, i;
|
||||||
int index;
|
int index;
|
||||||
char vdecl_index_map[16]; /* vs->num_inputs <= 16 */
|
int8_t vdecl_index_map[16]; /* vs->num_inputs <= 16 */
|
||||||
uint16_t used_streams = 0;
|
uint16_t used_streams = 0;
|
||||||
int dummy_vbo_stream = -1;
|
int dummy_vbo_stream = -1;
|
||||||
BOOL need_dummy_vbo = FALSE;
|
BOOL need_dummy_vbo = FALSE;
|
||||||
|
@ -3040,7 +3040,7 @@ update_vertex_elements_sw(struct NineDevice9 *device)
|
||||||
const struct NineVertexShader9 *vs;
|
const struct NineVertexShader9 *vs;
|
||||||
unsigned n, b, i;
|
unsigned n, b, i;
|
||||||
int index;
|
int index;
|
||||||
char vdecl_index_map[16]; /* vs->num_inputs <= 16 */
|
int8_t vdecl_index_map[16]; /* vs->num_inputs <= 16 */
|
||||||
char used_streams[device->caps.MaxStreams];
|
char used_streams[device->caps.MaxStreams];
|
||||||
int dummy_vbo_stream = -1;
|
int dummy_vbo_stream = -1;
|
||||||
BOOL need_dummy_vbo = FALSE;
|
BOOL need_dummy_vbo = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue