i965: use region width, height in brw_update_renderbuffer_surface()
authorBrian Paul <brianp@vmware.com>
Sat, 18 Apr 2009 16:42:15 +0000 (10:42 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 18 Apr 2009 16:42:15 +0000 (10:42 -0600)
Fixes a regression from commit 2c30fd84dfa052949a117c78d932b58c1f88b446
seen with DRI1.

src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 0dc377be656fadb70bd2879e30f50bb5ada2925e..71840d1e4e8e72968863ce5f459ce5b6ee8b3825 100644 (file)
@@ -546,8 +546,8 @@ brw_update_renderbuffer_surface(struct brw_context *brw,
                       irb->texformat->MesaFormat);
       }
       key.tiling = region->tiling;
-      key.width = rb->Width;
-      key.height = rb->Height;
+      key.width = region->width;
+      key.height = region->height;
       key.pitch = region->pitch;
       key.cpp = region->cpp;
    } else {