Warning, /plasma/kwin/src/wayland/protocols/wayland-drm.xml is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <protocol name="drm"> 0003 0004 <copyright> 0005 Copyright © 2008-2011 Kristian Høgsberg 0006 Copyright © 2010-2011 Intel Corporation 0007 0008 Permission to use, copy, modify, distribute, and sell this 0009 software and its documentation for any purpose is hereby granted 0010 without fee, provided that\n the above copyright notice appear in 0011 all copies and that both that copyright notice and this permission 0012 notice appear in supporting documentation, and that the name of 0013 the copyright holders not be used in advertising or publicity 0014 pertaining to distribution of the software without specific, 0015 written prior permission. The copyright holders make no 0016 representations about the suitability of this software for any 0017 purpose. It is provided "as is" without express or implied 0018 warranty. 0019 0020 THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS 0021 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 0022 FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY 0023 SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 0024 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 0025 AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 0026 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 0027 THIS SOFTWARE. 0028 </copyright> 0029 0030 <!-- drm support. This object is created by the server and published 0031 using the display's global event. --> 0032 <interface name="wl_drm" version="2"> 0033 <enum name="error"> 0034 <entry name="authenticate_fail" value="0"/> 0035 <entry name="invalid_format" value="1"/> 0036 <entry name="invalid_name" value="2"/> 0037 </enum> 0038 0039 <enum name="format"> 0040 <!-- The drm format codes match the #defines in drm_fourcc.h. 0041 The formats actually supported by the compositor will be 0042 reported by the format event. New codes must not be added, 0043 unless directly taken from drm_fourcc.h. --> 0044 <entry name="c8" value="0x20203843"/> 0045 <entry name="rgb332" value="0x38424752"/> 0046 <entry name="bgr233" value="0x38524742"/> 0047 <entry name="xrgb4444" value="0x32315258"/> 0048 <entry name="xbgr4444" value="0x32314258"/> 0049 <entry name="rgbx4444" value="0x32315852"/> 0050 <entry name="bgrx4444" value="0x32315842"/> 0051 <entry name="argb4444" value="0x32315241"/> 0052 <entry name="abgr4444" value="0x32314241"/> 0053 <entry name="rgba4444" value="0x32314152"/> 0054 <entry name="bgra4444" value="0x32314142"/> 0055 <entry name="xrgb1555" value="0x35315258"/> 0056 <entry name="xbgr1555" value="0x35314258"/> 0057 <entry name="rgbx5551" value="0x35315852"/> 0058 <entry name="bgrx5551" value="0x35315842"/> 0059 <entry name="argb1555" value="0x35315241"/> 0060 <entry name="abgr1555" value="0x35314241"/> 0061 <entry name="rgba5551" value="0x35314152"/> 0062 <entry name="bgra5551" value="0x35314142"/> 0063 <entry name="rgb565" value="0x36314752"/> 0064 <entry name="bgr565" value="0x36314742"/> 0065 <entry name="rgb888" value="0x34324752"/> 0066 <entry name="bgr888" value="0x34324742"/> 0067 <entry name="xrgb8888" value="0x34325258"/> 0068 <entry name="xbgr8888" value="0x34324258"/> 0069 <entry name="rgbx8888" value="0x34325852"/> 0070 <entry name="bgrx8888" value="0x34325842"/> 0071 <entry name="argb8888" value="0x34325241"/> 0072 <entry name="abgr8888" value="0x34324241"/> 0073 <entry name="rgba8888" value="0x34324152"/> 0074 <entry name="bgra8888" value="0x34324142"/> 0075 <entry name="xrgb2101010" value="0x30335258"/> 0076 <entry name="xbgr2101010" value="0x30334258"/> 0077 <entry name="rgbx1010102" value="0x30335852"/> 0078 <entry name="bgrx1010102" value="0x30335842"/> 0079 <entry name="argb2101010" value="0x30335241"/> 0080 <entry name="abgr2101010" value="0x30334241"/> 0081 <entry name="rgba1010102" value="0x30334152"/> 0082 <entry name="bgra1010102" value="0x30334142"/> 0083 <entry name="yuyv" value="0x56595559"/> 0084 <entry name="yvyu" value="0x55595659"/> 0085 <entry name="uyvy" value="0x59565955"/> 0086 <entry name="vyuy" value="0x59555956"/> 0087 <entry name="ayuv" value="0x56555941"/> 0088 <entry name="xyuv8888" value="0x56555958"/> 0089 <entry name="nv12" value="0x3231564e"/> 0090 <entry name="nv21" value="0x3132564e"/> 0091 <entry name="nv16" value="0x3631564e"/> 0092 <entry name="nv61" value="0x3136564e"/> 0093 <entry name="yuv410" value="0x39565559"/> 0094 <entry name="yvu410" value="0x39555659"/> 0095 <entry name="yuv411" value="0x31315559"/> 0096 <entry name="yvu411" value="0x31315659"/> 0097 <entry name="yuv420" value="0x32315559"/> 0098 <entry name="yvu420" value="0x32315659"/> 0099 <entry name="yuv422" value="0x36315559"/> 0100 <entry name="yvu422" value="0x36315659"/> 0101 <entry name="yuv444" value="0x34325559"/> 0102 <entry name="yvu444" value="0x34325659"/> 0103 <entry name="abgr16f" value="0x48344241"/> 0104 <entry name="xbgr16f" value="0x48344258"/> 0105 </enum> 0106 0107 <!-- Call this request with the magic received from drmGetMagic(). 0108 It will be passed on to the drmAuthMagic() or 0109 DRIAuthConnection() call. This authentication must be 0110 completed before create_buffer could be used. --> 0111 <request name="authenticate"> 0112 <arg name="id" type="uint"/> 0113 </request> 0114 0115 <!-- Create a wayland buffer for the named DRM buffer. The DRM 0116 surface must have a name using the flink ioctl --> 0117 <request name="create_buffer"> 0118 <arg name="id" type="new_id" interface="wl_buffer"/> 0119 <arg name="name" type="uint"/> 0120 <arg name="width" type="int"/> 0121 <arg name="height" type="int"/> 0122 <arg name="stride" type="uint"/> 0123 <arg name="format" type="uint"/> 0124 </request> 0125 0126 <!-- Create a wayland buffer for the named DRM buffer. The DRM 0127 surface must have a name using the flink ioctl --> 0128 <request name="create_planar_buffer"> 0129 <arg name="id" type="new_id" interface="wl_buffer"/> 0130 <arg name="name" type="uint"/> 0131 <arg name="width" type="int"/> 0132 <arg name="height" type="int"/> 0133 <arg name="format" type="uint"/> 0134 <arg name="offset0" type="int"/> 0135 <arg name="stride0" type="int"/> 0136 <arg name="offset1" type="int"/> 0137 <arg name="stride1" type="int"/> 0138 <arg name="offset2" type="int"/> 0139 <arg name="stride2" type="int"/> 0140 </request> 0141 0142 <!-- Notification of the path of the drm device which is used by 0143 the server. The client should use this device for creating 0144 local buffers. Only buffers created from this device should 0145 be be passed to the server using this drm object's 0146 create_buffer request. --> 0147 <event name="device"> 0148 <arg name="name" type="string"/> 0149 </event> 0150 0151 <event name="format"> 0152 <arg name="format" type="uint"/> 0153 </event> 0154 0155 <!-- Raised if the authenticate request succeeded --> 0156 <event name="authenticated"/> 0157 0158 <enum name="capability" since="2"> 0159 <description summary="wl_drm capability bitmask"> 0160 Bitmask of capabilities. 0161 </description> 0162 <entry name="prime" value="1" summary="wl_drm prime available"/> 0163 </enum> 0164 0165 <event name="capabilities"> 0166 <arg name="value" type="uint"/> 0167 </event> 0168 0169 <!-- Version 2 additions --> 0170 0171 <!-- Create a wayland buffer for the prime fd. Use for regular and planar 0172 buffers. Pass 0 for offset and stride for unused planes. --> 0173 <request name="create_prime_buffer" since="2"> 0174 <arg name="id" type="new_id" interface="wl_buffer"/> 0175 <arg name="name" type="fd"/> 0176 <arg name="width" type="int"/> 0177 <arg name="height" type="int"/> 0178 <arg name="format" type="uint"/> 0179 <arg name="offset0" type="int"/> 0180 <arg name="stride0" type="int"/> 0181 <arg name="offset1" type="int"/> 0182 <arg name="stride1" type="int"/> 0183 <arg name="offset2" type="int"/> 0184 <arg name="stride2" type="int"/> 0185 </request> 0186 0187 </interface> 0188 0189 </protocol>