Mesa (master): radeonsi: fix bounds check in si_create_vertex_elements
Nicolai Hähnle
nh at kemper.freedesktop.org
Tue Apr 12 21:33:21 UTC 2016
Module: Mesa
Branch: master
Commit: a191e6b719848a17963f185954f1696fa5a2bcb1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a191e6b719848a17963f185954f1696fa5a2bcb1
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Tue Apr 12 12:23:31 2016 -0500
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 at lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_state.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 85ee1c4..664506e 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -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;
More information about the mesa-commit
mailing list