Skip to content

svga: Fix instanced draw detection

Zack Rusin requested to merge zack/mesa:svga-gtk-fix into main

svga: Fix instanced draw detection

The new GTK+ GL renderer is extensively using instanced rendering. SVGA driver was incorrectly detecting the instanced draws by only checking whether the instance count was greater than 1. Base instance has to be also checked to make sure that the draw correctly offsets the vertex buffer.

Fix instanced draw detection by checking both the instance count and the base instance. Fixes the new GTK+ 4 GL renderer.

Signed-off-by: Zack Rusin Fixes: ccb4ea5a ("svga: Add GL4.1(compatibility profile) support in svga driver")

Merge request reports