diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 888097d297a..41c972c568a 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -51,6 +51,7 @@ #include "brw_context.h" #include "brw_defines.h" +#include "brw_blorp.h" #include "brw_compiler.h" #include "brw_draw.h" #include "brw_state.h" @@ -1048,6 +1049,9 @@ brwCreateContext(gl_api api, brw_init_surface_formats(brw); + if (brw->gen >= 6) + brw_blorp_init(brw); + brw->max_vs_threads = devinfo->max_vs_threads; brw->max_hs_threads = devinfo->max_hs_threads; brw->max_ds_threads = devinfo->max_ds_threads; @@ -1130,6 +1134,9 @@ intelDestroyContext(__DRIcontext * driContextPriv) brw_destroy_shader_time(brw); } + if (brw->gen >= 6) + blorp_finish(&brw->blorp); + brw_destroy_state(brw); brw_draw_destroy(brw); |