Bug 14926

Summary: [i915 i965] run glean report GLXBadContextTag
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i915Assignee: Kristian Høgsberg <krh>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: high CC: dri-devel
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: xorg conf
xorg log

Description Shuang He 2008-03-09 18:47:55 UTC
System Environment:
--------------------------

--Platform:i915 i965

--Architecture(32-bit,64-bit,compatiblity):all 

--2D driver:
commit f2b9f387af7f618ad083b1ec8bee513ff2157d06

--3D driver:
commit 3d28a2690f3752990be50a25447747e237d7bee9

--Xserver:
commit 911f0c147699d3b8d97491be2ef6d2e4a6682a0b

--Drm:
commit 2848f048616c2c97f02701386ee73137a1307e2c


--Kernel:
2.6.24-rc5


Bug detailed description:
-------------------------
run glean will report as following, and quit:
[root@x-945gm bin]# ./glean -o -r test -t api2
api2:  NOTE rgba8, db, z24, s8, win+pmap, id 33
        Test skipped/non-applicable
X Error of failed request:  GLXBadContextTag
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  50
  Current serial number in output stream:  50
[root@x-945gm bin]# ./glean -o -r test -t -api2
basic:  PASS rgba8, db, z24, s8, win+pmap, id 33
X Error of failed request:  GLXBadContextTag
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  50
  Current serial number in output stream:  50
[root@x-945gm bin]#


Reproduce steps:
----------------
1. start X
2. ./glean -r log



Current result:
----------------
[root@x-945gm bin]# ./glean -o -r test -t api2
api2:  NOTE rgba8, db, z24, s8, win+pmap, id 33
        Test skipped/non-applicable
X Error of failed request:  GLXBadContextTag
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  50
  Current serial number in output stream:  50
[root@x-945gm bin]# ./glean -o -r test -t -api2
basic:  PASS rgba8, db, z24, s8, win+pmap, id 33
X Error of failed request:  GLXBadContextTag
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  5 (X_GLXMakeCurrent)
  Serial number of failed request:  50
  Current serial number in output stream:  50
[root@x-945gm bin]#



Expected result:
----------------
run normally
Comment 1 Shuang He 2008-03-09 18:49:15 UTC
bisect shows this commit brings in this issue:

commit 020c64b2cf2973b5cb41e233d2bfbd85f1b699f7
Author: Kristian Høgsberg <krh@redhat.com>
Date:   Sat Mar 8 21:57:29 2008 -0500

    Move DRI context functions into dri_glx.c.

    Also drop isDirect flag; if gc->driContext is non-NULL, it's direct.
Comment 2 Shuang He 2008-03-09 18:50:46 UTC
Created attachment 14991 [details]
xorg conf
Comment 3 Shuang He 2008-03-09 18:51:41 UTC
Created attachment 14992 [details]
xorg log
Comment 4 Shuang He 2008-03-11 20:42:48 UTC
I'm increasing the severity, as almost every glean case met this issue except the case makeCurrent
Comment 5 haihao 2008-03-18 00:05:07 UTC
fixed in mesa ae2c31ed669abab66a8c4b68d8d746e94b9ebf28
Comment 6 Kristian Høgsberg 2008-03-18 09:08:32 UTC
(In reply to comment #5)
> fixed in mesa ae2c31ed669abab66a8c4b68d8d746e94b9ebf28

Thanks.  Sorry I didn't get to this in time, I had trouble getting the test case (piglit) running.
Comment 7 Shuang He 2008-03-18 17:54:17 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > fixed in mesa ae2c31ed669abab66a8c4b68d8d746e94b9ebf28
> 
> Thanks.  Sorry I didn't get to this in time, I had trouble getting the test
> case (piglit) running.
> 

never mind, it's fixed anyway.
Comment 8 Shuang He 2008-03-18 17:56:17 UTC
verified, thanks, Haihao

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.