From: Kenneth Graunke Date: Mon, 23 Apr 2018 17:40:04 +0000 (-0700) Subject: i965: Don't leak blorp on Gen4-5. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2dc29e095f9daffd9da722919fa08ca912ab8f04;p=mesa.git 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 --- 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);