From: Marcin Ślusarz Date: Tue, 28 Jul 2020 09:55:16 +0000 (+0200) Subject: i965: propagate error from gen_perf_begin_query to glBeginPerfQueryINTEL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=884718313c80a2902b6f60b6ded63a6290d40ac7;p=mesa.git 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 Cc: Reviewed-by: Mark Janes Reviewed-by: Lionel Landwerlin Part-of: --- diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c index ab2f200a1fa..6c74403da6c 100644 --- a/src/mesa/drivers/dri/i965/brw_performance_query.c +++ b/src/mesa/drivers/dri/i965/brw_performance_query.c @@ -247,12 +247,12 @@ brw_begin_perf_query(struct gl_context *ctx, DBG("Begin(%d)\n", o->Id); - gen_perf_begin_query(perf_ctx, obj); + bool ret = gen_perf_begin_query(perf_ctx, obj); if (INTEL_DEBUG & DEBUG_PERFMON) dump_perf_queries(brw); - return true; + return ret; } /**