On Fri, 28 Oct 2011 18:11:51 -0400, Kristian Høgsberg <k...@bitplanet.net> wrote: > --- > src/mesa/drivers/dri/intel/intel_context.c | 3 +-- > .../drivers/dri/radeon/radeon_common_context.c | 10 ++++++---- > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/src/mesa/drivers/dri/intel/intel_context.c > b/src/mesa/drivers/dri/intel/intel_context.c > index 6190396..476f9dc 100644 > --- a/src/mesa/drivers/dri/intel/intel_context.c > +++ b/src/mesa/drivers/dri/intel/intel_context.c > @@ -54,7 +54,6 @@ > #include "intel_bufmgr.h" > #include "intel_screen.h" > > -#include "drirenderbuffer.h" > #include "utils.h" > #include "../glsl/ralloc.h" > > @@ -377,7 +376,7 @@ intel_update_renderbuffers(__DRIcontext *context, > __DRIdrawable *drawable) > if (attachments) > free(attachments); > > - driUpdateFramebufferSize(&intel->ctx, drawable); > + intel->ctx.Driver.ResizeBuffers(&intel->ctx, fb, drawable->w, > drawable->h); > }
There's a behavior change in this patch. Previously, driUpdateFramebufferSize() would check for size not changing and not call ResizeBuffers() (aka _mesa_resize_framebuffer(), which has a comment saying "I think we should check if the size is not changing and return early", because it does a bunch of looping over renderbuffers). Now you're calling that function directly. All patches until this one are Reviewed-by: Eric Anholt <e...@anholt.net> but I think for this one we want to fix _mesa_resize_framebuffer() to do what the comment suggests first.
pgpLXylatOGqR.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev