i965: Don't leak blorp on Gen4-5.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Apr 2018 17:40:04 +0000 (10:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2018 06:05:59 +0000 (23:05 -0700)
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 <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.c

index 9da7e283ed96c9dd68faaa105fbc17e983e41717..b954a2916d98ad033c38d0f3c1f07e82bfd33fd5 100644 (file)
@@ -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);