From: Brian Paul Date: Sat, 18 Apr 2009 16:42:15 +0000 (-0600) Subject: i965: use region width, height in brw_update_renderbuffer_surface() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=927dc39de0aa3840b6e054128f49a6882771ab19;p=mesa.git i965: use region width, height in brw_update_renderbuffer_surface() Fixes a regression from commit 2c30fd84dfa052949a117c78d932b58c1f88b446 seen with DRI1. --- 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 {