mesa: use _mesa_delete_query in drivers
authorYevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Thu, 1 Aug 2019 11:11:44 +0000 (14:11 +0300)
committerEric Anholt <eric@anholt.net>
Wed, 7 Aug 2019 17:25:22 +0000 (17:25 +0000)
commit4f767ded6effc60f7542089f368614f3d51bbba5
treef2e67ccca85d27e5a03e0799cc5835563a0beca2
parent4619535ab7d728166da6b417b192ceea13aab26e
mesa: use _mesa_delete_query in drivers

Now drivers can call _mesa_delete_query once driver-specific
clean-up has been done. Brings into conformity with how other GL
objects are handled.

CC: Eric Anholt <eric@anholt.net>
CC: Kenneth Graunke <kenneth@whitecape.org>
Suggested-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/mesa/drivers/dri/i965/brw_queryobj.c
src/mesa/drivers/dri/radeon/radeon_queryobj.c
src/mesa/main/queryobj.c
src/mesa/main/queryobj.h
src/mesa/state_tracker/st_cb_queryobj.c