diff options
author | Chia-I Wu <[email protected]> | 2012-12-13 05:15:10 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-04-26 16:16:42 +0800 |
commit | 0754ff33e3b500d756a2065b601e8dd68252c81e (patch) | |
tree | 1a0f63f0c8ca390a864422dc2f880afafeb7b8ab /src/gallium/drivers/ilo/ilo_context.c | |
parent | 89d1702b9b31488ae95a4364b4161b9186d5220b (diff) |
ilo: hook up pipe context blit functions
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_context.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.c b/src/gallium/drivers/ilo/ilo_context.c index d92b07811ea..82da56e7196 100644 --- a/src/gallium/drivers/ilo/ilo_context.c +++ b/src/gallium/drivers/ilo/ilo_context.c @@ -25,6 +25,7 @@ * Chia-I Wu <[email protected]> */ +#include "util/u_blitter.h" #include "intel_chipset.h" #include "ilo_3d.h" @@ -100,6 +101,8 @@ ilo_context_destroy(struct pipe_context *pipe) if (ilo->last_cp_bo) ilo->last_cp_bo->unreference(ilo->last_cp_bo); + if (ilo->blitter) + util_blitter_destroy(ilo->blitter); if (ilo->shader_cache) ilo_shader_cache_destroy(ilo->shader_cache); if (ilo->cp) @@ -203,6 +206,13 @@ ilo_context_create(struct pipe_screen *screen, void *priv) ilo_init_video_functions(ilo); ilo_init_gpgpu_functions(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) { + ilo_context_destroy(&ilo->base); + return NULL; + } + return &ilo->base; } |