diff options
author | Kenneth Graunke <[email protected]> | 2018-04-23 10:40:04 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2018-05-07 23:05:59 -0700 |
commit | 2dc29e095f9daffd9da722919fa08ca912ab8f04 (patch) | |
tree | 19b6bc7c5dc69cea56f2343c45e8fda5eee4a6b2 /src/mesa | |
parent | ed5af9437344f932f8cbebfa776f873d16a8aae1 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 3 |
1 files changed, 1 insertions, 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); |