i965: propagate error from gen_perf_begin_query to glBeginPerfQueryINTEL
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Tue, 28 Jul 2020 09:55:16 +0000 (11:55 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jul 2020 10:44:41 +0000 (10:44 +0000)
commit884718313c80a2902b6f60b6ded63a6290d40ac7
treec00b05ef7d9e9adfc3fb7cceab01b94bcc2dbed8
parent627c01977c29d142d5024591bf910a1ed92814c9
i965: 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/mesa/drivers/dri/i965/brw_performance_query.c