Re: [Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Benjamin Franzke
This fixes gears from the wayland-demos, where the cairo-gl context and the gears context render to the same surface, but the gears context renders to old buffers, because of the missing invalidate. So yea, fixes a bug. 2011/6/21 Jakob Bornecrantz : > On Tue, Jun 21, 2011 at 1:40 PM, Benjamin Fran

Re: [Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Jakob Bornecrantz
On Tue, Jun 21, 2011 at 1:40 PM, Benjamin Franzke wrote: > Actually I wasnt sure, but theres nothing like that in glx/dri2_glx.c > or egl_dri2. > Furthermore the intel driver does sth similar. I was talking about st/mesa (GL), I'm not to familiar with the st_manager.c and/or the drawable code but

Re: [Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Benjamin Franzke
Actually I wasnt sure, but theres nothing like that in glx/dri2_glx.c or egl_dri2. Furthermore the intel driver does sth similar. 2011/6/21 Jakob Bornecrantz : > On Tue, Jun 21, 2011 at 1:32 PM, Benjamin Franzke > wrote: >> --- >>  .../state_trackers/dri/common/dri_context.c        |    5 + >

Re: [Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Jakob Bornecrantz
On Tue, Jun 21, 2011 at 1:32 PM, Benjamin Franzke wrote: > --- >  .../state_trackers/dri/common/dri_context.c        |    5 + >  1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/state_trackers/dri/common/dri_context.c > b/src/gallium/state_trackers/dri/common/dri_

[Mesa-dev] [PATCH] st/dri: Invalidate drawables on context switch

2011-06-21 Thread Benjamin Franzke
--- .../state_trackers/dri/common/dri_context.c|5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c index e23c1bc..0f9e4e5 100644 --- a/src/gallium/state_track