I think this assert is no longer valid:
assert(sz == vmesa->total_alloc[heap])
in via_tex.c line 429
There are a few linked lists to maintain references to the textures in use, one of those lists contains the textures pending to be released but that assert does not consider it.
There are many, many bugs depending on this assert on the net.
Googling "viaSwapOutWork" will show some of these.
I have a similar problem: when I use glCallLists() on lists returned by glXUseXFont(), the first time I run my program, I have this error:
via_tex.c: viaSwapOutWork: Assertion 'sz == vmesa->total_alloc[heap]' failed.
from the second run on, everything runs fine.
If this assert is unnecessary, I think it should be removed as soon as possible, since it is the root of many other bugs, for example:
*** Bug 15668 has been marked as a duplicate of this bug. ***
Mass version move, cvs -> git
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/openchrome/old-bug-database/issues/5.