projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dd9218
)
broadcom/vc5: Clamp the instance divisor to 16 bits.
author
Eric Anholt
<eric@anholt.net>
Tue, 20 Mar 2018 17:00:21 +0000
(10:00 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 21 Mar 2018 17:04:21 +0000
(10:04 -0700)
Fixes debug assert on
GTF-GLES3.gtf.GL3Tests.instanced_arrays.instanced_arrays_divisor
Signed-off-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc5/vc5_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc5/vc5_state.c
b/src/gallium/drivers/vc5/vc5_state.c
index 65dd9a2c42b67b48f245ff3d4dc5493a33502d64..75cd948e4a315936f3f413c9d61d3560f55a04f9 100644
(file)
--- a/
src/gallium/drivers/vc5/vc5_state.c
+++ b/
src/gallium/drivers/vc5/vc5_state.c
@@
-319,7
+319,8
@@
vc5_vertex_state_create(struct pipe_context *pctx, unsigned num_elements,
attr.normalized_int_type = desc->channel[0].normalized;
attr.read_as_int_uint = desc->channel[0].pure_integer;
- attr.instance_divisor = elem->instance_divisor;
+ attr.instance_divisor = MIN2(elem->instance_divisor,
+ 0xffff);
switch (desc->channel[0].type) {
case UTIL_FORMAT_TYPE_FLOAT: