From: Thomas Hellström <totte67@us...> - 2005-03-13 10:16:09
Update of /cvsroot/unichrome/xfree86
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv911
via_common.h via_dri.h via_xvmc.c via_xvmc.h
* Moved dri client common dri defines to via_common.h from via_dri.h
* Implemented video lock / unlock macros in via_common.h so that both
the X server and the XvMC dri clients share the same implementation.
The idea is to protect the HQV with one of these locks so that a client
wanting to write to the HQV can just take one of these locks instead
of the heavyweight hardware lock which stops _all_ X server activities.
This means the X server also has to take the HQV lock when writing to HQV.
In the long run, similar locks might even enable us to make a clean
interface to a unichrome_v4l_drv for video capture.
* Adjusted the unichrome XvMC internal protocol to carry the ChipID to
be able to differentiate different hardware in libviaXvMC.