iris: propagate error from gen_perf_begin_query to glBeginPerfQueryINTEL
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 27 Jul 2020 19:10:25 +0000 (21:10 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jul 2020 10:44:41 +0000 (10:44 +0000)
commit627c01977c29d142d5024591bf910a1ed92814c9
tree7481d1c902bd5d33094ba9baf9094083d3842f4a
parent0f9131d096e45d8296260c5b2f62db11a64efa2d
iris: propagate error from gen_perf_begin_query to glBeginPerfQueryINTEL

Otherwise mesa will crash in glEndPerfQueryINTEL because OA BO is NULL.

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6094>
src/gallium/drivers/iris/iris_performance_query.c
src/gallium/include/pipe/p_context.h
src/mesa/state_tracker/st_cb_perfquery.c