https://bugzilla.kernel.org/show_bug.cgi?id=213145
--- Comment #9 from Tomas Gayoso (tgayoso@gmail.com) --- Created attachment 297243 --> https://bugzilla.kernel.org/attachment.cgi?id=297243&action=edit patch for mesa 21.1.2
Thanks for the irony.
Recompiling Mesa 21.1.2 with the attached patch fixes the issue for me in kernels 5.10.42 and 5.12.9.
I followed this suggestion from the mesa bug report:
can you try 21.1.2 and change this line: file: src/mesa/main/draw.c function: validate_draw_arrays
change: if (count < 0 || numInstances < 0) into: if (count <= 0 || numInstances <= 0)
Cheers,