OSDN Git Service

mesa: avoid triggering assert in implementation
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 16 Dec 2019 15:58:41 +0000 (17:58 +0200)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 17 Dec 2019 17:21:14 +0000 (09:21 -0800)
commit687df737af0a07e90e5f9f0b303fc320f9a0839f
tree448fe6fb458c24decaf850845c4befd040ced474
parent1949c2a323b98e5fdc7062cc113305d76fef7486
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>
(cherry picked from commit 2c8742ed858c6446c93bddec117abf467a393c35)
src/mesa/main/performance_query.c