[Libva] [PATCH 1/1] vaDetsroyDrawable to avoid a problem with internal X-drawable access

gimli gimli at dark-green.com
Mon Jul 18 01:36:25 PDT 2011


Is there no intreset to fix this design problem ?

On Fri, 08 Jul 2011 12:29:42 +0200, gimli <gimli at dark-green.com> wrote:
> vaDetsroyDrawable is introduced to free internal allocated dri_drawable.
> 
> vaPustSurface is requesting a dri drawable through dri_get_drawable for
the
> provided X-Drawable.
> libva stores all drawables it sees from the application. On closing it
trys
> to destroy all drawables, 
> even if the application already destroyed the drawable. This leads to 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:  0x400032d
> Serial number of failed request:  2629
> Current serial number in output stream:  2630
> 
> vaDetsroyDrawable gives the application the chance to free the drawable
and
> it's allocated resources.
> 
> Signed-off-by: Edgar Hucek <gimli at dark-green.com>


More information about the Libva mailing list