Commit a191e6b7 authored by Nicolai Hähnle's avatar Nicolai Hähnle

radeonsi: fix bounds check in si_create_vertex_elements

This was triggered by

Cc: "11.1 11.2" <>
Reviewed-by: default avatarBas Nieuwenhuizen <>
Reviewed-by: default avatarMarek Olšák <>
parent 4285a97c
......@@ -3278,7 +3278,7 @@ static void *si_create_vertex_elements(struct pipe_context *ctx,
struct si_vertex_element *v = CALLOC_STRUCT(si_vertex_element);
int i;
assert(count < SI_MAX_ATTRIBS);
assert(count <= SI_MAX_ATTRIBS);
if (!v)
return NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment