mesa: avoid triggering assert in implementation
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 16 Dec 2019 15:58:41 +0000 (17:58 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Dec 2019 12:52:04 +0000 (12:52 +0000)
commit2c8742ed858c6446c93bddec117abf467a393c35
tree6ad552492013fa72e5a1c999c50aabf4ddf3bd34
parentd399f4f4144c2cde5d096630a627dc160270cc62
mesa: avoid triggering assert in implementation

When tearing down a GL context with an active performance query, the
implementation can be confused by a query marked active when it's
being deleted.

This shouldn't happen in the implementation because the context will
already be idle.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2235
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3115>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3115>
src/mesa/main/performance_query.c