Module: Mesa
Branch: master
Commit: 0eef4d7f8fd2fc4d1a0dc0d1a583cbccbd9349d6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0eef4d7f8fd2fc4d1a0dc0d1a583cbccbd9349d6

Author: Eric Anholt <e...@anholt.net>
Date:   Fri Jun  8 08:31:30 2018 -0700

v3d: Fix the size of the packed attribute state.

Fixes segfaults in dEQP-GLES3.functional.vertex_array_objects.all_attributes.

---

 src/gallium/drivers/v3d/v3d_context.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/v3d/v3d_context.h 
b/src/gallium/drivers/v3d/v3d_context.h
index a22e1e76ed..f74541fae3 100644
--- a/src/gallium/drivers/v3d/v3d_context.h
+++ b/src/gallium/drivers/v3d/v3d_context.h
@@ -183,7 +183,7 @@ struct v3d_vertex_stateobj {
         struct pipe_vertex_element pipe[VC5_MAX_ATTRIBUTES];
         unsigned num_elements;
 
-        uint8_t attrs[12 * VC5_MAX_ATTRIBUTES];
+        uint8_t attrs[16 * VC5_MAX_ATTRIBUTES];
         struct v3d_bo *default_attribute_values;
 };
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to