blob: 982b64f72fc2937cdefffe1ffb325e35c4596948 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __VMWGFX_DRM_H__
20#define __VMWGFX_DRM_H__
Christopher Ferris106b3a82016-08-24 12:15:38 -070021#include "drm.h"
22#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -080023extern "C" {
Christopher Ferris106b3a82016-08-24 12:15:38 -070024#endif
25#define DRM_VMW_MAX_SURFACE_FACES 6
Christopher Ferris38062f92014-07-09 15:33:25 -070026#define DRM_VMW_MAX_MIP_LEVELS 24
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define DRM_VMW_GET_PARAM 0
28#define DRM_VMW_ALLOC_DMABUF 1
Christopher Ferris9ce28842018-10-25 12:11:39 -070029#define DRM_VMW_ALLOC_BO 1
Ben Cheng655a7c02013-10-16 16:09:24 -070030#define DRM_VMW_UNREF_DMABUF 2
Christopher Ferris525ce912017-07-26 13:12:53 -070031#define DRM_VMW_HANDLE_CLOSE 2
Christopher Ferris38062f92014-07-09 15:33:25 -070032#define DRM_VMW_CURSOR_BYPASS 3
Ben Cheng655a7c02013-10-16 16:09:24 -070033#define DRM_VMW_CONTROL_STREAM 4
34#define DRM_VMW_CLAIM_STREAM 5
35#define DRM_VMW_UNREF_STREAM 6
Christopher Ferris38062f92014-07-09 15:33:25 -070036#define DRM_VMW_CREATE_CONTEXT 7
Ben Cheng655a7c02013-10-16 16:09:24 -070037#define DRM_VMW_UNREF_CONTEXT 8
38#define DRM_VMW_CREATE_SURFACE 9
39#define DRM_VMW_UNREF_SURFACE 10
Christopher Ferris38062f92014-07-09 15:33:25 -070040#define DRM_VMW_REF_SURFACE 11
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define DRM_VMW_EXECBUF 12
42#define DRM_VMW_GET_3D_CAP 13
43#define DRM_VMW_FENCE_WAIT 14
Christopher Ferris38062f92014-07-09 15:33:25 -070044#define DRM_VMW_FENCE_SIGNALED 15
Ben Cheng655a7c02013-10-16 16:09:24 -070045#define DRM_VMW_FENCE_UNREF 16
46#define DRM_VMW_FENCE_EVENT 17
47#define DRM_VMW_PRESENT 18
Christopher Ferris38062f92014-07-09 15:33:25 -070048#define DRM_VMW_PRESENT_READBACK 19
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define DRM_VMW_UPDATE_LAYOUT 20
Christopher Ferris38062f92014-07-09 15:33:25 -070050#define DRM_VMW_CREATE_SHADER 21
51#define DRM_VMW_UNREF_SHADER 22
Christopher Ferris38062f92014-07-09 15:33:25 -070052#define DRM_VMW_GB_SURFACE_CREATE 23
53#define DRM_VMW_GB_SURFACE_REF 24
54#define DRM_VMW_SYNCCPU 25
Christopher Ferris05d08e92016-02-04 13:16:38 -080055#define DRM_VMW_CREATE_EXTENDED_CONTEXT 26
Christopher Ferris9ce28842018-10-25 12:11:39 -070056#define DRM_VMW_GB_SURFACE_CREATE_EXT 27
57#define DRM_VMW_GB_SURFACE_REF_EXT 28
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070058#define DRM_VMW_MSG 29
Christopher Ferris05d08e92016-02-04 13:16:38 -080059#define DRM_VMW_PARAM_NUM_STREAMS 0
Ben Cheng655a7c02013-10-16 16:09:24 -070060#define DRM_VMW_PARAM_NUM_FREE_STREAMS 1
61#define DRM_VMW_PARAM_3D 2
Ben Cheng655a7c02013-10-16 16:09:24 -070062#define DRM_VMW_PARAM_HW_CAPS 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080063#define DRM_VMW_PARAM_FIFO_CAPS 4
Ben Cheng655a7c02013-10-16 16:09:24 -070064#define DRM_VMW_PARAM_MAX_FB_SIZE 5
65#define DRM_VMW_PARAM_FIFO_HW_VERSION 6
Christopher Ferris38062f92014-07-09 15:33:25 -070066#define DRM_VMW_PARAM_MAX_SURF_MEMORY 7
Christopher Ferris05d08e92016-02-04 13:16:38 -080067#define DRM_VMW_PARAM_3D_CAPS_SIZE 8
Christopher Ferris38062f92014-07-09 15:33:25 -070068#define DRM_VMW_PARAM_MAX_MOB_MEMORY 9
69#define DRM_VMW_PARAM_MAX_MOB_SIZE 10
Christopher Ferris05d08e92016-02-04 13:16:38 -080070#define DRM_VMW_PARAM_SCREEN_TARGET 11
Christopher Ferris05d08e92016-02-04 13:16:38 -080071#define DRM_VMW_PARAM_DX 12
Christopher Ferris9ce28842018-10-25 12:11:39 -070072#define DRM_VMW_PARAM_HW_CAPS2 13
73#define DRM_VMW_PARAM_SM4_1 14
Christopher Ferrisaf09c702020-06-01 20:29:29 -070074#define DRM_VMW_PARAM_SM5 15
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070075enum drm_vmw_handle_type {
Tao Baod7db5942015-01-28 10:07:51 -080076 DRM_VMW_HANDLE_LEGACY = 0,
Tao Baod7db5942015-01-28 10:07:51 -080077 DRM_VMW_HANDLE_PRIME = 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070078};
Ben Cheng655a7c02013-10-16 16:09:24 -070079struct drm_vmw_getparam_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -070080 __u64 value;
81 __u32 param;
82 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -070083};
84struct drm_vmw_context_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -070085 __s32 cid;
86 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -070087};
88struct drm_vmw_surface_create_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -070089 __u32 flags;
90 __u32 format;
91 __u32 mip_levels[DRM_VMW_MAX_SURFACE_FACES];
Christopher Ferris106b3a82016-08-24 12:15:38 -070092 __u64 size_addr;
93 __s32 shareable;
94 __s32 scanout;
Ben Cheng655a7c02013-10-16 16:09:24 -070095};
Christopher Ferris106b3a82016-08-24 12:15:38 -070096struct drm_vmw_surface_arg {
97 __s32 sid;
Tao Baod7db5942015-01-28 10:07:51 -080098 enum drm_vmw_handle_type handle_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070099};
100struct drm_vmw_size {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700101 __u32 width;
102 __u32 height;
103 __u32 depth;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700104 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700105};
106union drm_vmw_surface_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800107 struct drm_vmw_surface_arg rep;
108 struct drm_vmw_surface_create_req req;
Ben Cheng655a7c02013-10-16 16:09:24 -0700109};
110union drm_vmw_surface_reference_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800111 struct drm_vmw_surface_create_req rep;
112 struct drm_vmw_surface_arg req;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800114#define DRM_VMW_EXECBUF_VERSION 2
Christopher Ferris1308ad32017-11-14 17:32:13 -0800115#define DRM_VMW_EXECBUF_FLAG_IMPORT_FENCE_FD (1 << 0)
116#define DRM_VMW_EXECBUF_FLAG_EXPORT_FENCE_FD (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700117struct drm_vmw_execbuf_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700118 __u64 commands;
119 __u32 command_size;
120 __u32 throttle_us;
121 __u64 fence_rep;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700122 __u32 version;
123 __u32 flags;
124 __u32 context_handle;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800125 __s32 imported_fence_fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700126};
Ben Cheng655a7c02013-10-16 16:09:24 -0700127struct drm_vmw_fence_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700128 __u32 handle;
129 __u32 mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700130 __u32 seqno;
131 __u32 passed_seqno;
Christopher Ferris1308ad32017-11-14 17:32:13 -0800132 __s32 fd;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700133 __s32 error;
Ben Cheng655a7c02013-10-16 16:09:24 -0700134};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700135struct drm_vmw_alloc_bo_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700136 __u32 size;
137 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700139#define drm_vmw_alloc_dmabuf_req drm_vmw_alloc_bo_req
140struct drm_vmw_bo_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700141 __u64 map_handle;
142 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700143 __u32 cur_gmr_id;
144 __u32 cur_gmr_offset;
145 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700146};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700147#define drm_vmw_dmabuf_rep drm_vmw_bo_rep
148union drm_vmw_alloc_bo_arg {
149 struct drm_vmw_alloc_bo_req req;
150 struct drm_vmw_bo_rep rep;
Ben Cheng655a7c02013-10-16 16:09:24 -0700151};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700152#define drm_vmw_alloc_dmabuf_arg drm_vmw_alloc_bo_arg
Ben Cheng655a7c02013-10-16 16:09:24 -0700153struct drm_vmw_rect {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700154 __s32 x;
155 __s32 y;
156 __u32 w;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700157 __u32 h;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800159struct drm_vmw_control_stream_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700160 __u32 stream_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700161 __u32 enabled;
162 __u32 flags;
163 __u32 color_key;
164 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700165 __u32 offset;
166 __s32 format;
167 __u32 size;
168 __u32 width;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700169 __u32 height;
170 __u32 pitch[3];
171 __u32 pad64;
Tao Baod7db5942015-01-28 10:07:51 -0800172 struct drm_vmw_rect src;
173 struct drm_vmw_rect dst;
Ben Cheng655a7c02013-10-16 16:09:24 -0700174};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800175#define DRM_VMW_CURSOR_BYPASS_ALL (1 << 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700176#define DRM_VMW_CURSOR_BYPASS_FLAGS (1)
177struct drm_vmw_cursor_bypass_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700178 __u32 flags;
179 __u32 crtc_id;
180 __s32 xpos;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700181 __s32 ypos;
182 __s32 xhot;
183 __s32 yhot;
Ben Cheng655a7c02013-10-16 16:09:24 -0700184};
185struct drm_vmw_stream_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700186 __u32 stream_id;
187 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700189struct drm_vmw_get_3d_cap_arg {
190 __u64 buffer;
191 __u32 max_size;
192 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193};
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#define DRM_VMW_FENCE_FLAG_EXEC (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800195#define DRM_VMW_FENCE_FLAG_QUERY (1 << 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700196#define DRM_VMW_WAIT_OPTION_UNREF (1 << 0)
197struct drm_vmw_fence_wait_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700198 __u32 handle;
199 __s32 cookie_valid;
200 __u64 kernel_cookie;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700201 __u64 timeout_us;
202 __s32 lazy;
203 __s32 flags;
204 __s32 wait_options;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700205 __s32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700206};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800207struct drm_vmw_fence_signaled_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700208 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700209 __u32 flags;
210 __s32 signaled;
211 __u32 passed_seqno;
212 __u32 signaled_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700213 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700214};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800215struct drm_vmw_fence_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700216 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700217 __u32 pad64;
218};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800219#define DRM_VMW_EVENT_FENCE_SIGNALED 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700220struct drm_vmw_event_fence {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700221 struct drm_event base;
222 __u64 user_data;
223 __u32 tv_sec;
224 __u32 tv_usec;
Ben Cheng655a7c02013-10-16 16:09:24 -0700225};
Ben Cheng655a7c02013-10-16 16:09:24 -0700226#define DRM_VMW_FE_FLAG_REQ_TIME (1 << 0)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800227struct drm_vmw_fence_event_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700228 __u64 fence_rep;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700229 __u64 user_data;
230 __u32 handle;
231 __u32 flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700232};
233struct drm_vmw_present_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700234 __u32 fb_id;
235 __u32 sid;
236 __s32 dest_x;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700237 __s32 dest_y;
238 __u64 clips_ptr;
239 __u32 num_clips;
240 __u32 pad64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700241};
Ben Cheng655a7c02013-10-16 16:09:24 -0700242struct drm_vmw_present_readback_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700243 __u32 fb_id;
244 __u32 num_clips;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700245 __u64 clips_ptr;
246 __u64 fence_rep;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800247};
Ben Cheng655a7c02013-10-16 16:09:24 -0700248struct drm_vmw_update_layout_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700249 __u32 num_outputs;
250 __u32 pad64;
251 __u64 rects;
Christopher Ferris38062f92014-07-09 15:33:25 -0700252};
253enum drm_vmw_shader_type {
Tao Baod7db5942015-01-28 10:07:51 -0800254 drm_vmw_shader_type_vs = 0,
Christopher Ferris05d08e92016-02-04 13:16:38 -0800255 drm_vmw_shader_type_ps,
Christopher Ferris38062f92014-07-09 15:33:25 -0700256};
257struct drm_vmw_shader_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800258 enum drm_vmw_shader_type shader_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700259 __u32 size;
260 __u32 buffer_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700261 __u32 shader_handle;
262 __u64 offset;
Christopher Ferris38062f92014-07-09 15:33:25 -0700263};
264struct drm_vmw_shader_arg {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700265 __u32 handle;
266 __u32 pad64;
Christopher Ferris38062f92014-07-09 15:33:25 -0700267};
268enum drm_vmw_surface_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800269 drm_vmw_surface_flag_shareable = (1 << 0),
270 drm_vmw_surface_flag_scanout = (1 << 1),
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800271 drm_vmw_surface_flag_create_buffer = (1 << 2),
272 drm_vmw_surface_flag_coherent = (1 << 3),
Christopher Ferris38062f92014-07-09 15:33:25 -0700273};
274struct drm_vmw_gb_surface_create_req {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700275 __u32 svga3d_flags;
276 __u32 format;
277 __u32 mip_levels;
Tao Baod7db5942015-01-28 10:07:51 -0800278 enum drm_vmw_surface_flags drm_surface_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700279 __u32 multisample_count;
280 __u32 autogen_filter;
281 __u32 buffer_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700282 __u32 array_size;
Tao Baod7db5942015-01-28 10:07:51 -0800283 struct drm_vmw_size base_size;
Christopher Ferris38062f92014-07-09 15:33:25 -0700284};
285struct drm_vmw_gb_surface_create_rep {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700286 __u32 handle;
287 __u32 backup_size;
288 __u32 buffer_handle;
289 __u32 buffer_size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700290 __u64 buffer_map_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700291};
Christopher Ferris38062f92014-07-09 15:33:25 -0700292union drm_vmw_gb_surface_create_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800293 struct drm_vmw_gb_surface_create_rep rep;
294 struct drm_vmw_gb_surface_create_req req;
Christopher Ferris38062f92014-07-09 15:33:25 -0700295};
Christopher Ferris38062f92014-07-09 15:33:25 -0700296struct drm_vmw_gb_surface_ref_rep {
Tao Baod7db5942015-01-28 10:07:51 -0800297 struct drm_vmw_gb_surface_create_req creq;
298 struct drm_vmw_gb_surface_create_rep crep;
Christopher Ferris38062f92014-07-09 15:33:25 -0700299};
Christopher Ferris38062f92014-07-09 15:33:25 -0700300union drm_vmw_gb_surface_reference_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800301 struct drm_vmw_gb_surface_ref_rep rep;
302 struct drm_vmw_surface_arg req;
Christopher Ferris38062f92014-07-09 15:33:25 -0700303};
Christopher Ferris38062f92014-07-09 15:33:25 -0700304enum drm_vmw_synccpu_flags {
Tao Baod7db5942015-01-28 10:07:51 -0800305 drm_vmw_synccpu_read = (1 << 0),
306 drm_vmw_synccpu_write = (1 << 1),
307 drm_vmw_synccpu_dontblock = (1 << 2),
Tao Baod7db5942015-01-28 10:07:51 -0800308 drm_vmw_synccpu_allow_cs = (1 << 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700309};
310enum drm_vmw_synccpu_op {
Tao Baod7db5942015-01-28 10:07:51 -0800311 drm_vmw_synccpu_grab,
Tao Baod7db5942015-01-28 10:07:51 -0800312 drm_vmw_synccpu_release
Christopher Ferris38062f92014-07-09 15:33:25 -0700313};
314struct drm_vmw_synccpu_arg {
Tao Baod7db5942015-01-28 10:07:51 -0800315 enum drm_vmw_synccpu_op op;
Tao Baod7db5942015-01-28 10:07:51 -0800316 enum drm_vmw_synccpu_flags flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700317 __u32 handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700318 __u32 pad64;
319};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800320enum drm_vmw_extended_context {
321 drm_vmw_context_legacy,
322 drm_vmw_context_dx
323};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800324union drm_vmw_extended_context_arg {
325 enum drm_vmw_extended_context req;
326 struct drm_vmw_context_arg rep;
327};
Christopher Ferris525ce912017-07-26 13:12:53 -0700328struct drm_vmw_handle_close_arg {
329 __u32 handle;
330 __u32 pad64;
331};
Christopher Ferris9ce28842018-10-25 12:11:39 -0700332#define drm_vmw_unref_dmabuf_arg drm_vmw_handle_close_arg
333enum drm_vmw_surface_version {
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700334 drm_vmw_gb_surface_v1,
Christopher Ferris9ce28842018-10-25 12:11:39 -0700335};
336struct drm_vmw_gb_surface_create_ext_req {
337 struct drm_vmw_gb_surface_create_req base;
338 enum drm_vmw_surface_version version;
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700339 __u32 svga3d_flags_upper_32_bits;
340 __u32 multisample_pattern;
341 __u32 quality_level;
342 __u32 buffer_byte_stride;
343 __u32 must_be_zero;
Christopher Ferris9ce28842018-10-25 12:11:39 -0700344};
345union drm_vmw_gb_surface_create_ext_arg {
346 struct drm_vmw_gb_surface_create_rep rep;
347 struct drm_vmw_gb_surface_create_ext_req req;
348};
349struct drm_vmw_gb_surface_ref_ext_rep {
350 struct drm_vmw_gb_surface_create_ext_req creq;
351 struct drm_vmw_gb_surface_create_rep crep;
352};
353union drm_vmw_gb_surface_reference_ext_arg {
354 struct drm_vmw_gb_surface_ref_ext_rep rep;
355 struct drm_vmw_surface_arg req;
356};
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700357struct drm_vmw_msg_arg {
358 __u64 send;
359 __u64 receive;
360 __s32 send_only;
361 __u32 receive_len;
362};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700363#ifdef __cplusplus
Christopher Ferris48fe0ae2019-01-10 15:59:33 -0800364}
Christopher Ferris106b3a82016-08-24 12:15:38 -0700365#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700366#endif