From 890b3c61e3b81d4c5623e452317e8faccea91de4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 2 Jun 2010 08:58:24 -0400 Subject: [PATCH] intel: Remove a leftover DRI1/DRI2 conditional --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 9 ++------- 1 file 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; -- 2.30.2