i915g: Implement stipple with draw.
authorStéphane Marchesin <marcheu@chromium.org>
Tue, 7 Feb 2012 22:42:30 +0000 (14:42 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Mon, 13 Feb 2012 00:32:14 +0000 (16:32 -0800)
src/gallium/drivers/i915/i915_context.c
src/gallium/drivers/i915/i915_state.c

index 5ad5bff2352e1884448960dd8be7eef196e76dec..394e1f38d7ace54b12acafb9882dd60298753c26 100644 (file)
@@ -186,6 +186,7 @@ i915_create_context(struct pipe_screen *screen, void *priv)
 
    draw_install_aaline_stage(i915->draw, &i915->base);
    draw_install_aapoint_stage(i915->draw, &i915->base);
+   draw_install_pstipple_stage(i915->draw, &i915->base);
    draw_enable_point_sprites(i915->draw, TRUE);
 
    /* augmented draw pipeline clobbers state functions */
index d0063e3901aed6a9d77b69d2f6b2b006caf4899b..764547e3e064a145a4e899a7c1808ae197147cd3 100644 (file)
@@ -553,8 +553,11 @@ static void i915_set_scissor_state( struct pipe_context *pipe,
 
 
 static void i915_set_polygon_stipple( struct pipe_context *pipe,
-                                   const struct pipe_poly_stipple *stipple )
+                                      const struct pipe_poly_stipple *stipple )
 {
+   struct i915_context *i915 = i915_context(pipe);
+
+   draw_flush(i915->draw);
 }