diff options
author | Marek Olšák <[email protected]> | 2012-09-13 00:34:01 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-09-30 18:57:56 +0200 |
commit | 6d2f59ce5494a9435b6b3d3faa1d94ba6caad100 (patch) | |
tree | 76c2f542c4f7b04eadaa71f1e5d87d42f9cb060a /src/gallium/drivers/i915/i915_context.c | |
parent | 2a309dc2b4e78c9e49d5b679cae5cf802b772469 (diff) |
i915g: implement blit
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_context.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_context.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c index 988d6591519..1f2ca848100 100644 --- a/src/gallium/drivers/i915/i915_context.c +++ b/src/gallium/drivers/i915/i915_context.c @@ -187,6 +187,13 @@ i915_create_context(struct pipe_screen *screen, void *priv) i915_init_resource_functions(i915); i915_init_query_functions(i915); + /* Create blitter. */ + i915->blitter = util_blitter_create(&i915->base); + assert(i915->blitter); + + /* must be done before installing Draw stages */ + util_blitter_cache_all_shaders(i915->blitter); + draw_install_aaline_stage(i915->draw, &i915->base); draw_install_aapoint_stage(i915->draw, &i915->base); draw_enable_point_sprites(i915->draw, TRUE); @@ -194,10 +201,6 @@ i915_create_context(struct pipe_screen *screen, void *priv) /* augmented draw pipeline clobbers state functions */ i915_init_fixup_state_functions(i915); - /* Create blitter last - calls state creation functions. */ - i915->blitter = util_blitter_create(&i915->base); - assert(i915->blitter); - i915->dirty = ~0; i915->hardware_dirty = ~0; i915->immediate_dirty = ~0; |