Bug 23437

Summary: glean case pbo fails sometimes
Product: Mesa Reporter: fangxun <xunx.fang>
Component: Drivers/DRI/i915Assignee: Eric Anholt <eric>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: krh
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description fangxun 2009-08-21 03:06:58 UTC
System Environment:
--------------------------
Host:           x-945gm
Arch:           i386
Platform:        945GM
Libdrm:         (master)cbb3ae3dab9dc82d95524726135b8d6ef86bcf27
Mesa:           (master)525ddb1f56aceee74a08764315dc6420f198ccc2
Xserver:        (master)eb031d4013d36f6aef4aba45840762ae8635cc13
Xf86_video_intel:  (master)465a4ab416b2e5ad53b96702720331a44fffa2fe
Kernel:       (drm-intel-next)819e0064634f580ab618189e657ea58341d214b7

Bug detailed description:
-------------------------
glean case pbo fails with recent driver.


Reproduce steps:
----------------
1. xinit&
2. run glean case/pbo
Comment 1 zhao jian 2009-08-24 04:04:26 UTC
It fails sometimes. And when it fails it can always be reproduced consecutively.
Comment 2 Gordon Jin 2009-09-07 20:42:14 UTC
this is not always reproducible, so we don't know if it's regression or when regressed.
Comment 3 Eric Anholt 2009-10-23 14:49:42 UTC
I'm accepting this, but it's blocked on bisection.
Comment 4 zhao jian 2009-11-02 19:14:15 UTC
I have tested it 100 times consecutively on 945gm, after that if I run it again, it will have following error output. Maybe it is not the case's bug, but it may trigger another bug in our driver. 
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  135 (DRI2)
  Minor opcode of failed request:  6 (DRI2CopyRegion)
  Resource id in failed request:  0x600002
  Serial number of failed request:  18772
  Current serial number in output stream:  18772
Comment 5 Kristian Høgsberg 2010-03-22 19:13:56 UTC
This should be fixed by commit:

commit 094c6fbc45cee1b53d9f1d7d4123d6da6a8958a3
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Mon Mar 22 21:57:26 2010 -0400

    glx: Suppress BadDrawable from DRI2CopyRegion
    
    This can happen when an X window is destroyed behind our back.  We use
    DRI2CopyRegion behind the scenes in many places (like flushing the fake
    front to the real front) so we have to ignore X errors triggered in that
    case.
    
    The glean test cases trigger this consistently as they don't destroy the
    GLX drawable nicely, they just destroy the X window.

on master and the 7.8 branch.

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.