dri2: ignore BadDrawable errors. 33/833/1
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 20 Jul 2011 15:44:29 +0000 (17:44 +0200)
committerAustin Yuan <shengquan.yuan@gmail.com>
Tue, 26 Jul 2011 06:07:43 +0000 (14:07 +0800)
commitc3e7bd874243e45e788f32bbf5d2c0edefb4464c
treee4f7ddf46665809505970e1b8f8e7ce77b3f9fe4
parent0d25dbe4a30be512e9ca665b07fe5c7ce71f4127
dri2: ignore BadDrawable errors.

Hi,

This patch fixes the following error.

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  137 (DRI2)
  Minor opcode of failed request:  4 (DRI2DestroyDrawable)
  Resource id in failed request:  0x4800001
  Serial number of failed request:  30
  Current serial number in output stream:  32

The X drawable can die before we notice it in free_drawable_hashtable(),
called through vaTerminate(). This patch is ported from Mesa (GLX/DRI2).

Regards,
Gwenole.
va/x11/va_dri2.c