[Libva] Semantics of VA_CLEAR_DRAWABLE

Bian, Jonathan jonathan.bian at intel.com
Wed Feb 24 10:16:58 PST 2010


Gwenole,

Your interpretation of the semantics is correct and it looks that this should be fixed in the PSB driver.

Regards,
Jonathan

-----Original Message-----
From: libva-bounces at lists.freedesktop.org [mailto:libva-bounces at lists.freedesktop.org] On Behalf Of Gwenole Beauchesne
Sent: Wednesday, February 24, 2010 4:52 AM
To: libva at lists.freedesktop.org
Subject: [Libva] Semantics of VA_CLEAR_DRAWABLE

Hi,

The documentation mentions that the VA_CLEAR_DRAWABLE flag "clears the 
drawable with background color". My understanding is the driver will clear 
the drawable *prior* to rendering the surface. However, the PSB driver 
does clear the drawable but doesn't render the surface. What's the 
intended purpose of this flag?

If VA_CLEAR_DRAWABLE just clears the drawable without rendering the 
surface, that's a pretty useless flag as people can call XClearWindow() 
themselves with fewer arguments.

So, I would really want VA_CLEAR_DRAWABLE to mean the following:
"clears the drawable with background color prior to rendering the 
surface". Thus, a fix in PSB is also welcome. ;-)

Thanks,
Gwenole.
_______________________________________________
Libva mailing list
Libva at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva


More information about the Libva mailing list