aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-06-02 08:58:24 -0400
committerKristian Høgsberg <[email protected]>2010-06-02 18:07:14 -0400
commit890b3c61e3b81d4c5623e452317e8faccea91de4 (patch)
treef23e7279d37faa115f53f4cefe68cc1ee516152d
parent2c30a8d8f9aa405d3d30e75371b2d6643ecd8d32 (diff)
intel: Remove a leftover DRI1/DRI2 conditional
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index e51a1a0e26a..feaa2e1f402 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -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;