intel: Remove a leftover DRI1/DRI2 conditional
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 2 Jun 2010 12:58:24 +0000 (08:58 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 2 Jun 2010 22:07:14 +0000 (18:07 -0400)
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index e51a1a0..feaa2e1 100644 (file)
@@ -519,13 +519,8 @@ brw_update_renderbuffer_surface(struct brw_context *brw,
         _mesa_problem(ctx, "Bad renderbuffer format: %d\n", irb->Base.Format);
       }
       key.tiling = region->tiling;
-      if (brw->intel.intelScreen->driScrnPriv->dri2.enabled) {
-        key.width = rb->Width;
-        key.height = rb->Height;
-      } else {
-        key.width = region->width;
-        key.height = region->height;
-      }
+      key.width = rb->Width;
+      key.height = rb->Height;
       key.pitch = region->pitch;
       key.cpp = region->cpp;
       key.draw_x = region->draw_x;