From 2dc29e095f9daffd9da722919fa08ca912ab8f04 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 23 Apr 2018 10:40:04 -0700 Subject: [PATCH] i965: Don't leak blorp on Gen4-5. We used to only initialize BLORP on Gen6+. When we added it on Gen4-5, we forgot to destroy it unconditionally. Fixes: 752d7af77a52898cebf5597def4fdd38b1d6303e (i965: Add blorp support for gen4-5) Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 9da7e283ed9..b954a2916d9 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -1119,8 +1119,7 @@ intelDestroyContext(__DRIcontext * driContextPriv) brw_destroy_shader_time(brw); } - if (devinfo->gen >= 6) - blorp_finish(&brw->blorp); + blorp_finish(&brw->blorp); brw_destroy_state(brw); brw_draw_destroy(brw); -- 2.30.2