projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e163f
)
nouveau: fix pointer-sign warning
author
Timothy Arceri
<tarceri@itsqueeze.com>
Fri, 3 Jul 2020 01:37:45 +0000
(11:37 +1000)
committer
Marge Bot
<eric+marge@anholt.net>
Sat, 4 Jul 2020 00:32:26 +0000
(
00:32
+0000)
Fixes: e630271e0ec3 ("mesa: don't ever set NullBufferObj in gl_vertex_array_binding")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5730>
src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
b/src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
index 8a7d0f4a3387c39ecd0233ede94cbc52ccd1de87..e6274d45cf486f14cc499b838a4c43ec27f855bb 100644
(file)
--- a/
src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
+++ b/
src/mesa/drivers/dri/nouveau/nouveau_vbo_t.c
@@
-346,7
+346,7
@@
vbo_bind_vertices(struct gl_context *ctx, const struct tnl_vertex_array *arrays,
sp = (char *)ADD_POINTERS(
nouveau_bufferobj_sys(obj), p) + delta;
} else {
- sp =
p + delta
;
+ sp =
(char *)(p + delta)
;
}
char *dp = nouveau_get_scratch(ctx, n * a->stride,
&bo[i], &offset[i]);