mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
draw: allow overflows in the llvm paths
Because our code couldn't handle it we were skipping rendering if we detected overflows. According to the spec we should still render but with all 0 vertices, which is what the llvm code already does. So for the llvm paths lets enable processing even if an overflow condition has been detected. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
f96326b2f6
commit
29dacd9803
1 changed files with 8 additions and 4 deletions
|
|
@ -508,11 +508,15 @@ draw_vbo(struct draw_context *draw,
|
|||
draw->pt.vertex_element,
|
||||
draw->pt.nr_vertex_elements,
|
||||
info);
|
||||
|
||||
if (index_limit == 0) {
|
||||
#if HAVE_LLVM
|
||||
if (!draw->llvm)
|
||||
#endif
|
||||
{
|
||||
if (index_limit == 0) {
|
||||
/* one of the buffers is too small to do any valid drawing */
|
||||
debug_warning("draw: VBO too small to draw anything\n");
|
||||
return;
|
||||
debug_warning("draw: VBO too small to draw anything\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* If we're collecting stats then make sure we start from scratch */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue