Module: Mesa
Branch: main
Commit: 57dea11e7ca492733be14c1832f93814b75d242c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=57dea11e7ca492733be14c1832f93814b75d242c

Author: Icecream95 <[email protected]>
Date:   Mon Oct 19 00:36:10 2020 +1300

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17698>

---

 src/gallium/frontends/nine/nine_state.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/frontends/nine/nine_state.c 
b/src/gallium/frontends/nine/nine_state.c
index c991aa312a5..f800dd94f64 100644
--- a/src/gallium/frontends/nine/nine_state.c
+++ b/src/gallium/frontends/nine/nine_state.c
@@ -839,7 +839,7 @@ update_vertex_elements(struct NineDevice9 *device)
     const struct NineVertexShader9 *vs;
     unsigned n, b, i;
     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;
     int dummy_vbo_stream = -1;
     BOOL need_dummy_vbo = FALSE;
@@ -3040,7 +3040,7 @@ update_vertex_elements_sw(struct NineDevice9 *device)
     const struct NineVertexShader9 *vs;
     unsigned n, b, i;
     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];
     int dummy_vbo_stream = -1;
     BOOL need_dummy_vbo = FALSE;

Reply via email to