summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-18 10:42:15 -0600
committerBrian Paul <[email protected]>2009-04-18 10:42:15 -0600
commit927dc39de0aa3840b6e054128f49a6882771ab19 (patch)
treebca426a40762a2a268d33c1734eb985365d69fda /src/mesa/drivers/dri
parent957a625b2d7cf1f84c917948c8c0f6899d86379e (diff)
i965: use region width, height in brw_update_renderbuffer_surface()
Fixes a regression from commit 2c30fd84dfa052949a117c78d932b58c1f88b446 seen with DRI1.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_surface_state.c4
1 files changed, 2 insertions, 2 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 0dc377be656..71840d1e4e8 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -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 {