Bug 13058

Summary: [i915 i965 GLX_SGI_swap_control] glxgears get tearing output
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i915Assignee: Default DRI bug account <dri-devel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: jbarnes, krh
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: glxinfo output

Description Shuang He 2007-11-01 20:55:45 UTC
System Environment:
--------------------------

--Platform: i915, i965
--Architecture(32-bit,64-bit,compatiblity):all
--2D driver: 50d3693a6862028e50bc5ba8c788e7ea573c3eb8
--Mesa: ee793281b221415f794af6aadaa9764023612e0b
--DRM: 1b176e76134224e2af94d24ff7b33c7b536eaeea
--Xserver: 566610680c4e1cab3e7fc7146adbeaba52fdd0ad
--Kernel: 2.6.22-rc5

Bug detailed description:
--------------------------
glxgears get obviously tearing
it seems it's caused by   's issue
GLX_SGI_video_sync is working well


Reproduce steps:
----------------
start X
run glxgears


Current result:
----------------
have obvious tearing


Expected result:
----------------
run smoothly


Basic root-causing log:
----------------------
caused by issues in OpenGL extension GLX_SGI_swap_control
Comment 1 Kristian Høgsberg 2007-11-02 06:47:36 UTC
I think it's causes by glxgears picking a the composite glx visual, which has no double buffer or depth buffer.  Try disabling composite as a workaround, and please also attach output of glxinfo.
Comment 2 Shuang He 2007-11-04 17:37:37 UTC
Created attachment 12350 [details]
glxinfo output
Comment 3 Shuang He 2007-11-04 17:49:36 UTC
(In reply to comment #1)
> I think it's causes by glxgears picking a the composite glx visual, which has
> no double buffer or depth buffer.  Try disabling composite as a workaround, and
> please also attach output of glxinfo.
> 

By adding following line to xorg.conf, this issue still exist.
Option "Composite" "Disable"
Comment 4 Michel Dänzer 2007-11-05 07:26:03 UTC
Actually, glxgears seems to choose the right visual here (0x21, the default one). However, the driver's CreateContext function gets called with a pointer to the RGBA visual somehow.
Comment 5 Kristian Høgsberg 2007-11-05 14:04:28 UTC
There's a fix on mesa master now (8e66c3d7552bf33163bb8ac2a6d3963bad1b0eb4), that should fix this problem.  Please give it a try and see if it fixes the issue.
o
Comment 6 Shuang He 2007-11-05 20:57:17 UTC
Thanks Kristian Høgsberg
verified for both 32-bit and 64-bit
Comment 7 Adam Jackson 2009-08-24 12:28:16 UTC
Mass version move, cvs -> git

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.