Path: blob/21.2-virgl/src/egl/wayland/wayland-drm/wayland-drm.xml
4561 views
<?xml version="1.0" encoding="UTF-8"?>1<protocol name="drm">23<copyright>4Copyright © 2008-2011 Kristian Høgsberg5Copyright © 2010-2011 Intel Corporation67Permission to use, copy, modify, distribute, and sell this8software and its documentation for any purpose is hereby granted9without fee, provided that\n the above copyright notice appear in10all copies and that both that copyright notice and this permission11notice appear in supporting documentation, and that the name of12the copyright holders not be used in advertising or publicity13pertaining to distribution of the software without specific,14written prior permission. The copyright holders make no15representations about the suitability of this software for any16purpose. It is provided "as is" without express or implied17warranty.1819THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS20SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND21FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY22SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES23WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN24AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,25ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF26THIS SOFTWARE.27</copyright>2829<!-- drm support. This object is created by the server and published30using the display's global event. -->31<interface name="wl_drm" version="2">32<enum name="error">33<entry name="authenticate_fail" value="0"/>34<entry name="invalid_format" value="1"/>35<entry name="invalid_name" value="2"/>36</enum>3738<enum name="format">39<!-- The drm format codes match the #defines in drm_fourcc.h.40The formats actually supported by the compositor will be41reported by the format event. New codes must not be added,42unless directly taken from drm_fourcc.h. -->43<entry name="c8" value="0x20203843"/>44<entry name="rgb332" value="0x38424752"/>45<entry name="bgr233" value="0x38524742"/>46<entry name="xrgb4444" value="0x32315258"/>47<entry name="xbgr4444" value="0x32314258"/>48<entry name="rgbx4444" value="0x32315852"/>49<entry name="bgrx4444" value="0x32315842"/>50<entry name="argb4444" value="0x32315241"/>51<entry name="abgr4444" value="0x32314241"/>52<entry name="rgba4444" value="0x32314152"/>53<entry name="bgra4444" value="0x32314142"/>54<entry name="xrgb1555" value="0x35315258"/>55<entry name="xbgr1555" value="0x35314258"/>56<entry name="rgbx5551" value="0x35315852"/>57<entry name="bgrx5551" value="0x35315842"/>58<entry name="argb1555" value="0x35315241"/>59<entry name="abgr1555" value="0x35314241"/>60<entry name="rgba5551" value="0x35314152"/>61<entry name="bgra5551" value="0x35314142"/>62<entry name="rgb565" value="0x36314752"/>63<entry name="bgr565" value="0x36314742"/>64<entry name="rgb888" value="0x34324752"/>65<entry name="bgr888" value="0x34324742"/>66<entry name="xrgb8888" value="0x34325258"/>67<entry name="xbgr8888" value="0x34324258"/>68<entry name="rgbx8888" value="0x34325852"/>69<entry name="bgrx8888" value="0x34325842"/>70<entry name="argb8888" value="0x34325241"/>71<entry name="abgr8888" value="0x34324241"/>72<entry name="rgba8888" value="0x34324152"/>73<entry name="bgra8888" value="0x34324142"/>74<entry name="xrgb2101010" value="0x30335258"/>75<entry name="xbgr2101010" value="0x30334258"/>76<entry name="rgbx1010102" value="0x30335852"/>77<entry name="bgrx1010102" value="0x30335842"/>78<entry name="argb2101010" value="0x30335241"/>79<entry name="abgr2101010" value="0x30334241"/>80<entry name="rgba1010102" value="0x30334152"/>81<entry name="bgra1010102" value="0x30334142"/>82<entry name="yuyv" value="0x56595559"/>83<entry name="yvyu" value="0x55595659"/>84<entry name="uyvy" value="0x59565955"/>85<entry name="vyuy" value="0x59555956"/>86<entry name="ayuv" value="0x56555941"/>87<entry name="xyuv8888" value="0x56555958"/>88<entry name="nv12" value="0x3231564e"/>89<entry name="nv21" value="0x3132564e"/>90<entry name="nv16" value="0x3631564e"/>91<entry name="nv61" value="0x3136564e"/>92<entry name="yuv410" value="0x39565559"/>93<entry name="yvu410" value="0x39555659"/>94<entry name="yuv411" value="0x31315559"/>95<entry name="yvu411" value="0x31315659"/>96<entry name="yuv420" value="0x32315559"/>97<entry name="yvu420" value="0x32315659"/>98<entry name="yuv422" value="0x36315559"/>99<entry name="yvu422" value="0x36315659"/>100<entry name="yuv444" value="0x34325559"/>101<entry name="yvu444" value="0x34325659"/>102<entry name="abgr16f" value="0x48344241"/>103<entry name="xbgr16f" value="0x48344258"/>104</enum>105106<!-- Call this request with the magic received from drmGetMagic().107It will be passed on to the drmAuthMagic() or108DRIAuthConnection() call. This authentication must be109completed before create_buffer could be used. -->110<request name="authenticate">111<arg name="id" type="uint"/>112</request>113114<!-- Create a wayland buffer for the named DRM buffer. The DRM115surface must have a name using the flink ioctl -->116<request name="create_buffer">117<arg name="id" type="new_id" interface="wl_buffer"/>118<arg name="name" type="uint"/>119<arg name="width" type="int"/>120<arg name="height" type="int"/>121<arg name="stride" type="uint"/>122<arg name="format" type="uint"/>123</request>124125<!-- Create a wayland buffer for the named DRM buffer. The DRM126surface must have a name using the flink ioctl -->127<request name="create_planar_buffer">128<arg name="id" type="new_id" interface="wl_buffer"/>129<arg name="name" type="uint"/>130<arg name="width" type="int"/>131<arg name="height" type="int"/>132<arg name="format" type="uint"/>133<arg name="offset0" type="int"/>134<arg name="stride0" type="int"/>135<arg name="offset1" type="int"/>136<arg name="stride1" type="int"/>137<arg name="offset2" type="int"/>138<arg name="stride2" type="int"/>139</request>140141<!-- Notification of the path of the drm device which is used by142the server. The client should use this device for creating143local buffers. Only buffers created from this device should144be be passed to the server using this drm object's145create_buffer request. -->146<event name="device">147<arg name="name" type="string"/>148</event>149150<event name="format">151<arg name="format" type="uint"/>152</event>153154<!-- Raised if the authenticate request succeeded -->155<event name="authenticated"/>156157<enum name="capability" since="2">158<description summary="wl_drm capability bitmask">159Bitmask of capabilities.160</description>161<entry name="prime" value="1" summary="wl_drm prime available"/>162</enum>163164<event name="capabilities">165<arg name="value" type="uint"/>166</event>167168<!-- Version 2 additions -->169170<!-- Create a wayland buffer for the prime fd. Use for regular and planar171buffers. Pass 0 for offset and stride for unused planes. -->172<request name="create_prime_buffer" since="2">173<arg name="id" type="new_id" interface="wl_buffer"/>174<arg name="name" type="fd"/>175<arg name="width" type="int"/>176<arg name="height" type="int"/>177<arg name="format" type="uint"/>178<arg name="offset0" type="int"/>179<arg name="stride0" type="int"/>180<arg name="offset1" type="int"/>181<arg name="stride1" type="int"/>182<arg name="offset2" type="int"/>183<arg name="stride2" type="int"/>184</request>185186</interface>187188</protocol>189190191