i965: Remove DRI1 leftovers from stipple offset handling.
authorEric Anholt <eric@anholt.net>
Wed, 27 Jan 2010 00:35:27 +0000 (16:35 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 27 Jan 2010 02:02:20 +0000 (18:02 -0800)
src/mesa/drivers/dri/i965/brw_misc_state.c

index 7b70f787b7b63f0c4bdfeee13f18dbf223f3c183..f708ee00632972987fc53acc1e5353fd5b098fa6 100644 (file)
@@ -327,7 +327,7 @@ const struct brw_tracked_state brw_polygon_stipple = {
 
 static void upload_polygon_stipple_offset(struct brw_context *brw)
 {
-   __DRIdrawable *dPriv = brw->intel.driDrawable;
+   GLcontext *ctx = &brw->intel.ctx;
    struct brw_polygon_stipple_offset bpso;
 
    memset(&bpso, 0, sizeof(bpso));
@@ -343,8 +343,8 @@ static void upload_polygon_stipple_offset(struct brw_context *brw)
     * worry about.
     */
    if (brw->intel.ctx.DrawBuffer->Name == 0) {
-      bpso.bits0.x_offset = (32 - (dPriv->x & 31)) & 31;
-      bpso.bits0.y_offset = (32 - ((dPriv->y + dPriv->h) & 31)) & 31;
+      bpso.bits0.x_offset = 0;
+      bpso.bits0.y_offset = (32 - (ctx->DrawBuffer->Height & 31)) & 31;
    }
    else {
       bpso.bits0.y_offset = 0;