iris: Properly unreference extra VBOs for draw parameters
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Oct 2019 17:11:52 +0000 (10:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Oct 2019 18:14:21 +0000 (11:14 -0700)
commitface221283f0be316ae6629155a908d8972c2fa7
tree333ecd8a45d4e4348c73467430b48fe78a35db53
parent6f26eae077af2b4e1f51e9a9524617937afc8e36
iris: Properly unreference extra VBOs for draw parameters

bound_vertex_buffers doesn't include extra draw parameters buffers.
Tracking this correctly is kind of complicated, and iris_destroy_state
isn't exactly in a hot path, so just loop over all VBO bindings.

Fixes: 4122665dd90 (iris: Enable ARB_shader_draw_parameters support)
Reported-by: Sergii Romantsov <sergii.romantsov@globallogic.com>
src/gallium/drivers/iris/iris_state.c