Bug 26053

Summary: [bisected] some 3D fail to run due to swapbuffer merge
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i915Assignee: Jesse Barnes <jbarnes>
Status: VERIFIED FIXED QA Contact:
Severity: blocker    
Priority: highest CC: jian.j.zhao, xunx.fang
Version: git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Shuang He 2010-01-14 18:10:21 UTC
System Environment:
--------------------------
Libdrm:         (master)74937cda177363ff4ede9e2b4ea2bec04cda892e
Mesa:           (master)81430b95d094f81548b9256bc47a8912d9dfd245
Xserver:                (master)6f6a99abc12ddee82898fdabfb50c17e90e094b9
Xf86_video_intel:               (master)96f45c66eed2631eba98ae416c3afdf540fa5c34


Bug detailed description:
-------------------------
This issue happens on G45.
glxgears failed to run with following complaints:
Running synchronized to the vertical refresh.  The framerate should be
approximately 1/1936613746 the monitor refresh rate.
(EE) intel(0): [DRI2] DRI2SwapBuffers: driver failed to schedule swap
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  136 (DRI2)
  Minor opcode of failed request:  8 ()
  Resource id in failed request:  0x600002
  Serial number of failed request:  33
  Current serial number in output stream:  33

bisect show following commit brings in this issue:
commit c6ef705e414c8e93ee471f50d15ada3492a9b067
Merge: cca66db... 7c50d29...
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Mon Jan 11 15:23:29 2010 -0500

    Merge branch 'master' of ssh://people.freedesktop.org/~jbarnes/mesa

    Conflicts due to DRI1 removal:
        src/mesa/drivers/dri/intel/intel_context.c
        src/mesa/drivers/dri/intel/intel_screen.c
Comment 1 Shuang He 2010-01-14 18:13:33 UTC
This commit also make following test case failed:
piglit/general/read-front
piglit/general/texgen
Comment 2 Gordon Jin 2010-01-18 00:18:03 UTC
*** Bug 26064 has been marked as a duplicate of this bug. ***
Comment 3 Shuang He 2010-01-20 17:36:58 UTC
Like bug 26064 stated, there's also 10% performance regression on G45
Comment 4 Jesse Barnes 2010-01-26 12:45:10 UTC
Can you try again with Mesa master?  I pushed a fix for a conflict that arose when the code was merged.
Comment 5 Jesse Barnes 2010-01-26 14:45:40 UTC
*** Bug 26162 has been marked as a duplicate of this bug. ***
Comment 6 Shuang He 2010-01-26 18:36:37 UTC
(In reply to comment #4)
> Can you try again with Mesa master?  I pushed a fix for a conflict that arose
> when the code was merged.
> 

I've tried mesa git tip (master)25b8ce3a6aa67db96550946aab94bd3416e5b10a

This issue still exists
Comment 7 Shuang He 2010-01-26 19:00:30 UTC
And there also one clue in Xorg log, it says:
(WW) intel(0): first get vblank counter failed: Invalid argument
Comment 8 Shuang He 2010-01-27 01:02:34 UTC
(In reply to comment #7)
> And there also one clue in Xorg log, it says:
> (WW) intel(0): first get vblank counter failed: Invalid argument
> 

I don't know why, but I can't reproduce this issue on G45 now.

Jian, could you also try that on other machines.
Comment 9 zhao jian 2010-01-28 02:11:07 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > And there also one clue in Xorg log, it says:
> > (WW) intel(0): first get vblank counter failed: Invalid argument
> > 
> I don't know why, but I can't reproduce this issue on G45 now.
> Jian, could you also try that on other machines.

openarena still can't run on 945GM, and on G45 its performance is still low. And I build the newest code, find it can't run with our dri driver for some mistake in the new checked in codes. With the following error information: 
(EE) AIGLX error: dlopen of /opt/X11R7/lib/dri/ _dri.so failed (/opt/X11R7/lib/dri/     _dri.so: cannot open shared object file: No such file or directory)
Comment 10 Jesse Barnes 2010-02-03 14:24:29 UTC
You'll need up-to-date X server bits for things to work.  The DRI load failure looks like a config or build problem.
Comment 11 Shuang He 2010-02-04 21:13:12 UTC
glxgears runs well with latest bits on G45 and 945GM:
Libdrm 	(master)1802e1a4e747b5906d3af10c4a53fd457eddcbb4
Mesa 	(master)5a743d9c513e6a36612872f270ea97b269451280
Xserver 	(master)db687f718f760ba254ab51994769db101dc9ca3a
Xf86_video_intel 	(master)1a76fa5574e8e8f88ac3518a4e4494e1af301dc1
Kernel 	(drm-intel-next)a9c8bea64706f86a9107ab41e7a3e284d1508f9c
Comment 12 Shuang He 2010-02-04 21:13:32 UTC
(In reply to comment #11)
> glxgears runs well with latest bits on G45 and 945GM:
> Libdrm  (master)1802e1a4e747b5906d3af10c4a53fd457eddcbb4
> Mesa    (master)5a743d9c513e6a36612872f270ea97b269451280
> Xserver         (master)db687f718f760ba254ab51994769db101dc9ca3a
> Xf86_video_intel        (master)1a76fa5574e8e8f88ac3518a4e4494e1af301dc1
> Kernel  (drm-intel-next)a9c8bea64706f86a9107ab41e7a3e284d1508f9c
> 

verified. Thanks

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.