Summary: | src/gallium/auxiliary/util/u_draw.c:77:util_draw_max_index: Assertion `buffer_size - format_size <= buffer_size' failed. | ||
---|---|---|---|
Product: | Mesa | Reporter: | Vinson Lee <vlee> |
Component: | Mesa core | Assignee: | Jose Fonseca <jfonseca> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | CC: | brianp |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Vinson Lee
2011-04-04 09:51:14 UTC
3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7 is the first bad commit commit 3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7 Author: José Fonseca <jfonseca@vmware.com> Date: Thu Mar 31 14:40:25 2011 +0100 draw: Prevent out-of-bounds vertex buffer access. Based on some code and ideas from Keith Whitwell. :040000 040000 b8144c16b0d642d2b79127b74bf02b08d14f90e9 556d7b6865ca394baf751a903aaadd0cf72a9e71 M src bisect run success Fixed with commit 6cab07685fa48174b310e52b26151a8fb8a8e6dc mesa: 14b574433c7faedaa18f1c946159cb03630c7d9f (master) The assert is still triggered with the piglit attribute0 test. attribute0 previously failed gracefully without an assert. $ ./bin/attribute0 -auto util/u_draw.c:77:util_draw_max_index: Assertion `buffer_size - format_size <= buffer_size' failed. I'm looking at this and other cases where this assertion fails. Should be fixed with commit 0c501bacef3738b55986292abca149dcfe76d72d: Author: José Fonseca <jfonseca@vmware.com> Date: Thu Apr 7 12:19:14 2011 +0100 mesa/st: Fix user buffer size computation when stride is zero. Although for GL a zero stride means tightly packed elements, Mesa internally uses zero strides for constant arrays. Therefore user buffers need to be defined from buffer_offset + src_offset + min_index*stride to buffer_offset + src_offset + max_index*stride + elem_size Simplifying the later with (max_index + 1)*stride will give zero sized buffers. This change also aggregates the st_context's info about user buffers into a single array. mesa: 6638b4a590aa07dbe05f6647da90a00a4c0d57a8 (master) Verified fixed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.