mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
broadcom/vc5: Clamp the instance divisor to 16 bits.
Fixes debug assert on GTF-GLES3.gtf.GL3Tests.instanced_arrays.instanced_arrays_divisor Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
3dd92184d5
commit
ba87d85b04
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue