Bugzilla – Attachment 72796 Details for
Bug 157051
Xgl flickers on intel graphics chips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Workaround for issue 1
compiz-i810-scissors-workaround.diff (text/plain), 898 bytes, created by
Matthias Hopf
on 2006-03-14 15:11:45 UTC
(
hide
)
Description:
Workaround for issue 1
Filename:
MIME Type:
Creator:
Matthias Hopf
Created:
2006-03-14 15:11:45 UTC
Size:
898 bytes
patch
obsolete
>diff -ur ../compiz-0.0.6-old/src/display.c ./src/display.c >--- ../compiz-0.0.6-old/src/display.c 2006-03-08 12:16:10.000000000 +0100 >+++ ./src/display.c 2006-03-14 15:56:13.000000000 +0100 >@@ -856,6 +856,8 @@ > > if (timeToNextRedraw == 0) > { >+ static int init_i815 = 0; >+ > gettimeofday (&tv, 0); > > timeDiff = TIMEVALDIFF (&tv, &s->lastRedraw); >@@ -889,11 +891,20 @@ > { > s->damageMask = 0; > >+ if (! init_i815) { >+ /* Workaround for i815 scissor bug xorg #6222 */ >+ glEnable (GL_SCISSOR_TEST); >+ glScissor (1, 1, s->width-1, s->height-1); >+ } > (*s->paintScreen) (s, > &defaultScreenPaintAttrib, > &s->region, > PAINT_SCREEN_REGION_MASK | > PAINT_SCREEN_FULL_MASK); >+ if (! init_i815) { >+ glDisable (GL_SCISSOR_TEST); >+ init_i815 = 1; >+ } > > glXSwapBuffers (s->display->display, s->root); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 157051
:
72796
|
72841
|
72842
|
73067