mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 00:00:12 +01:00
radeonsi: fix bounds check in si_create_vertex_elements
This was triggered by
dEQP-GLES3.functional.vertex_array_objects.all_attributes
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit a191e6b719)
This commit is contained in:
parent
389d5bbc98
commit
fbdd845ed2
1 changed files with 1 additions and 1 deletions
|
|
@ -3284,7 +3284,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue