1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3Copyright (C) 2005 Jeremy Kolb. 4All Rights Reserved. 5 6Permission is hereby granted, free of charge, to any person ob/Sintaining a copy 7of this software and associated documentation files (the "Software"), to deal 8in the Software without restriction, including without limitation the rights 9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10copies of the Software, and to permit persons to whom the Software is 11furnished to do so, subject to the following conditions: 12 13The above copyright notice and this permission notice shall be included in all 14copies or substantial portions of the Software. 15 16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 20ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the names of the authors or their 24institutions shall not be used in advertising or otherwise to promote the 25sale, use or other dealings in this Software without prior written 26authorization from the authors. 27--> 28 29<xcb header="xf86dri" extension-xname="XFree86-DRI" extension-name="XF86Dri" 30 major-version="4" minor-version="1"> 31 32 <!-- Using http://dri.sourceforge.net/doc/dri_extensions_low_level.txt --> 33 34 <!-- Types --> 35 36 <struct name="DrmClipRect"> 37 <field type="INT16" name="x1" /> 38 <field type="INT16" name="y1" /> 39 <field type="INT16" name="x2" /> 40 <field type="INT16" name="x3" /> 41 </struct> 42 43 <!-- Requests --> 44 <request name="QueryVersion" opcode="0"> 45 <reply> 46 <pad bytes="1" /> 47 <field type="CARD16" name="dri_major_version" /> 48 <field type="CARD16" name="dri_minor_version" /> 49 <field type="CARD32" name="dri_minor_patch" /> 50 </reply> 51 </request> 52 53 <request name="QueryDirectRenderingCapable" opcode="1"> 54 <field type="CARD32" name="screen" /> 55 <reply> 56 <pad bytes="1" /> 57 <field type="BOOL" name="is_capable" /> 58 </reply> 59 </request> 60 61 <request name="OpenConnection" opcode="2"> 62 <field type="CARD32" name="screen" /> 63 <reply> 64 <pad bytes="1" /> 65 <field type="CARD32" name="sarea_handle_low" /> 66 <field type="CARD32" name="sarea_handle_high" /> 67 <field type="CARD32" name="bus_id_len" /> 68 <pad bytes="12" /> 69 <list type="char" name="bus_id"> 70 <fieldref>bus_id_len</fieldref> 71 </list> 72 </reply> 73 </request> 74 75 <request name="CloseConnection" opcode="3"> 76 <field type="CARD32" name="screen" /> 77 </request> 78 79 <request name="GetClientDriverName" opcode="4"> 80 <field type="CARD32" name="screen" /> 81 <reply> 82 <pad bytes="1" /> 83 <field type="CARD32" name="client_driver_major_version" /> 84 <field type="CARD32" name="client_driver_minor_version" /> 85 <field type="CARD32" name="client_driver_patch_version" /> 86 <field type="CARD32" name="client_driver_name_len" /> 87 <pad bytes="8" /> 88 <list type="char" name="client_driver_name"> 89 <fieldref>client_driver_name_len</fieldref> 90 </list> 91 </reply> 92 </request> 93 94 <request name="CreateContext" opcode="5"> 95 <field type="CARD32" name="screen" /> 96 <field type="CARD32" name="visual" /> 97 <field type="CARD32" name="context" /> 98 <reply> 99 <pad bytes="1" /> 100 <field type="CARD32" name="hw_context" /> 101 </reply> 102 </request> 103 104 <request name="DestroyContext" opcode="6"> 105 <field type="CARD32" name="screen" /> 106 <field type="CARD32" name="context" /> 107 </request> 108 109 <request name="CreateDrawable" opcode="7"> 110 <field type="CARD32" name="screen" /> 111 <field type="CARD32" name="drawable" /> 112 <reply> 113 <pad bytes="1" /> 114 <field type="CARD32" name="hw_drawable_handle" /> 115 </reply> 116 </request> 117 118 <request name="DestroyDrawable" opcode="8"> 119 <field type="CARD32" name="screen" /> 120 <field type="CARD32" name="drawable" /> 121 </request> 122 123 <request name="GetDrawableInfo" opcode="9"> 124 <field type="CARD32" name="screen" /> 125 <field type="CARD32" name="drawable" /> 126 <reply> 127 <pad bytes="1" /> 128 <field type="CARD32" name="drawable_table_index" /> 129 <field type="CARD32" name="drawable_table_stamp" /> 130 <field type="INT16" name="drawable_origin_X" /> 131 <field type="INT16" name="drawable_origin_Y" /> 132 <field type="INT16" name="drawable_size_W" /> 133 <field type="INT16" name="drawable_size_H" /> 134 <field type="CARD32" name="num_clip_rects" /> 135 <field type="INT16" name="back_x" /> 136 <field type="INT16" name="back_y" /> 137 <field type="CARD32" name="num_back_clip_rects" /> 138 <list type="DrmClipRect" name="clip_rects"> 139 <fieldref>num_clip_rects</fieldref> 140 </list> 141 <list type="DrmClipRect" name="back_clip_rects"> 142 <fieldref>num_back_clip_rects</fieldref> 143 </list> 144 </reply> 145 </request> 146 147 <request name="GetDeviceInfo" opcode="10"> 148 <field type="CARD32" name="screen" /> 149 <reply> 150 <pad bytes="1" /> 151 <field type="CARD32" name="framebuffer_handle_low" /> 152 <field type="CARD32" name="framebuffer_handle_high" /> 153 <field type="CARD32" name="framebuffer_origin_offset" /> 154 <field type="CARD32" name="framebuffer_size" /> 155 <field type="CARD32" name="framebuffer_stride" /> 156 <field type="CARD32" name="device_private_size" /> 157 <list type="CARD32" name="device_private"> 158 <fieldref>device_private_size</fieldref> 159 </list> 160 </reply> 161 </request> 162 163 <!-- Not in this doc, but specified in Mesa/src/glx/x11/xf86dri.h --> 164 <request name="AuthConnection" opcode="11"> 165 <field type="CARD32" name="screen" /> 166 <field type="CARD32" name="magic" /> 167 <reply> 168 <pad bytes="1" /> 169 <field type="CARD32" name="authenticated" /> 170 </reply> 171 </request> 172</xcb> 173