diff options
author | Stéphane Marchesin <[email protected]> | 2011-12-28 12:35:41 -0800 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-12-28 12:36:26 -0800 |
commit | 11cdf24d15763131a7ab4b366cad78116884d045 (patch) | |
tree | 9cb5bddface03c39b88acd7bf36427e5f4099695 /src | |
parent | 62e968d6dab2339a530ba1176b6a433d95db938a (diff) |
i915g: Add missing draw_flush call.
Fixes a bunch of corruption bugs, especially some missing clipped triangles.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i915/i915_context.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c index 5a61740422b..5ad5bff2352 100644 --- a/src/gallium/drivers/i915/i915_context.c +++ b/src/gallium/drivers/i915/i915_context.c @@ -92,6 +92,13 @@ i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) if (i915->num_vertex_sampler_views > 0) i915_cleanup_vertex_sampling(i915); + + /* + * TODO: Flush only when a user vertex/index buffer is present + * (or even better, modify draw module to do this + * internally when this condition is seen?) + */ + draw_flush(i915->draw); } |