mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 04:40:22 +01:00
i965: Use the renderbuffer surface size instead of region size for WM surfaces.
For drawing to lower mipmap levels, the region size makes the renderbuffer be the size of the lowest level, instead of the current level. On DRI1, Brian previously found that the RB size was incorrect, so leave this broken there.
This commit is contained in:
parent
58a57e3fc4
commit
ea6dab2537
1 changed files with 7 additions and 2 deletions
|
|
@ -545,8 +545,13 @@ brw_update_renderbuffer_surface(struct brw_context *brw,
|
|||
irb->texformat->MesaFormat);
|
||||
}
|
||||
key.tiling = region->tiling;
|
||||
key.width = region->width;
|
||||
key.height = region->height;
|
||||
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.pitch = region->pitch;
|
||||
key.cpp = region->cpp;
|
||||
key.draw_offset = region->draw_offset; /* cur 3d or cube face offset */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue