projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1621fd
)
st/mesa: notify u_vbuf/driver that draw index bounds are unknown for indirect
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 17 Jul 2018 05:50:42 +0000
(
01:50
-0400)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 18 Jul 2018 17:33:30 +0000
(13:33 -0400)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_draw.c
b/src/mesa/state_tracker/st_draw.c
index dee69783adae945044ac736dd48e56baf49c9952..eb52d9505b68fc58910478608f0256151cc11a8c 100644
(file)
--- a/
src/mesa/state_tracker/st_draw.c
+++ b/
src/mesa/state_tracker/st_draw.c
@@
-261,6
+261,7
@@
st_indirect_draw_vbo(struct gl_context *ctx,
memset(&indirect, 0, sizeof(indirect));
util_draw_init_info(&info);
info.start = 0; /* index offset / index size */
+ info.max_index = ~0u; /* so that u_vbuf can tell that it's unknown */
if (ib) {
struct gl_buffer_object *bufobj = ib->obj;