diff options
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c index 11e868f405d..a3b1c5e4d92 100644 --- a/src/gallium/drivers/ilo/ilo_context.c +++ b/src/gallium/drivers/ilo/ilo_context.c @@ -91,6 +91,8 @@ ilo_context_destroy(struct pipe_context *pipe) { struct ilo_context *ilo = ilo_context(pipe); + ilo_cleanup_states(ilo); + if (ilo->last_cp_bo) ilo->last_cp_bo->unreference(ilo->last_cp_bo); @@ -148,6 +150,8 @@ ilo_context_create(struct pipe_screen *screen, void *priv) ilo_init_video_functions(ilo); ilo_init_gpgpu_functions(ilo); + ilo_init_states(ilo); + /* this must be called last as u_blitter is a client of the pipe context */ ilo->blitter = util_blitter_create(&ilo->base); if (!ilo->blitter) { |