mesa: correctly allocate space for converted primtives
authorantonino <antonino.maniscalco@collabora.com>
Tue, 21 Mar 2023 14:35:59 +0000 (15:35 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Mar 2023 13:11:12 +0000 (13:11 +0000)
commitd4a6c97779b851aac66da4369500ca53d4cf056d
tree705fd3580c3c5b99d196897c1d963a0041f5db25
parentd9e68f4e406d9afb22a4d0b7efb43450caa0b74c
mesa: correctly allocate space for converted primtives

Previosuly it was assumed that primitives where always converted to
triangles if the driver did not support all primitives, however that's
not true for a driver that supports quads but not quad strips.

Fixes piglit spec@!opengl 1.1@dlist-fdo3129-01 on Panfrost

Fixes: dcbf2423d28 ("vbo/dlist: add vertices to incomplete primitives")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21987>
src/mesa/vbo/vbo_save_api.c
src/panfrost/ci/panfrost-g52-fails.txt