1 | /**********************************************************
|
---|
2 | * Copyright 2009 VMware, Inc. All rights reserved.
|
---|
3 | *
|
---|
4 | * Permission is hereby granted, free of charge, to any person
|
---|
5 | * obtaining a copy of this software and associated documentation
|
---|
6 | * files (the "Software"), to deal in the Software without
|
---|
7 | * restriction, including without limitation the rights to use, copy,
|
---|
8 | * modify, merge, publish, distribute, sublicense, and/or sell copies
|
---|
9 | * of the Software, and to permit persons to whom the Software is
|
---|
10 | * furnished to do so, subject to the following conditions:
|
---|
11 | *
|
---|
12 | * The above copyright notice and this permission notice shall be
|
---|
13 | * included in all copies or substantial portions of the Software.
|
---|
14 | *
|
---|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
16 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
---|
17 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
18 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
---|
19 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
---|
20 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
---|
21 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
---|
22 | * SOFTWARE.
|
---|
23 | *
|
---|
24 | **********************************************************/
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * @file
|
---|
28 | * Dump SVGA commands.
|
---|
29 | *
|
---|
30 | * Generated automatically from svga3d_reg.h by svga_dump.py.
|
---|
31 | * Modified for VirtualBox.
|
---|
32 | */
|
---|
33 |
|
---|
34 | #include "svga_types.h"
|
---|
35 | #include "vmsvga_headers_begin.h"
|
---|
36 | #pragma pack(1) /* VMSVGA structures are '__packed'. */
|
---|
37 | #include "svga3d_reg.h"
|
---|
38 | #pragma pack()
|
---|
39 | #include "vmsvga_headers_end.h"
|
---|
40 |
|
---|
41 | #include "svga_dump.h"
|
---|
42 |
|
---|
43 | #define LOG_GROUP LOG_GROUP_DEV_VMSVGA
|
---|
44 | #include <VBox/log.h>
|
---|
45 |
|
---|
46 | #define _debug_printf(...) Log7((__VA_ARGS__));
|
---|
47 |
|
---|
48 | #ifdef LOG_ENABLED
|
---|
49 | static void
|
---|
50 | dump_SVGASignedRect(const SVGASignedRect *cmd)
|
---|
51 | {
|
---|
52 | _debug_printf("\t\t.left = %i\n", (*cmd).left);
|
---|
53 | _debug_printf("\t\t.top = %i\n", (*cmd).top);
|
---|
54 | _debug_printf("\t\t.right = %i\n", (*cmd).right);
|
---|
55 | _debug_printf("\t\t.bottom = %i\n", (*cmd).bottom);
|
---|
56 | }
|
---|
57 |
|
---|
58 | static void
|
---|
59 | dump_SVGA3dCopyRect(const SVGA3dCopyRect *cmd)
|
---|
60 | {
|
---|
61 | _debug_printf("\t\t.x = %u\n", (*cmd).x);
|
---|
62 | _debug_printf("\t\t.y = %u\n", (*cmd).y);
|
---|
63 | _debug_printf("\t\t.w = %u\n", (*cmd).w);
|
---|
64 | _debug_printf("\t\t.h = %u\n", (*cmd).h);
|
---|
65 | _debug_printf("\t\t.srcx = %u\n", (*cmd).srcx);
|
---|
66 | _debug_printf("\t\t.srcy = %u\n", (*cmd).srcy);
|
---|
67 | }
|
---|
68 |
|
---|
69 | static void
|
---|
70 | dump_SVGA3dCopyBox(const SVGA3dCopyBox *cmd)
|
---|
71 | {
|
---|
72 | _debug_printf("\t\t.x = %u\n", (*cmd).x);
|
---|
73 | _debug_printf("\t\t.y = %u\n", (*cmd).y);
|
---|
74 | _debug_printf("\t\t.z = %u\n", (*cmd).z);
|
---|
75 | _debug_printf("\t\t.w = %u\n", (*cmd).w);
|
---|
76 | _debug_printf("\t\t.h = %u\n", (*cmd).h);
|
---|
77 | _debug_printf("\t\t.d = %u\n", (*cmd).d);
|
---|
78 | _debug_printf("\t\t.srcx = %u\n", (*cmd).srcx);
|
---|
79 | _debug_printf("\t\t.srcy = %u\n", (*cmd).srcy);
|
---|
80 | _debug_printf("\t\t.srcz = %u\n", (*cmd).srcz);
|
---|
81 | }
|
---|
82 |
|
---|
83 | static void
|
---|
84 | dump_SVGA3dRect(const SVGA3dRect *cmd)
|
---|
85 | {
|
---|
86 | _debug_printf("\t\t.x = %u\n", (*cmd).x);
|
---|
87 | _debug_printf("\t\t.y = %u\n", (*cmd).y);
|
---|
88 | _debug_printf("\t\t.w = %u\n", (*cmd).w);
|
---|
89 | _debug_printf("\t\t.h = %u\n", (*cmd).h);
|
---|
90 | }
|
---|
91 |
|
---|
92 | static void
|
---|
93 | dump_SVGA3dVertexDivisor(const SVGA3dVertexDivisor *cmd)
|
---|
94 | {
|
---|
95 | _debug_printf("\t\t.count = %u\n", (*cmd).count);
|
---|
96 | _debug_printf("\t\t.indexedData = %u\n", (*cmd).indexedData);
|
---|
97 | _debug_printf("\t\t.instanceData = %u\n", (*cmd).instanceData);
|
---|
98 | _debug_printf("\t\t.value = %u\n", (*cmd).value);
|
---|
99 | }
|
---|
100 |
|
---|
101 | static void
|
---|
102 | dump_SVGA3dSize(const SVGA3dSize *cmd)
|
---|
103 | {
|
---|
104 | _debug_printf("\t\t.width = %u\n", (*cmd).width);
|
---|
105 | _debug_printf("\t\t.height = %u\n", (*cmd).height);
|
---|
106 | _debug_printf("\t\t.depth = %u\n", (*cmd).depth);
|
---|
107 | }
|
---|
108 |
|
---|
109 | static void
|
---|
110 | dump_SVGA3dCmdDefineSurface(const SVGA3dCmdDefineSurface *cmd)
|
---|
111 | {
|
---|
112 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
113 | _debug_printf("\t\t.surfaceFlags = %u\n", (*cmd).surfaceFlags);
|
---|
114 | switch((*cmd).format) {
|
---|
115 | case SVGA3D_FORMAT_INVALID:
|
---|
116 | _debug_printf("\t\t.format = SVGA3D_FORMAT_INVALID\n");
|
---|
117 | break;
|
---|
118 | case SVGA3D_X8R8G8B8:
|
---|
119 | _debug_printf("\t\t.format = SVGA3D_X8R8G8B8\n");
|
---|
120 | break;
|
---|
121 | case SVGA3D_A8R8G8B8:
|
---|
122 | _debug_printf("\t\t.format = SVGA3D_A8R8G8B8\n");
|
---|
123 | break;
|
---|
124 | case SVGA3D_R5G6B5:
|
---|
125 | _debug_printf("\t\t.format = SVGA3D_R5G6B5\n");
|
---|
126 | break;
|
---|
127 | case SVGA3D_X1R5G5B5:
|
---|
128 | _debug_printf("\t\t.format = SVGA3D_X1R5G5B5\n");
|
---|
129 | break;
|
---|
130 | case SVGA3D_A1R5G5B5:
|
---|
131 | _debug_printf("\t\t.format = SVGA3D_A1R5G5B5\n");
|
---|
132 | break;
|
---|
133 | case SVGA3D_A4R4G4B4:
|
---|
134 | _debug_printf("\t\t.format = SVGA3D_A4R4G4B4\n");
|
---|
135 | break;
|
---|
136 | case SVGA3D_Z_D32:
|
---|
137 | _debug_printf("\t\t.format = SVGA3D_Z_D32\n");
|
---|
138 | break;
|
---|
139 | case SVGA3D_Z_D16:
|
---|
140 | _debug_printf("\t\t.format = SVGA3D_Z_D16\n");
|
---|
141 | break;
|
---|
142 | case SVGA3D_Z_D24S8:
|
---|
143 | _debug_printf("\t\t.format = SVGA3D_Z_D24S8\n");
|
---|
144 | break;
|
---|
145 | case SVGA3D_Z_D15S1:
|
---|
146 | _debug_printf("\t\t.format = SVGA3D_Z_D15S1\n");
|
---|
147 | break;
|
---|
148 | case SVGA3D_LUMINANCE8:
|
---|
149 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE8\n");
|
---|
150 | break;
|
---|
151 | case SVGA3D_LUMINANCE4_ALPHA4:
|
---|
152 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE4_ALPHA4\n");
|
---|
153 | break;
|
---|
154 | case SVGA3D_LUMINANCE16:
|
---|
155 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE16\n");
|
---|
156 | break;
|
---|
157 | case SVGA3D_LUMINANCE8_ALPHA8:
|
---|
158 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE8_ALPHA8\n");
|
---|
159 | break;
|
---|
160 | case SVGA3D_DXT1:
|
---|
161 | _debug_printf("\t\t.format = SVGA3D_DXT1\n");
|
---|
162 | break;
|
---|
163 | case SVGA3D_DXT2:
|
---|
164 | _debug_printf("\t\t.format = SVGA3D_DXT2\n");
|
---|
165 | break;
|
---|
166 | case SVGA3D_DXT3:
|
---|
167 | _debug_printf("\t\t.format = SVGA3D_DXT3\n");
|
---|
168 | break;
|
---|
169 | case SVGA3D_DXT4:
|
---|
170 | _debug_printf("\t\t.format = SVGA3D_DXT4\n");
|
---|
171 | break;
|
---|
172 | case SVGA3D_DXT5:
|
---|
173 | _debug_printf("\t\t.format = SVGA3D_DXT5\n");
|
---|
174 | break;
|
---|
175 | case SVGA3D_BUMPU8V8:
|
---|
176 | _debug_printf("\t\t.format = SVGA3D_BUMPU8V8\n");
|
---|
177 | break;
|
---|
178 | case SVGA3D_BUMPL6V5U5:
|
---|
179 | _debug_printf("\t\t.format = SVGA3D_BUMPL6V5U5\n");
|
---|
180 | break;
|
---|
181 | case SVGA3D_BUMPX8L8V8U8:
|
---|
182 | _debug_printf("\t\t.format = SVGA3D_BUMPX8L8V8U8\n");
|
---|
183 | break;
|
---|
184 | case SVGA3D_FORMAT_DEAD1:
|
---|
185 | _debug_printf("\t\t.format = SVGA3D_FORMAT_DEAD1\n");
|
---|
186 | break;
|
---|
187 | case SVGA3D_ARGB_S10E5:
|
---|
188 | _debug_printf("\t\t.format = SVGA3D_ARGB_S10E5\n");
|
---|
189 | break;
|
---|
190 | case SVGA3D_ARGB_S23E8:
|
---|
191 | _debug_printf("\t\t.format = SVGA3D_ARGB_S23E8\n");
|
---|
192 | break;
|
---|
193 | case SVGA3D_A2R10G10B10:
|
---|
194 | _debug_printf("\t\t.format = SVGA3D_A2R10G10B10\n");
|
---|
195 | break;
|
---|
196 | case SVGA3D_V8U8:
|
---|
197 | _debug_printf("\t\t.format = SVGA3D_V8U8\n");
|
---|
198 | break;
|
---|
199 | case SVGA3D_Q8W8V8U8:
|
---|
200 | _debug_printf("\t\t.format = SVGA3D_Q8W8V8U8\n");
|
---|
201 | break;
|
---|
202 | case SVGA3D_CxV8U8:
|
---|
203 | _debug_printf("\t\t.format = SVGA3D_CxV8U8\n");
|
---|
204 | break;
|
---|
205 | case SVGA3D_X8L8V8U8:
|
---|
206 | _debug_printf("\t\t.format = SVGA3D_X8L8V8U8\n");
|
---|
207 | break;
|
---|
208 | case SVGA3D_A2W10V10U10:
|
---|
209 | _debug_printf("\t\t.format = SVGA3D_A2W10V10U10\n");
|
---|
210 | break;
|
---|
211 | case SVGA3D_ALPHA8:
|
---|
212 | _debug_printf("\t\t.format = SVGA3D_ALPHA8\n");
|
---|
213 | break;
|
---|
214 | case SVGA3D_R_S10E5:
|
---|
215 | _debug_printf("\t\t.format = SVGA3D_R_S10E5\n");
|
---|
216 | break;
|
---|
217 | case SVGA3D_R_S23E8:
|
---|
218 | _debug_printf("\t\t.format = SVGA3D_R_S23E8\n");
|
---|
219 | break;
|
---|
220 | case SVGA3D_RG_S10E5:
|
---|
221 | _debug_printf("\t\t.format = SVGA3D_RG_S10E5\n");
|
---|
222 | break;
|
---|
223 | case SVGA3D_RG_S23E8:
|
---|
224 | _debug_printf("\t\t.format = SVGA3D_RG_S23E8\n");
|
---|
225 | break;
|
---|
226 | case SVGA3D_BUFFER:
|
---|
227 | _debug_printf("\t\t.format = SVGA3D_BUFFER\n");
|
---|
228 | break;
|
---|
229 | case SVGA3D_Z_D24X8:
|
---|
230 | _debug_printf("\t\t.format = SVGA3D_Z_D24X8\n");
|
---|
231 | break;
|
---|
232 | case SVGA3D_V16U16:
|
---|
233 | _debug_printf("\t\t.format = SVGA3D_V16U16\n");
|
---|
234 | break;
|
---|
235 | case SVGA3D_G16R16:
|
---|
236 | _debug_printf("\t\t.format = SVGA3D_G16R16\n");
|
---|
237 | break;
|
---|
238 | case SVGA3D_A16B16G16R16:
|
---|
239 | _debug_printf("\t\t.format = SVGA3D_A16B16G16R16\n");
|
---|
240 | break;
|
---|
241 | case SVGA3D_UYVY:
|
---|
242 | _debug_printf("\t\t.format = SVGA3D_UYVY\n");
|
---|
243 | break;
|
---|
244 | case SVGA3D_YUY2:
|
---|
245 | _debug_printf("\t\t.format = SVGA3D_YUY2\n");
|
---|
246 | break;
|
---|
247 | case SVGA3D_NV12:
|
---|
248 | _debug_printf("\t\t.format = SVGA3D_NV12\n");
|
---|
249 | break;
|
---|
250 | case SVGA3D_FORMAT_DEAD2:
|
---|
251 | _debug_printf("\t\t.format = SVGA3D_FORMAT_DEAD2\n");
|
---|
252 | break;
|
---|
253 | case SVGA3D_R32G32B32A32_TYPELESS:
|
---|
254 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_TYPELESS\n");
|
---|
255 | break;
|
---|
256 | case SVGA3D_R32G32B32A32_UINT:
|
---|
257 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_UINT\n");
|
---|
258 | break;
|
---|
259 | case SVGA3D_R32G32B32A32_SINT:
|
---|
260 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_SINT\n");
|
---|
261 | break;
|
---|
262 | case SVGA3D_R32G32B32_TYPELESS:
|
---|
263 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_TYPELESS\n");
|
---|
264 | break;
|
---|
265 | case SVGA3D_R32G32B32_FLOAT:
|
---|
266 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_FLOAT\n");
|
---|
267 | break;
|
---|
268 | case SVGA3D_R32G32B32_UINT:
|
---|
269 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_UINT\n");
|
---|
270 | break;
|
---|
271 | case SVGA3D_R32G32B32_SINT:
|
---|
272 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_SINT\n");
|
---|
273 | break;
|
---|
274 | case SVGA3D_R16G16B16A16_TYPELESS:
|
---|
275 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_TYPELESS\n");
|
---|
276 | break;
|
---|
277 | case SVGA3D_R16G16B16A16_UINT:
|
---|
278 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_UINT\n");
|
---|
279 | break;
|
---|
280 | case SVGA3D_R16G16B16A16_SNORM:
|
---|
281 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_SNORM\n");
|
---|
282 | break;
|
---|
283 | case SVGA3D_R16G16B16A16_SINT:
|
---|
284 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_SINT\n");
|
---|
285 | break;
|
---|
286 | case SVGA3D_R32G32_TYPELESS:
|
---|
287 | _debug_printf("\t\t.format = SVGA3D_R32G32_TYPELESS\n");
|
---|
288 | break;
|
---|
289 | case SVGA3D_R32G32_UINT:
|
---|
290 | _debug_printf("\t\t.format = SVGA3D_R32G32_UINT\n");
|
---|
291 | break;
|
---|
292 | case SVGA3D_R32G32_SINT:
|
---|
293 | _debug_printf("\t\t.format = SVGA3D_R32G32_SINT\n");
|
---|
294 | break;
|
---|
295 | case SVGA3D_R32G8X24_TYPELESS:
|
---|
296 | _debug_printf("\t\t.format = SVGA3D_R32G8X24_TYPELESS\n");
|
---|
297 | break;
|
---|
298 | case SVGA3D_D32_FLOAT_S8X24_UINT:
|
---|
299 | _debug_printf("\t\t.format = SVGA3D_D32_FLOAT_S8X24_UINT\n");
|
---|
300 | break;
|
---|
301 | case SVGA3D_R32_FLOAT_X8X24:
|
---|
302 | _debug_printf("\t\t.format = SVGA3D_R32_FLOAT_X8X24\n");
|
---|
303 | break;
|
---|
304 | case SVGA3D_X32_G8X24_UINT:
|
---|
305 | _debug_printf("\t\t.format = SVGA3D_X32_G8X24_UINT\n");
|
---|
306 | break;
|
---|
307 | case SVGA3D_R10G10B10A2_TYPELESS:
|
---|
308 | _debug_printf("\t\t.format = SVGA3D_R10G10B10A2_TYPELESS\n");
|
---|
309 | break;
|
---|
310 | case SVGA3D_R10G10B10A2_UINT:
|
---|
311 | _debug_printf("\t\t.format = SVGA3D_R10G10B10A2_UINT\n");
|
---|
312 | break;
|
---|
313 | case SVGA3D_R11G11B10_FLOAT:
|
---|
314 | _debug_printf("\t\t.format = SVGA3D_R11G11B10_FLOAT\n");
|
---|
315 | break;
|
---|
316 | case SVGA3D_R8G8B8A8_TYPELESS:
|
---|
317 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_TYPELESS\n");
|
---|
318 | break;
|
---|
319 | case SVGA3D_R8G8B8A8_UNORM:
|
---|
320 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_UNORM\n");
|
---|
321 | break;
|
---|
322 | case SVGA3D_R8G8B8A8_UNORM_SRGB:
|
---|
323 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_UNORM_SRGB\n");
|
---|
324 | break;
|
---|
325 | case SVGA3D_R8G8B8A8_UINT:
|
---|
326 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_UINT\n");
|
---|
327 | break;
|
---|
328 | case SVGA3D_R8G8B8A8_SINT:
|
---|
329 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_SINT\n");
|
---|
330 | break;
|
---|
331 | case SVGA3D_R16G16_TYPELESS:
|
---|
332 | _debug_printf("\t\t.format = SVGA3D_R16G16_TYPELESS\n");
|
---|
333 | break;
|
---|
334 | case SVGA3D_R16G16_UINT:
|
---|
335 | _debug_printf("\t\t.format = SVGA3D_R16G16_UINT\n");
|
---|
336 | break;
|
---|
337 | case SVGA3D_R16G16_SINT:
|
---|
338 | _debug_printf("\t\t.format = SVGA3D_R16G16_SINT\n");
|
---|
339 | break;
|
---|
340 | case SVGA3D_R32_TYPELESS:
|
---|
341 | _debug_printf("\t\t.format = SVGA3D_R32_TYPELESS\n");
|
---|
342 | break;
|
---|
343 | case SVGA3D_D32_FLOAT:
|
---|
344 | _debug_printf("\t\t.format = SVGA3D_D32_FLOAT\n");
|
---|
345 | break;
|
---|
346 | case SVGA3D_R32_UINT:
|
---|
347 | _debug_printf("\t\t.format = SVGA3D_R32_UINT\n");
|
---|
348 | break;
|
---|
349 | case SVGA3D_R32_SINT:
|
---|
350 | _debug_printf("\t\t.format = SVGA3D_R32_SINT\n");
|
---|
351 | break;
|
---|
352 | case SVGA3D_R24G8_TYPELESS:
|
---|
353 | _debug_printf("\t\t.format = SVGA3D_R24G8_TYPELESS\n");
|
---|
354 | break;
|
---|
355 | case SVGA3D_D24_UNORM_S8_UINT:
|
---|
356 | _debug_printf("\t\t.format = SVGA3D_D24_UNORM_S8_UINT\n");
|
---|
357 | break;
|
---|
358 | case SVGA3D_R24_UNORM_X8:
|
---|
359 | _debug_printf("\t\t.format = SVGA3D_R24_UNORM_X8\n");
|
---|
360 | break;
|
---|
361 | case SVGA3D_X24_G8_UINT:
|
---|
362 | _debug_printf("\t\t.format = SVGA3D_X24_G8_UINT\n");
|
---|
363 | break;
|
---|
364 | case SVGA3D_R8G8_TYPELESS:
|
---|
365 | _debug_printf("\t\t.format = SVGA3D_R8G8_TYPELESS\n");
|
---|
366 | break;
|
---|
367 | case SVGA3D_R8G8_UNORM:
|
---|
368 | _debug_printf("\t\t.format = SVGA3D_R8G8_UNORM\n");
|
---|
369 | break;
|
---|
370 | case SVGA3D_R8G8_UINT:
|
---|
371 | _debug_printf("\t\t.format = SVGA3D_R8G8_UINT\n");
|
---|
372 | break;
|
---|
373 | case SVGA3D_R8G8_SINT:
|
---|
374 | _debug_printf("\t\t.format = SVGA3D_R8G8_SINT\n");
|
---|
375 | break;
|
---|
376 | case SVGA3D_R16_TYPELESS:
|
---|
377 | _debug_printf("\t\t.format = SVGA3D_R16_TYPELESS\n");
|
---|
378 | break;
|
---|
379 | case SVGA3D_R16_UNORM:
|
---|
380 | _debug_printf("\t\t.format = SVGA3D_R16_UNORM\n");
|
---|
381 | break;
|
---|
382 | case SVGA3D_R16_UINT:
|
---|
383 | _debug_printf("\t\t.format = SVGA3D_R16_UINT\n");
|
---|
384 | break;
|
---|
385 | case SVGA3D_R16_SNORM:
|
---|
386 | _debug_printf("\t\t.format = SVGA3D_R16_SNORM\n");
|
---|
387 | break;
|
---|
388 | case SVGA3D_R16_SINT:
|
---|
389 | _debug_printf("\t\t.format = SVGA3D_R16_SINT\n");
|
---|
390 | break;
|
---|
391 | case SVGA3D_R8_TYPELESS:
|
---|
392 | _debug_printf("\t\t.format = SVGA3D_R8_TYPELESS\n");
|
---|
393 | break;
|
---|
394 | case SVGA3D_R8_UNORM:
|
---|
395 | _debug_printf("\t\t.format = SVGA3D_R8_UNORM\n");
|
---|
396 | break;
|
---|
397 | case SVGA3D_R8_UINT:
|
---|
398 | _debug_printf("\t\t.format = SVGA3D_R8_UINT\n");
|
---|
399 | break;
|
---|
400 | case SVGA3D_R8_SNORM:
|
---|
401 | _debug_printf("\t\t.format = SVGA3D_R8_SNORM\n");
|
---|
402 | break;
|
---|
403 | case SVGA3D_R8_SINT:
|
---|
404 | _debug_printf("\t\t.format = SVGA3D_R8_SINT\n");
|
---|
405 | break;
|
---|
406 | case SVGA3D_P8:
|
---|
407 | _debug_printf("\t\t.format = SVGA3D_P8\n");
|
---|
408 | break;
|
---|
409 | case SVGA3D_R9G9B9E5_SHAREDEXP:
|
---|
410 | _debug_printf("\t\t.format = SVGA3D_R9G9B9E5_SHAREDEXP\n");
|
---|
411 | break;
|
---|
412 | case SVGA3D_R8G8_B8G8_UNORM:
|
---|
413 | _debug_printf("\t\t.format = SVGA3D_R8G8_B8G8_UNORM\n");
|
---|
414 | break;
|
---|
415 | case SVGA3D_G8R8_G8B8_UNORM:
|
---|
416 | _debug_printf("\t\t.format = SVGA3D_G8R8_G8B8_UNORM\n");
|
---|
417 | break;
|
---|
418 | case SVGA3D_BC1_TYPELESS:
|
---|
419 | _debug_printf("\t\t.format = SVGA3D_BC1_TYPELESS\n");
|
---|
420 | break;
|
---|
421 | case SVGA3D_BC1_UNORM_SRGB:
|
---|
422 | _debug_printf("\t\t.format = SVGA3D_BC1_UNORM_SRGB\n");
|
---|
423 | break;
|
---|
424 | case SVGA3D_BC2_TYPELESS:
|
---|
425 | _debug_printf("\t\t.format = SVGA3D_BC2_TYPELESS\n");
|
---|
426 | break;
|
---|
427 | case SVGA3D_BC2_UNORM_SRGB:
|
---|
428 | _debug_printf("\t\t.format = SVGA3D_BC2_UNORM_SRGB\n");
|
---|
429 | break;
|
---|
430 | case SVGA3D_BC3_TYPELESS:
|
---|
431 | _debug_printf("\t\t.format = SVGA3D_BC3_TYPELESS\n");
|
---|
432 | break;
|
---|
433 | case SVGA3D_BC3_UNORM_SRGB:
|
---|
434 | _debug_printf("\t\t.format = SVGA3D_BC3_UNORM_SRGB\n");
|
---|
435 | break;
|
---|
436 | case SVGA3D_BC4_TYPELESS:
|
---|
437 | _debug_printf("\t\t.format = SVGA3D_BC4_TYPELESS\n");
|
---|
438 | break;
|
---|
439 | case SVGA3D_ATI1:
|
---|
440 | _debug_printf("\t\t.format = SVGA3D_ATI1\n");
|
---|
441 | break;
|
---|
442 | case SVGA3D_BC4_SNORM:
|
---|
443 | _debug_printf("\t\t.format = SVGA3D_BC4_SNORM\n");
|
---|
444 | break;
|
---|
445 | case SVGA3D_BC5_TYPELESS:
|
---|
446 | _debug_printf("\t\t.format = SVGA3D_BC5_TYPELESS\n");
|
---|
447 | break;
|
---|
448 | case SVGA3D_ATI2:
|
---|
449 | _debug_printf("\t\t.format = SVGA3D_ATI2\n");
|
---|
450 | break;
|
---|
451 | case SVGA3D_BC5_SNORM:
|
---|
452 | _debug_printf("\t\t.format = SVGA3D_BC5_SNORM\n");
|
---|
453 | break;
|
---|
454 | case SVGA3D_R10G10B10_XR_BIAS_A2_UNORM:
|
---|
455 | _debug_printf("\t\t.format = SVGA3D_R10G10B10_XR_BIAS_A2_UNORM\n");
|
---|
456 | break;
|
---|
457 | case SVGA3D_B8G8R8A8_TYPELESS:
|
---|
458 | _debug_printf("\t\t.format = SVGA3D_B8G8R8A8_TYPELESS\n");
|
---|
459 | break;
|
---|
460 | case SVGA3D_B8G8R8A8_UNORM_SRGB:
|
---|
461 | _debug_printf("\t\t.format = SVGA3D_B8G8R8A8_UNORM_SRGB\n");
|
---|
462 | break;
|
---|
463 | case SVGA3D_B8G8R8X8_TYPELESS:
|
---|
464 | _debug_printf("\t\t.format = SVGA3D_B8G8R8X8_TYPELESS\n");
|
---|
465 | break;
|
---|
466 | case SVGA3D_B8G8R8X8_UNORM_SRGB:
|
---|
467 | _debug_printf("\t\t.format = SVGA3D_B8G8R8X8_UNORM_SRGB\n");
|
---|
468 | break;
|
---|
469 | case SVGA3D_Z_DF16:
|
---|
470 | _debug_printf("\t\t.format = SVGA3D_Z_DF16\n");
|
---|
471 | break;
|
---|
472 | case SVGA3D_Z_DF24:
|
---|
473 | _debug_printf("\t\t.format = SVGA3D_Z_DF24\n");
|
---|
474 | break;
|
---|
475 | case SVGA3D_Z_D24S8_INT:
|
---|
476 | _debug_printf("\t\t.format = SVGA3D_Z_D24S8_INT\n");
|
---|
477 | break;
|
---|
478 | case SVGA3D_YV12:
|
---|
479 | _debug_printf("\t\t.format = SVGA3D_YV12\n");
|
---|
480 | break;
|
---|
481 | case SVGA3D_R32G32B32A32_FLOAT:
|
---|
482 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_FLOAT\n");
|
---|
483 | break;
|
---|
484 | case SVGA3D_R16G16B16A16_FLOAT:
|
---|
485 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_FLOAT\n");
|
---|
486 | break;
|
---|
487 | case SVGA3D_R16G16B16A16_UNORM:
|
---|
488 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_UNORM\n");
|
---|
489 | break;
|
---|
490 | case SVGA3D_R32G32_FLOAT:
|
---|
491 | _debug_printf("\t\t.format = SVGA3D_R32G32_FLOAT\n");
|
---|
492 | break;
|
---|
493 | case SVGA3D_R10G10B10A2_UNORM:
|
---|
494 | _debug_printf("\t\t.format = SVGA3D_R10G10B10A2_UNORM\n");
|
---|
495 | break;
|
---|
496 | case SVGA3D_R8G8B8A8_SNORM:
|
---|
497 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_SNORM\n");
|
---|
498 | break;
|
---|
499 | case SVGA3D_R16G16_FLOAT:
|
---|
500 | _debug_printf("\t\t.format = SVGA3D_R16G16_FLOAT\n");
|
---|
501 | break;
|
---|
502 | case SVGA3D_R16G16_UNORM:
|
---|
503 | _debug_printf("\t\t.format = SVGA3D_R16G16_UNORM\n");
|
---|
504 | break;
|
---|
505 | case SVGA3D_R16G16_SNORM:
|
---|
506 | _debug_printf("\t\t.format = SVGA3D_R16G16_SNORM\n");
|
---|
507 | break;
|
---|
508 | case SVGA3D_R32_FLOAT:
|
---|
509 | _debug_printf("\t\t.format = SVGA3D_R32_FLOAT\n");
|
---|
510 | break;
|
---|
511 | case SVGA3D_R8G8_SNORM:
|
---|
512 | _debug_printf("\t\t.format = SVGA3D_R8G8_SNORM\n");
|
---|
513 | break;
|
---|
514 | case SVGA3D_R16_FLOAT:
|
---|
515 | _debug_printf("\t\t.format = SVGA3D_R16_FLOAT\n");
|
---|
516 | break;
|
---|
517 | case SVGA3D_D16_UNORM:
|
---|
518 | _debug_printf("\t\t.format = SVGA3D_D16_UNORM\n");
|
---|
519 | break;
|
---|
520 | case SVGA3D_A8_UNORM:
|
---|
521 | _debug_printf("\t\t.format = SVGA3D_A8_UNORM\n");
|
---|
522 | break;
|
---|
523 | case SVGA3D_BC1_UNORM:
|
---|
524 | _debug_printf("\t\t.format = SVGA3D_BC1_UNORM\n");
|
---|
525 | break;
|
---|
526 | case SVGA3D_BC2_UNORM:
|
---|
527 | _debug_printf("\t\t.format = SVGA3D_BC2_UNORM\n");
|
---|
528 | break;
|
---|
529 | case SVGA3D_BC3_UNORM:
|
---|
530 | _debug_printf("\t\t.format = SVGA3D_BC3_UNORM\n");
|
---|
531 | break;
|
---|
532 | case SVGA3D_B5G6R5_UNORM:
|
---|
533 | _debug_printf("\t\t.format = SVGA3D_B5G6R5_UNORM\n");
|
---|
534 | break;
|
---|
535 | case SVGA3D_B5G5R5A1_UNORM:
|
---|
536 | _debug_printf("\t\t.format = SVGA3D_B5G5R5A1_UNORM\n");
|
---|
537 | break;
|
---|
538 | case SVGA3D_B8G8R8A8_UNORM:
|
---|
539 | _debug_printf("\t\t.format = SVGA3D_B8G8R8A8_UNORM\n");
|
---|
540 | break;
|
---|
541 | case SVGA3D_B8G8R8X8_UNORM:
|
---|
542 | _debug_printf("\t\t.format = SVGA3D_B8G8R8X8_UNORM\n");
|
---|
543 | break;
|
---|
544 | case SVGA3D_BC4_UNORM:
|
---|
545 | _debug_printf("\t\t.format = SVGA3D_BC4_UNORM\n");
|
---|
546 | break;
|
---|
547 | case SVGA3D_BC5_UNORM:
|
---|
548 | _debug_printf("\t\t.format = SVGA3D_BC5_UNORM\n");
|
---|
549 | break;
|
---|
550 | case SVGA3D_B4G4R4A4_UNORM:
|
---|
551 | _debug_printf("\t\t.format = SVGA3D_B4G4R4A4_UNORM\n");
|
---|
552 | break;
|
---|
553 | case SVGA3D_BC6H_TYPELESS:
|
---|
554 | _debug_printf("\t\t.format = SVGA3D_BC6H_TYPELESS\n");
|
---|
555 | break;
|
---|
556 | case SVGA3D_BC6H_UF16:
|
---|
557 | _debug_printf("\t\t.format = SVGA3D_BC6H_UF16\n");
|
---|
558 | break;
|
---|
559 | case SVGA3D_BC6H_SF16:
|
---|
560 | _debug_printf("\t\t.format = SVGA3D_BC6H_SF16\n");
|
---|
561 | break;
|
---|
562 | case SVGA3D_BC7_TYPELESS:
|
---|
563 | _debug_printf("\t\t.format = SVGA3D_BC7_TYPELESS\n");
|
---|
564 | break;
|
---|
565 | case SVGA3D_BC7_UNORM:
|
---|
566 | _debug_printf("\t\t.format = SVGA3D_BC7_UNORM\n");
|
---|
567 | break;
|
---|
568 | case SVGA3D_BC7_UNORM_SRGB:
|
---|
569 | _debug_printf("\t\t.format = SVGA3D_BC7_UNORM_SRGB\n");
|
---|
570 | break;
|
---|
571 | case SVGA3D_AYUV:
|
---|
572 | _debug_printf("\t\t.format = SVGA3D_AYUV\n");
|
---|
573 | break;
|
---|
574 | default:
|
---|
575 | _debug_printf("\t\t.format = %i\n", (*cmd).format);
|
---|
576 | break;
|
---|
577 | }
|
---|
578 | _debug_printf("\t\t.face[0].numMipLevels = %u\n", (*cmd).face[0].numMipLevels);
|
---|
579 | _debug_printf("\t\t.face[1].numMipLevels = %u\n", (*cmd).face[1].numMipLevels);
|
---|
580 | _debug_printf("\t\t.face[2].numMipLevels = %u\n", (*cmd).face[2].numMipLevels);
|
---|
581 | _debug_printf("\t\t.face[3].numMipLevels = %u\n", (*cmd).face[3].numMipLevels);
|
---|
582 | _debug_printf("\t\t.face[4].numMipLevels = %u\n", (*cmd).face[4].numMipLevels);
|
---|
583 | _debug_printf("\t\t.face[5].numMipLevels = %u\n", (*cmd).face[5].numMipLevels);
|
---|
584 | }
|
---|
585 |
|
---|
586 | static void
|
---|
587 | dump_SVGA3dCmdDestroySurface(const SVGA3dCmdDestroySurface *cmd)
|
---|
588 | {
|
---|
589 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
590 | }
|
---|
591 |
|
---|
592 | static void
|
---|
593 | dump_SVGA3dCmdDefineContext(const SVGA3dCmdDefineContext *cmd)
|
---|
594 | {
|
---|
595 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
596 | }
|
---|
597 |
|
---|
598 | static void
|
---|
599 | dump_SVGA3dCmdDestroyContext(const SVGA3dCmdDestroyContext *cmd)
|
---|
600 | {
|
---|
601 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
602 | }
|
---|
603 |
|
---|
604 | static void
|
---|
605 | dump_SVGA3dCmdClear(const SVGA3dCmdClear *cmd)
|
---|
606 | {
|
---|
607 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
608 | switch((*cmd).clearFlag) {
|
---|
609 | case SVGA3D_CLEAR_COLOR:
|
---|
610 | _debug_printf("\t\t.clearFlag = SVGA3D_CLEAR_COLOR\n");
|
---|
611 | break;
|
---|
612 | case SVGA3D_CLEAR_DEPTH:
|
---|
613 | _debug_printf("\t\t.clearFlag = SVGA3D_CLEAR_DEPTH\n");
|
---|
614 | break;
|
---|
615 | case SVGA3D_CLEAR_STENCIL:
|
---|
616 | _debug_printf("\t\t.clearFlag = SVGA3D_CLEAR_STENCIL\n");
|
---|
617 | break;
|
---|
618 | case SVGA3D_CLEAR_COLORFILL:
|
---|
619 | _debug_printf("\t\t.clearFlag = SVGA3D_CLEAR_COLORFILL\n");
|
---|
620 | break;
|
---|
621 | default:
|
---|
622 | _debug_printf("\t\t.clearFlag = %i\n", (*cmd).clearFlag);
|
---|
623 | break;
|
---|
624 | }
|
---|
625 | _debug_printf("\t\t.color = %u\n", (*cmd).color);
|
---|
626 | _debug_printf("\t\t.depth = %f\n", (*cmd).depth);
|
---|
627 | _debug_printf("\t\t.stencil = %u\n", (*cmd).stencil);
|
---|
628 | }
|
---|
629 |
|
---|
630 | static void
|
---|
631 | dump_SVGA3dCmdPresent(const SVGA3dCmdPresent *cmd)
|
---|
632 | {
|
---|
633 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
634 | }
|
---|
635 |
|
---|
636 | static void
|
---|
637 | dump_SVGA3dRenderState(const SVGA3dRenderState *cmd)
|
---|
638 | {
|
---|
639 | switch((*cmd).state) {
|
---|
640 | case SVGA3D_RS_INVALID:
|
---|
641 | _debug_printf("\t\t.state = SVGA3D_RS_INVALID\n");
|
---|
642 | break;
|
---|
643 | case SVGA3D_RS_ZENABLE:
|
---|
644 | _debug_printf("\t\t.state = SVGA3D_RS_ZENABLE\n");
|
---|
645 | break;
|
---|
646 | case SVGA3D_RS_ZWRITEENABLE:
|
---|
647 | _debug_printf("\t\t.state = SVGA3D_RS_ZWRITEENABLE\n");
|
---|
648 | break;
|
---|
649 | case SVGA3D_RS_ALPHATESTENABLE:
|
---|
650 | _debug_printf("\t\t.state = SVGA3D_RS_ALPHATESTENABLE\n");
|
---|
651 | break;
|
---|
652 | case SVGA3D_RS_DITHERENABLE:
|
---|
653 | _debug_printf("\t\t.state = SVGA3D_RS_DITHERENABLE\n");
|
---|
654 | break;
|
---|
655 | case SVGA3D_RS_BLENDENABLE:
|
---|
656 | _debug_printf("\t\t.state = SVGA3D_RS_BLENDENABLE\n");
|
---|
657 | break;
|
---|
658 | case SVGA3D_RS_FOGENABLE:
|
---|
659 | _debug_printf("\t\t.state = SVGA3D_RS_FOGENABLE\n");
|
---|
660 | break;
|
---|
661 | case SVGA3D_RS_SPECULARENABLE:
|
---|
662 | _debug_printf("\t\t.state = SVGA3D_RS_SPECULARENABLE\n");
|
---|
663 | break;
|
---|
664 | case SVGA3D_RS_STENCILENABLE:
|
---|
665 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILENABLE\n");
|
---|
666 | break;
|
---|
667 | case SVGA3D_RS_LIGHTINGENABLE:
|
---|
668 | _debug_printf("\t\t.state = SVGA3D_RS_LIGHTINGENABLE\n");
|
---|
669 | break;
|
---|
670 | case SVGA3D_RS_NORMALIZENORMALS:
|
---|
671 | _debug_printf("\t\t.state = SVGA3D_RS_NORMALIZENORMALS\n");
|
---|
672 | break;
|
---|
673 | case SVGA3D_RS_POINTSPRITEENABLE:
|
---|
674 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSPRITEENABLE\n");
|
---|
675 | break;
|
---|
676 | case SVGA3D_RS_POINTSCALEENABLE:
|
---|
677 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSCALEENABLE\n");
|
---|
678 | break;
|
---|
679 | case SVGA3D_RS_STENCILREF:
|
---|
680 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILREF\n");
|
---|
681 | break;
|
---|
682 | case SVGA3D_RS_STENCILMASK:
|
---|
683 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILMASK\n");
|
---|
684 | break;
|
---|
685 | case SVGA3D_RS_STENCILWRITEMASK:
|
---|
686 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILWRITEMASK\n");
|
---|
687 | break;
|
---|
688 | case SVGA3D_RS_FOGSTART:
|
---|
689 | _debug_printf("\t\t.state = SVGA3D_RS_FOGSTART\n");
|
---|
690 | break;
|
---|
691 | case SVGA3D_RS_FOGEND:
|
---|
692 | _debug_printf("\t\t.state = SVGA3D_RS_FOGEND\n");
|
---|
693 | break;
|
---|
694 | case SVGA3D_RS_FOGDENSITY:
|
---|
695 | _debug_printf("\t\t.state = SVGA3D_RS_FOGDENSITY\n");
|
---|
696 | break;
|
---|
697 | case SVGA3D_RS_POINTSIZE:
|
---|
698 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSIZE\n");
|
---|
699 | break;
|
---|
700 | case SVGA3D_RS_POINTSIZEMIN:
|
---|
701 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSIZEMIN\n");
|
---|
702 | break;
|
---|
703 | case SVGA3D_RS_POINTSIZEMAX:
|
---|
704 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSIZEMAX\n");
|
---|
705 | break;
|
---|
706 | case SVGA3D_RS_POINTSCALE_A:
|
---|
707 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSCALE_A\n");
|
---|
708 | break;
|
---|
709 | case SVGA3D_RS_POINTSCALE_B:
|
---|
710 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSCALE_B\n");
|
---|
711 | break;
|
---|
712 | case SVGA3D_RS_POINTSCALE_C:
|
---|
713 | _debug_printf("\t\t.state = SVGA3D_RS_POINTSCALE_C\n");
|
---|
714 | break;
|
---|
715 | case SVGA3D_RS_FOGCOLOR:
|
---|
716 | _debug_printf("\t\t.state = SVGA3D_RS_FOGCOLOR\n");
|
---|
717 | break;
|
---|
718 | case SVGA3D_RS_AMBIENT:
|
---|
719 | _debug_printf("\t\t.state = SVGA3D_RS_AMBIENT\n");
|
---|
720 | break;
|
---|
721 | case SVGA3D_RS_CLIPPLANEENABLE:
|
---|
722 | _debug_printf("\t\t.state = SVGA3D_RS_CLIPPLANEENABLE\n");
|
---|
723 | break;
|
---|
724 | case SVGA3D_RS_FOGMODE:
|
---|
725 | _debug_printf("\t\t.state = SVGA3D_RS_FOGMODE\n");
|
---|
726 | break;
|
---|
727 | case SVGA3D_RS_FILLMODE:
|
---|
728 | _debug_printf("\t\t.state = SVGA3D_RS_FILLMODE\n");
|
---|
729 | break;
|
---|
730 | case SVGA3D_RS_SHADEMODE:
|
---|
731 | _debug_printf("\t\t.state = SVGA3D_RS_SHADEMODE\n");
|
---|
732 | break;
|
---|
733 | case SVGA3D_RS_LINEPATTERN:
|
---|
734 | _debug_printf("\t\t.state = SVGA3D_RS_LINEPATTERN\n");
|
---|
735 | break;
|
---|
736 | case SVGA3D_RS_SRCBLEND:
|
---|
737 | _debug_printf("\t\t.state = SVGA3D_RS_SRCBLEND\n");
|
---|
738 | break;
|
---|
739 | case SVGA3D_RS_DSTBLEND:
|
---|
740 | _debug_printf("\t\t.state = SVGA3D_RS_DSTBLEND\n");
|
---|
741 | break;
|
---|
742 | case SVGA3D_RS_BLENDEQUATION:
|
---|
743 | _debug_printf("\t\t.state = SVGA3D_RS_BLENDEQUATION\n");
|
---|
744 | break;
|
---|
745 | case SVGA3D_RS_CULLMODE:
|
---|
746 | _debug_printf("\t\t.state = SVGA3D_RS_CULLMODE\n");
|
---|
747 | break;
|
---|
748 | case SVGA3D_RS_ZFUNC:
|
---|
749 | _debug_printf("\t\t.state = SVGA3D_RS_ZFUNC\n");
|
---|
750 | break;
|
---|
751 | case SVGA3D_RS_ALPHAFUNC:
|
---|
752 | _debug_printf("\t\t.state = SVGA3D_RS_ALPHAFUNC\n");
|
---|
753 | break;
|
---|
754 | case SVGA3D_RS_STENCILFUNC:
|
---|
755 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILFUNC\n");
|
---|
756 | break;
|
---|
757 | case SVGA3D_RS_STENCILFAIL:
|
---|
758 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILFAIL\n");
|
---|
759 | break;
|
---|
760 | case SVGA3D_RS_STENCILZFAIL:
|
---|
761 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILZFAIL\n");
|
---|
762 | break;
|
---|
763 | case SVGA3D_RS_STENCILPASS:
|
---|
764 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILPASS\n");
|
---|
765 | break;
|
---|
766 | case SVGA3D_RS_ALPHAREF:
|
---|
767 | _debug_printf("\t\t.state = SVGA3D_RS_ALPHAREF\n");
|
---|
768 | break;
|
---|
769 | case SVGA3D_RS_FRONTWINDING:
|
---|
770 | _debug_printf("\t\t.state = SVGA3D_RS_FRONTWINDING\n");
|
---|
771 | break;
|
---|
772 | case SVGA3D_RS_COORDINATETYPE:
|
---|
773 | _debug_printf("\t\t.state = SVGA3D_RS_COORDINATETYPE\n");
|
---|
774 | break;
|
---|
775 | case SVGA3D_RS_ZBIAS:
|
---|
776 | _debug_printf("\t\t.state = SVGA3D_RS_ZBIAS\n");
|
---|
777 | break;
|
---|
778 | case SVGA3D_RS_RANGEFOGENABLE:
|
---|
779 | _debug_printf("\t\t.state = SVGA3D_RS_RANGEFOGENABLE\n");
|
---|
780 | break;
|
---|
781 | case SVGA3D_RS_COLORWRITEENABLE:
|
---|
782 | _debug_printf("\t\t.state = SVGA3D_RS_COLORWRITEENABLE\n");
|
---|
783 | break;
|
---|
784 | case SVGA3D_RS_VERTEXMATERIALENABLE:
|
---|
785 | _debug_printf("\t\t.state = SVGA3D_RS_VERTEXMATERIALENABLE\n");
|
---|
786 | break;
|
---|
787 | case SVGA3D_RS_DIFFUSEMATERIALSOURCE:
|
---|
788 | _debug_printf("\t\t.state = SVGA3D_RS_DIFFUSEMATERIALSOURCE\n");
|
---|
789 | break;
|
---|
790 | case SVGA3D_RS_SPECULARMATERIALSOURCE:
|
---|
791 | _debug_printf("\t\t.state = SVGA3D_RS_SPECULARMATERIALSOURCE\n");
|
---|
792 | break;
|
---|
793 | case SVGA3D_RS_AMBIENTMATERIALSOURCE:
|
---|
794 | _debug_printf("\t\t.state = SVGA3D_RS_AMBIENTMATERIALSOURCE\n");
|
---|
795 | break;
|
---|
796 | case SVGA3D_RS_EMISSIVEMATERIALSOURCE:
|
---|
797 | _debug_printf("\t\t.state = SVGA3D_RS_EMISSIVEMATERIALSOURCE\n");
|
---|
798 | break;
|
---|
799 | case SVGA3D_RS_TEXTUREFACTOR:
|
---|
800 | _debug_printf("\t\t.state = SVGA3D_RS_TEXTUREFACTOR\n");
|
---|
801 | break;
|
---|
802 | case SVGA3D_RS_LOCALVIEWER:
|
---|
803 | _debug_printf("\t\t.state = SVGA3D_RS_LOCALVIEWER\n");
|
---|
804 | break;
|
---|
805 | case SVGA3D_RS_SCISSORTESTENABLE:
|
---|
806 | _debug_printf("\t\t.state = SVGA3D_RS_SCISSORTESTENABLE\n");
|
---|
807 | break;
|
---|
808 | case SVGA3D_RS_BLENDCOLOR:
|
---|
809 | _debug_printf("\t\t.state = SVGA3D_RS_BLENDCOLOR\n");
|
---|
810 | break;
|
---|
811 | case SVGA3D_RS_STENCILENABLE2SIDED:
|
---|
812 | _debug_printf("\t\t.state = SVGA3D_RS_STENCILENABLE2SIDED\n");
|
---|
813 | break;
|
---|
814 | case SVGA3D_RS_CCWSTENCILFUNC:
|
---|
815 | _debug_printf("\t\t.state = SVGA3D_RS_CCWSTENCILFUNC\n");
|
---|
816 | break;
|
---|
817 | case SVGA3D_RS_CCWSTENCILFAIL:
|
---|
818 | _debug_printf("\t\t.state = SVGA3D_RS_CCWSTENCILFAIL\n");
|
---|
819 | break;
|
---|
820 | case SVGA3D_RS_CCWSTENCILZFAIL:
|
---|
821 | _debug_printf("\t\t.state = SVGA3D_RS_CCWSTENCILZFAIL\n");
|
---|
822 | break;
|
---|
823 | case SVGA3D_RS_CCWSTENCILPASS:
|
---|
824 | _debug_printf("\t\t.state = SVGA3D_RS_CCWSTENCILPASS\n");
|
---|
825 | break;
|
---|
826 | case SVGA3D_RS_VERTEXBLEND:
|
---|
827 | _debug_printf("\t\t.state = SVGA3D_RS_VERTEXBLEND\n");
|
---|
828 | break;
|
---|
829 | case SVGA3D_RS_SLOPESCALEDEPTHBIAS:
|
---|
830 | _debug_printf("\t\t.state = SVGA3D_RS_SLOPESCALEDEPTHBIAS\n");
|
---|
831 | break;
|
---|
832 | case SVGA3D_RS_DEPTHBIAS:
|
---|
833 | _debug_printf("\t\t.state = SVGA3D_RS_DEPTHBIAS\n");
|
---|
834 | break;
|
---|
835 | case SVGA3D_RS_OUTPUTGAMMA:
|
---|
836 | _debug_printf("\t\t.state = SVGA3D_RS_OUTPUTGAMMA\n");
|
---|
837 | break;
|
---|
838 | case SVGA3D_RS_ZVISIBLE:
|
---|
839 | _debug_printf("\t\t.state = SVGA3D_RS_ZVISIBLE\n");
|
---|
840 | break;
|
---|
841 | case SVGA3D_RS_LASTPIXEL:
|
---|
842 | _debug_printf("\t\t.state = SVGA3D_RS_LASTPIXEL\n");
|
---|
843 | break;
|
---|
844 | case SVGA3D_RS_CLIPPING:
|
---|
845 | _debug_printf("\t\t.state = SVGA3D_RS_CLIPPING\n");
|
---|
846 | break;
|
---|
847 | case SVGA3D_RS_WRAP0:
|
---|
848 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP0\n");
|
---|
849 | break;
|
---|
850 | case SVGA3D_RS_WRAP1:
|
---|
851 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP1\n");
|
---|
852 | break;
|
---|
853 | case SVGA3D_RS_WRAP2:
|
---|
854 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP2\n");
|
---|
855 | break;
|
---|
856 | case SVGA3D_RS_WRAP3:
|
---|
857 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP3\n");
|
---|
858 | break;
|
---|
859 | case SVGA3D_RS_WRAP4:
|
---|
860 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP4\n");
|
---|
861 | break;
|
---|
862 | case SVGA3D_RS_WRAP5:
|
---|
863 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP5\n");
|
---|
864 | break;
|
---|
865 | case SVGA3D_RS_WRAP6:
|
---|
866 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP6\n");
|
---|
867 | break;
|
---|
868 | case SVGA3D_RS_WRAP7:
|
---|
869 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP7\n");
|
---|
870 | break;
|
---|
871 | case SVGA3D_RS_WRAP8:
|
---|
872 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP8\n");
|
---|
873 | break;
|
---|
874 | case SVGA3D_RS_WRAP9:
|
---|
875 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP9\n");
|
---|
876 | break;
|
---|
877 | case SVGA3D_RS_WRAP10:
|
---|
878 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP10\n");
|
---|
879 | break;
|
---|
880 | case SVGA3D_RS_WRAP11:
|
---|
881 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP11\n");
|
---|
882 | break;
|
---|
883 | case SVGA3D_RS_WRAP12:
|
---|
884 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP12\n");
|
---|
885 | break;
|
---|
886 | case SVGA3D_RS_WRAP13:
|
---|
887 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP13\n");
|
---|
888 | break;
|
---|
889 | case SVGA3D_RS_WRAP14:
|
---|
890 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP14\n");
|
---|
891 | break;
|
---|
892 | case SVGA3D_RS_WRAP15:
|
---|
893 | _debug_printf("\t\t.state = SVGA3D_RS_WRAP15\n");
|
---|
894 | break;
|
---|
895 | case SVGA3D_RS_MULTISAMPLEANTIALIAS:
|
---|
896 | _debug_printf("\t\t.state = SVGA3D_RS_MULTISAMPLEANTIALIAS\n");
|
---|
897 | break;
|
---|
898 | case SVGA3D_RS_MULTISAMPLEMASK:
|
---|
899 | _debug_printf("\t\t.state = SVGA3D_RS_MULTISAMPLEMASK\n");
|
---|
900 | break;
|
---|
901 | case SVGA3D_RS_INDEXEDVERTEXBLENDENABLE:
|
---|
902 | _debug_printf("\t\t.state = SVGA3D_RS_INDEXEDVERTEXBLENDENABLE\n");
|
---|
903 | break;
|
---|
904 | case SVGA3D_RS_TWEENFACTOR:
|
---|
905 | _debug_printf("\t\t.state = SVGA3D_RS_TWEENFACTOR\n");
|
---|
906 | break;
|
---|
907 | case SVGA3D_RS_ANTIALIASEDLINEENABLE:
|
---|
908 | _debug_printf("\t\t.state = SVGA3D_RS_ANTIALIASEDLINEENABLE\n");
|
---|
909 | break;
|
---|
910 | case SVGA3D_RS_COLORWRITEENABLE1:
|
---|
911 | _debug_printf("\t\t.state = SVGA3D_RS_COLORWRITEENABLE1\n");
|
---|
912 | break;
|
---|
913 | case SVGA3D_RS_COLORWRITEENABLE2:
|
---|
914 | _debug_printf("\t\t.state = SVGA3D_RS_COLORWRITEENABLE2\n");
|
---|
915 | break;
|
---|
916 | case SVGA3D_RS_COLORWRITEENABLE3:
|
---|
917 | _debug_printf("\t\t.state = SVGA3D_RS_COLORWRITEENABLE3\n");
|
---|
918 | break;
|
---|
919 | case SVGA3D_RS_SEPARATEALPHABLENDENABLE:
|
---|
920 | _debug_printf("\t\t.state = SVGA3D_RS_SEPARATEALPHABLENDENABLE\n");
|
---|
921 | break;
|
---|
922 | case SVGA3D_RS_SRCBLENDALPHA:
|
---|
923 | _debug_printf("\t\t.state = SVGA3D_RS_SRCBLENDALPHA\n");
|
---|
924 | break;
|
---|
925 | case SVGA3D_RS_DSTBLENDALPHA:
|
---|
926 | _debug_printf("\t\t.state = SVGA3D_RS_DSTBLENDALPHA\n");
|
---|
927 | break;
|
---|
928 | case SVGA3D_RS_BLENDEQUATIONALPHA:
|
---|
929 | _debug_printf("\t\t.state = SVGA3D_RS_BLENDEQUATIONALPHA\n");
|
---|
930 | break;
|
---|
931 | case SVGA3D_RS_TRANSPARENCYANTIALIAS:
|
---|
932 | _debug_printf("\t\t.state = SVGA3D_RS_TRANSPARENCYANTIALIAS\n");
|
---|
933 | break;
|
---|
934 | case SVGA3D_RS_LINEWIDTH:
|
---|
935 | _debug_printf("\t\t.state = SVGA3D_RS_LINEWIDTH\n");
|
---|
936 | break;
|
---|
937 | default:
|
---|
938 | _debug_printf("\t\t.state = %i\n", (*cmd).state);
|
---|
939 | break;
|
---|
940 | }
|
---|
941 | _debug_printf("\t\t.uintValue = %u\n", (*cmd).uintValue);
|
---|
942 | _debug_printf("\t\t.floatValue = %f\n", (*cmd).floatValue);
|
---|
943 | }
|
---|
944 |
|
---|
945 | static void
|
---|
946 | dump_SVGA3dCmdSetRenderState(const SVGA3dCmdSetRenderState *cmd)
|
---|
947 | {
|
---|
948 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
949 | }
|
---|
950 |
|
---|
951 | static void
|
---|
952 | dump_SVGA3dCmdSetRenderTarget(const SVGA3dCmdSetRenderTarget *cmd)
|
---|
953 | {
|
---|
954 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
955 | switch((*cmd).type) {
|
---|
956 | case SVGA3D_RT_DEPTH:
|
---|
957 | _debug_printf("\t\t.type = SVGA3D_RT_DEPTH\n");
|
---|
958 | break;
|
---|
959 | case SVGA3D_RT_STENCIL:
|
---|
960 | _debug_printf("\t\t.type = SVGA3D_RT_STENCIL\n");
|
---|
961 | break;
|
---|
962 | case SVGA3D_RT_COLOR0:
|
---|
963 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR0\n");
|
---|
964 | break;
|
---|
965 | case SVGA3D_RT_COLOR1:
|
---|
966 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR1\n");
|
---|
967 | break;
|
---|
968 | case SVGA3D_RT_COLOR2:
|
---|
969 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR2\n");
|
---|
970 | break;
|
---|
971 | case SVGA3D_RT_COLOR3:
|
---|
972 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR3\n");
|
---|
973 | break;
|
---|
974 | case SVGA3D_RT_COLOR4:
|
---|
975 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR4\n");
|
---|
976 | break;
|
---|
977 | case SVGA3D_RT_COLOR5:
|
---|
978 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR5\n");
|
---|
979 | break;
|
---|
980 | case SVGA3D_RT_COLOR6:
|
---|
981 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR6\n");
|
---|
982 | break;
|
---|
983 | case SVGA3D_RT_COLOR7:
|
---|
984 | _debug_printf("\t\t.type = SVGA3D_RT_COLOR7\n");
|
---|
985 | break;
|
---|
986 | case SVGA3D_RT_INVALID:
|
---|
987 | _debug_printf("\t\t.type = SVGA3D_RT_INVALID\n");
|
---|
988 | break;
|
---|
989 | default:
|
---|
990 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
991 | break;
|
---|
992 | }
|
---|
993 | _debug_printf("\t\t.target.sid = %u\n", (*cmd).target.sid);
|
---|
994 | _debug_printf("\t\t.target.face = %u\n", (*cmd).target.face);
|
---|
995 | _debug_printf("\t\t.target.mipmap = %u\n", (*cmd).target.mipmap);
|
---|
996 | }
|
---|
997 |
|
---|
998 | static void
|
---|
999 | dump_SVGA3dCmdSurfaceCopy(const SVGA3dCmdSurfaceCopy *cmd)
|
---|
1000 | {
|
---|
1001 | _debug_printf("\t\t.src.sid = %u\n", (*cmd).src.sid);
|
---|
1002 | _debug_printf("\t\t.src.face = %u\n", (*cmd).src.face);
|
---|
1003 | _debug_printf("\t\t.src.mipmap = %u\n", (*cmd).src.mipmap);
|
---|
1004 | _debug_printf("\t\t.dest.sid = %u\n", (*cmd).dest.sid);
|
---|
1005 | _debug_printf("\t\t.dest.face = %u\n", (*cmd).dest.face);
|
---|
1006 | _debug_printf("\t\t.dest.mipmap = %u\n", (*cmd).dest.mipmap);
|
---|
1007 | }
|
---|
1008 |
|
---|
1009 | static void
|
---|
1010 | dump_SVGA3dCmdSurfaceStretchBlt(const SVGA3dCmdSurfaceStretchBlt *cmd)
|
---|
1011 | {
|
---|
1012 | _debug_printf("\t\t.src.sid = %u\n", (*cmd).src.sid);
|
---|
1013 | _debug_printf("\t\t.src.face = %u\n", (*cmd).src.face);
|
---|
1014 | _debug_printf("\t\t.src.mipmap = %u\n", (*cmd).src.mipmap);
|
---|
1015 | _debug_printf("\t\t.dest.sid = %u\n", (*cmd).dest.sid);
|
---|
1016 | _debug_printf("\t\t.dest.face = %u\n", (*cmd).dest.face);
|
---|
1017 | _debug_printf("\t\t.dest.mipmap = %u\n", (*cmd).dest.mipmap);
|
---|
1018 | _debug_printf("\t\t.boxSrc.x = %u\n", (*cmd).boxSrc.x);
|
---|
1019 | _debug_printf("\t\t.boxSrc.y = %u\n", (*cmd).boxSrc.y);
|
---|
1020 | _debug_printf("\t\t.boxSrc.z = %u\n", (*cmd).boxSrc.z);
|
---|
1021 | _debug_printf("\t\t.boxSrc.w = %u\n", (*cmd).boxSrc.w);
|
---|
1022 | _debug_printf("\t\t.boxSrc.h = %u\n", (*cmd).boxSrc.h);
|
---|
1023 | _debug_printf("\t\t.boxSrc.d = %u\n", (*cmd).boxSrc.d);
|
---|
1024 | _debug_printf("\t\t.boxDest.x = %u\n", (*cmd).boxDest.x);
|
---|
1025 | _debug_printf("\t\t.boxDest.y = %u\n", (*cmd).boxDest.y);
|
---|
1026 | _debug_printf("\t\t.boxDest.z = %u\n", (*cmd).boxDest.z);
|
---|
1027 | _debug_printf("\t\t.boxDest.w = %u\n", (*cmd).boxDest.w);
|
---|
1028 | _debug_printf("\t\t.boxDest.h = %u\n", (*cmd).boxDest.h);
|
---|
1029 | _debug_printf("\t\t.boxDest.d = %u\n", (*cmd).boxDest.d);
|
---|
1030 | switch((*cmd).mode) {
|
---|
1031 | case SVGA3D_STRETCH_BLT_POINT:
|
---|
1032 | _debug_printf("\t\t.mode = SVGA3D_STRETCH_BLT_POINT\n");
|
---|
1033 | break;
|
---|
1034 | case SVGA3D_STRETCH_BLT_LINEAR:
|
---|
1035 | _debug_printf("\t\t.mode = SVGA3D_STRETCH_BLT_LINEAR\n");
|
---|
1036 | break;
|
---|
1037 | default:
|
---|
1038 | _debug_printf("\t\t.mode = %i\n", (*cmd).mode);
|
---|
1039 | break;
|
---|
1040 | }
|
---|
1041 | }
|
---|
1042 |
|
---|
1043 | static void
|
---|
1044 | dump_SVGA3dCmdSurfaceDMA(const SVGA3dCmdSurfaceDMA *cmd)
|
---|
1045 | {
|
---|
1046 | _debug_printf("\t\t.guest.ptr.gmrId = %u\n", (*cmd).guest.ptr.gmrId);
|
---|
1047 | _debug_printf("\t\t.guest.ptr.offset = %u\n", (*cmd).guest.ptr.offset);
|
---|
1048 | _debug_printf("\t\t.guest.pitch = %u\n", (*cmd).guest.pitch);
|
---|
1049 | _debug_printf("\t\t.host.sid = %u\n", (*cmd).host.sid);
|
---|
1050 | _debug_printf("\t\t.host.face = %u\n", (*cmd).host.face);
|
---|
1051 | _debug_printf("\t\t.host.mipmap = %u\n", (*cmd).host.mipmap);
|
---|
1052 | switch((*cmd).transfer) {
|
---|
1053 | case SVGA3D_WRITE_HOST_VRAM:
|
---|
1054 | _debug_printf("\t\t.transfer = SVGA3D_WRITE_HOST_VRAM\n");
|
---|
1055 | break;
|
---|
1056 | case SVGA3D_READ_HOST_VRAM:
|
---|
1057 | _debug_printf("\t\t.transfer = SVGA3D_READ_HOST_VRAM\n");
|
---|
1058 | break;
|
---|
1059 | default:
|
---|
1060 | _debug_printf("\t\t.transfer = %i\n", (*cmd).transfer);
|
---|
1061 | break;
|
---|
1062 | }
|
---|
1063 | }
|
---|
1064 |
|
---|
1065 | static void
|
---|
1066 | dump_SVGA3dVertexDecl(const SVGA3dVertexDecl *cmd)
|
---|
1067 | {
|
---|
1068 | switch((*cmd).identity.type) {
|
---|
1069 | case SVGA3D_DECLTYPE_FLOAT1:
|
---|
1070 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_FLOAT1\n");
|
---|
1071 | break;
|
---|
1072 | case SVGA3D_DECLTYPE_FLOAT2:
|
---|
1073 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_FLOAT2\n");
|
---|
1074 | break;
|
---|
1075 | case SVGA3D_DECLTYPE_FLOAT3:
|
---|
1076 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_FLOAT3\n");
|
---|
1077 | break;
|
---|
1078 | case SVGA3D_DECLTYPE_FLOAT4:
|
---|
1079 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_FLOAT4\n");
|
---|
1080 | break;
|
---|
1081 | case SVGA3D_DECLTYPE_D3DCOLOR:
|
---|
1082 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_D3DCOLOR\n");
|
---|
1083 | break;
|
---|
1084 | case SVGA3D_DECLTYPE_UBYTE4:
|
---|
1085 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_UBYTE4\n");
|
---|
1086 | break;
|
---|
1087 | case SVGA3D_DECLTYPE_SHORT2:
|
---|
1088 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_SHORT2\n");
|
---|
1089 | break;
|
---|
1090 | case SVGA3D_DECLTYPE_SHORT4:
|
---|
1091 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_SHORT4\n");
|
---|
1092 | break;
|
---|
1093 | case SVGA3D_DECLTYPE_UBYTE4N:
|
---|
1094 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_UBYTE4N\n");
|
---|
1095 | break;
|
---|
1096 | case SVGA3D_DECLTYPE_SHORT2N:
|
---|
1097 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_SHORT2N\n");
|
---|
1098 | break;
|
---|
1099 | case SVGA3D_DECLTYPE_SHORT4N:
|
---|
1100 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_SHORT4N\n");
|
---|
1101 | break;
|
---|
1102 | case SVGA3D_DECLTYPE_USHORT2N:
|
---|
1103 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_USHORT2N\n");
|
---|
1104 | break;
|
---|
1105 | case SVGA3D_DECLTYPE_USHORT4N:
|
---|
1106 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_USHORT4N\n");
|
---|
1107 | break;
|
---|
1108 | case SVGA3D_DECLTYPE_UDEC3:
|
---|
1109 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_UDEC3\n");
|
---|
1110 | break;
|
---|
1111 | case SVGA3D_DECLTYPE_DEC3N:
|
---|
1112 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_DEC3N\n");
|
---|
1113 | break;
|
---|
1114 | case SVGA3D_DECLTYPE_FLOAT16_2:
|
---|
1115 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_FLOAT16_2\n");
|
---|
1116 | break;
|
---|
1117 | case SVGA3D_DECLTYPE_FLOAT16_4:
|
---|
1118 | _debug_printf("\t\t.identity.type = SVGA3D_DECLTYPE_FLOAT16_4\n");
|
---|
1119 | break;
|
---|
1120 | default:
|
---|
1121 | _debug_printf("\t\t.identity.type = %i\n", (*cmd).identity.type);
|
---|
1122 | break;
|
---|
1123 | }
|
---|
1124 | switch((*cmd).identity.method) {
|
---|
1125 | case SVGA3D_DECLMETHOD_DEFAULT:
|
---|
1126 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_DEFAULT\n");
|
---|
1127 | break;
|
---|
1128 | case SVGA3D_DECLMETHOD_PARTIALU:
|
---|
1129 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_PARTIALU\n");
|
---|
1130 | break;
|
---|
1131 | case SVGA3D_DECLMETHOD_PARTIALV:
|
---|
1132 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_PARTIALV\n");
|
---|
1133 | break;
|
---|
1134 | case SVGA3D_DECLMETHOD_CROSSUV:
|
---|
1135 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_CROSSUV\n");
|
---|
1136 | break;
|
---|
1137 | case SVGA3D_DECLMETHOD_UV:
|
---|
1138 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_UV\n");
|
---|
1139 | break;
|
---|
1140 | case SVGA3D_DECLMETHOD_LOOKUP:
|
---|
1141 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_LOOKUP\n");
|
---|
1142 | break;
|
---|
1143 | case SVGA3D_DECLMETHOD_LOOKUPPRESAMPLED:
|
---|
1144 | _debug_printf("\t\t.identity.method = SVGA3D_DECLMETHOD_LOOKUPPRESAMPLED\n");
|
---|
1145 | break;
|
---|
1146 | default:
|
---|
1147 | _debug_printf("\t\t.identity.method = %i\n", (*cmd).identity.method);
|
---|
1148 | break;
|
---|
1149 | }
|
---|
1150 | switch((*cmd).identity.usage) {
|
---|
1151 | case SVGA3D_DECLUSAGE_POSITION:
|
---|
1152 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_POSITION\n");
|
---|
1153 | break;
|
---|
1154 | case SVGA3D_DECLUSAGE_BLENDWEIGHT:
|
---|
1155 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_BLENDWEIGHT\n");
|
---|
1156 | break;
|
---|
1157 | case SVGA3D_DECLUSAGE_BLENDINDICES:
|
---|
1158 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_BLENDINDICES\n");
|
---|
1159 | break;
|
---|
1160 | case SVGA3D_DECLUSAGE_NORMAL:
|
---|
1161 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_NORMAL\n");
|
---|
1162 | break;
|
---|
1163 | case SVGA3D_DECLUSAGE_PSIZE:
|
---|
1164 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_PSIZE\n");
|
---|
1165 | break;
|
---|
1166 | case SVGA3D_DECLUSAGE_TEXCOORD:
|
---|
1167 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_TEXCOORD\n");
|
---|
1168 | break;
|
---|
1169 | case SVGA3D_DECLUSAGE_TANGENT:
|
---|
1170 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_TANGENT\n");
|
---|
1171 | break;
|
---|
1172 | case SVGA3D_DECLUSAGE_BINORMAL:
|
---|
1173 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_BINORMAL\n");
|
---|
1174 | break;
|
---|
1175 | case SVGA3D_DECLUSAGE_TESSFACTOR:
|
---|
1176 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_TESSFACTOR\n");
|
---|
1177 | break;
|
---|
1178 | case SVGA3D_DECLUSAGE_POSITIONT:
|
---|
1179 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_POSITIONT\n");
|
---|
1180 | break;
|
---|
1181 | case SVGA3D_DECLUSAGE_COLOR:
|
---|
1182 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_COLOR\n");
|
---|
1183 | break;
|
---|
1184 | case SVGA3D_DECLUSAGE_FOG:
|
---|
1185 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_FOG\n");
|
---|
1186 | break;
|
---|
1187 | case SVGA3D_DECLUSAGE_DEPTH:
|
---|
1188 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_DEPTH\n");
|
---|
1189 | break;
|
---|
1190 | case SVGA3D_DECLUSAGE_SAMPLE:
|
---|
1191 | _debug_printf("\t\t.identity.usage = SVGA3D_DECLUSAGE_SAMPLE\n");
|
---|
1192 | break;
|
---|
1193 | default:
|
---|
1194 | _debug_printf("\t\t.identity.usage = %i\n", (*cmd).identity.usage);
|
---|
1195 | break;
|
---|
1196 | }
|
---|
1197 | _debug_printf("\t\t.identity.usageIndex = %u\n", (*cmd).identity.usageIndex);
|
---|
1198 | _debug_printf("\t\t.array.surfaceId = %u\n", (*cmd).array.surfaceId);
|
---|
1199 | _debug_printf("\t\t.array.offset = %u\n", (*cmd).array.offset);
|
---|
1200 | _debug_printf("\t\t.array.stride = %u\n", (*cmd).array.stride);
|
---|
1201 | _debug_printf("\t\t.rangeHint.first = %u\n", (*cmd).rangeHint.first);
|
---|
1202 | _debug_printf("\t\t.rangeHint.last = %u\n", (*cmd).rangeHint.last);
|
---|
1203 | }
|
---|
1204 |
|
---|
1205 | static void
|
---|
1206 | dump_SVGA3dPrimitiveRange(const SVGA3dPrimitiveRange *cmd)
|
---|
1207 | {
|
---|
1208 | switch((*cmd).primType) {
|
---|
1209 | case SVGA3D_PRIMITIVE_INVALID:
|
---|
1210 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_INVALID\n");
|
---|
1211 | break;
|
---|
1212 | case SVGA3D_PRIMITIVE_TRIANGLELIST:
|
---|
1213 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_TRIANGLELIST\n");
|
---|
1214 | break;
|
---|
1215 | case SVGA3D_PRIMITIVE_POINTLIST:
|
---|
1216 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_POINTLIST\n");
|
---|
1217 | break;
|
---|
1218 | case SVGA3D_PRIMITIVE_LINELIST:
|
---|
1219 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_LINELIST\n");
|
---|
1220 | break;
|
---|
1221 | case SVGA3D_PRIMITIVE_LINESTRIP:
|
---|
1222 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_LINESTRIP\n");
|
---|
1223 | break;
|
---|
1224 | case SVGA3D_PRIMITIVE_TRIANGLESTRIP:
|
---|
1225 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_TRIANGLESTRIP\n");
|
---|
1226 | break;
|
---|
1227 | case SVGA3D_PRIMITIVE_TRIANGLEFAN:
|
---|
1228 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_TRIANGLEFAN\n");
|
---|
1229 | break;
|
---|
1230 | case SVGA3D_PRIMITIVE_LINELIST_ADJ:
|
---|
1231 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_LINELIST_ADJ\n");
|
---|
1232 | break;
|
---|
1233 | case SVGA3D_PRIMITIVE_LINESTRIP_ADJ:
|
---|
1234 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_LINESTRIP_ADJ\n");
|
---|
1235 | break;
|
---|
1236 | case SVGA3D_PRIMITIVE_TRIANGLELIST_ADJ:
|
---|
1237 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_TRIANGLELIST_ADJ\n");
|
---|
1238 | break;
|
---|
1239 | case SVGA3D_PRIMITIVE_TRIANGLESTRIP_ADJ:
|
---|
1240 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_TRIANGLESTRIP_ADJ\n");
|
---|
1241 | break;
|
---|
1242 | case SVGA3D_PRIMITIVE_1_CONTROL_POINT_PATCH:
|
---|
1243 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_1_CONTROL_POINT_PATCH\n");
|
---|
1244 | break;
|
---|
1245 | case SVGA3D_PRIMITIVE_2_CONTROL_POINT_PATCH:
|
---|
1246 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_2_CONTROL_POINT_PATCH\n");
|
---|
1247 | break;
|
---|
1248 | case SVGA3D_PRIMITIVE_3_CONTROL_POINT_PATCH:
|
---|
1249 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_3_CONTROL_POINT_PATCH\n");
|
---|
1250 | break;
|
---|
1251 | case SVGA3D_PRIMITIVE_4_CONTROL_POINT_PATCH:
|
---|
1252 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_4_CONTROL_POINT_PATCH\n");
|
---|
1253 | break;
|
---|
1254 | case SVGA3D_PRIMITIVE_5_CONTROL_POINT_PATCH:
|
---|
1255 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_5_CONTROL_POINT_PATCH\n");
|
---|
1256 | break;
|
---|
1257 | case SVGA3D_PRIMITIVE_6_CONTROL_POINT_PATCH:
|
---|
1258 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_6_CONTROL_POINT_PATCH\n");
|
---|
1259 | break;
|
---|
1260 | case SVGA3D_PRIMITIVE_7_CONTROL_POINT_PATCH:
|
---|
1261 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_7_CONTROL_POINT_PATCH\n");
|
---|
1262 | break;
|
---|
1263 | case SVGA3D_PRIMITIVE_8_CONTROL_POINT_PATCH:
|
---|
1264 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_8_CONTROL_POINT_PATCH\n");
|
---|
1265 | break;
|
---|
1266 | case SVGA3D_PRIMITIVE_9_CONTROL_POINT_PATCH:
|
---|
1267 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_9_CONTROL_POINT_PATCH\n");
|
---|
1268 | break;
|
---|
1269 | case SVGA3D_PRIMITIVE_10_CONTROL_POINT_PATCH:
|
---|
1270 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_10_CONTROL_POINT_PATCH\n");
|
---|
1271 | break;
|
---|
1272 | case SVGA3D_PRIMITIVE_11_CONTROL_POINT_PATCH:
|
---|
1273 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_11_CONTROL_POINT_PATCH\n");
|
---|
1274 | break;
|
---|
1275 | case SVGA3D_PRIMITIVE_12_CONTROL_POINT_PATCH:
|
---|
1276 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_12_CONTROL_POINT_PATCH\n");
|
---|
1277 | break;
|
---|
1278 | case SVGA3D_PRIMITIVE_13_CONTROL_POINT_PATCH:
|
---|
1279 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_13_CONTROL_POINT_PATCH\n");
|
---|
1280 | break;
|
---|
1281 | case SVGA3D_PRIMITIVE_14_CONTROL_POINT_PATCH:
|
---|
1282 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_14_CONTROL_POINT_PATCH\n");
|
---|
1283 | break;
|
---|
1284 | case SVGA3D_PRIMITIVE_15_CONTROL_POINT_PATCH:
|
---|
1285 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_15_CONTROL_POINT_PATCH\n");
|
---|
1286 | break;
|
---|
1287 | case SVGA3D_PRIMITIVE_16_CONTROL_POINT_PATCH:
|
---|
1288 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_16_CONTROL_POINT_PATCH\n");
|
---|
1289 | break;
|
---|
1290 | case SVGA3D_PRIMITIVE_17_CONTROL_POINT_PATCH:
|
---|
1291 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_17_CONTROL_POINT_PATCH\n");
|
---|
1292 | break;
|
---|
1293 | case SVGA3D_PRIMITIVE_18_CONTROL_POINT_PATCH:
|
---|
1294 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_18_CONTROL_POINT_PATCH\n");
|
---|
1295 | break;
|
---|
1296 | case SVGA3D_PRIMITIVE_19_CONTROL_POINT_PATCH:
|
---|
1297 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_19_CONTROL_POINT_PATCH\n");
|
---|
1298 | break;
|
---|
1299 | case SVGA3D_PRIMITIVE_20_CONTROL_POINT_PATCH:
|
---|
1300 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_20_CONTROL_POINT_PATCH\n");
|
---|
1301 | break;
|
---|
1302 | case SVGA3D_PRIMITIVE_21_CONTROL_POINT_PATCH:
|
---|
1303 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_21_CONTROL_POINT_PATCH\n");
|
---|
1304 | break;
|
---|
1305 | case SVGA3D_PRIMITIVE_22_CONTROL_POINT_PATCH:
|
---|
1306 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_22_CONTROL_POINT_PATCH\n");
|
---|
1307 | break;
|
---|
1308 | case SVGA3D_PRIMITIVE_23_CONTROL_POINT_PATCH:
|
---|
1309 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_23_CONTROL_POINT_PATCH\n");
|
---|
1310 | break;
|
---|
1311 | case SVGA3D_PRIMITIVE_24_CONTROL_POINT_PATCH:
|
---|
1312 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_24_CONTROL_POINT_PATCH\n");
|
---|
1313 | break;
|
---|
1314 | case SVGA3D_PRIMITIVE_25_CONTROL_POINT_PATCH:
|
---|
1315 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_25_CONTROL_POINT_PATCH\n");
|
---|
1316 | break;
|
---|
1317 | case SVGA3D_PRIMITIVE_26_CONTROL_POINT_PATCH:
|
---|
1318 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_26_CONTROL_POINT_PATCH\n");
|
---|
1319 | break;
|
---|
1320 | case SVGA3D_PRIMITIVE_27_CONTROL_POINT_PATCH:
|
---|
1321 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_27_CONTROL_POINT_PATCH\n");
|
---|
1322 | break;
|
---|
1323 | case SVGA3D_PRIMITIVE_28_CONTROL_POINT_PATCH:
|
---|
1324 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_28_CONTROL_POINT_PATCH\n");
|
---|
1325 | break;
|
---|
1326 | case SVGA3D_PRIMITIVE_29_CONTROL_POINT_PATCH:
|
---|
1327 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_29_CONTROL_POINT_PATCH\n");
|
---|
1328 | break;
|
---|
1329 | case SVGA3D_PRIMITIVE_30_CONTROL_POINT_PATCH:
|
---|
1330 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_30_CONTROL_POINT_PATCH\n");
|
---|
1331 | break;
|
---|
1332 | case SVGA3D_PRIMITIVE_31_CONTROL_POINT_PATCH:
|
---|
1333 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_31_CONTROL_POINT_PATCH\n");
|
---|
1334 | break;
|
---|
1335 | case SVGA3D_PRIMITIVE_32_CONTROL_POINT_PATCH:
|
---|
1336 | _debug_printf("\t\t.primType = SVGA3D_PRIMITIVE_32_CONTROL_POINT_PATCH\n");
|
---|
1337 | break;
|
---|
1338 | default:
|
---|
1339 | _debug_printf("\t\t.primType = %i\n", (*cmd).primType);
|
---|
1340 | break;
|
---|
1341 | }
|
---|
1342 | _debug_printf("\t\t.primitiveCount = %u\n", (*cmd).primitiveCount);
|
---|
1343 | _debug_printf("\t\t.indexArray.surfaceId = %u\n", (*cmd).indexArray.surfaceId);
|
---|
1344 | _debug_printf("\t\t.indexArray.offset = %u\n", (*cmd).indexArray.offset);
|
---|
1345 | _debug_printf("\t\t.indexArray.stride = %u\n", (*cmd).indexArray.stride);
|
---|
1346 | _debug_printf("\t\t.indexWidth = %u\n", (*cmd).indexWidth);
|
---|
1347 | _debug_printf("\t\t.indexBias = %i\n", (*cmd).indexBias);
|
---|
1348 | }
|
---|
1349 |
|
---|
1350 | static void
|
---|
1351 | dump_SVGA3dCmdDrawPrimitives(const SVGA3dCmdDrawPrimitives *cmd)
|
---|
1352 | {
|
---|
1353 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1354 | _debug_printf("\t\t.numVertexDecls = %u\n", (*cmd).numVertexDecls);
|
---|
1355 | _debug_printf("\t\t.numRanges = %u\n", (*cmd).numRanges);
|
---|
1356 | }
|
---|
1357 |
|
---|
1358 | static void
|
---|
1359 | dump_SVGA3dTextureState(const SVGA3dTextureState *cmd)
|
---|
1360 | {
|
---|
1361 | _debug_printf("\t\t.stage = %u\n", (*cmd).stage);
|
---|
1362 | switch((*cmd).name) {
|
---|
1363 | case SVGA3D_TS_INVALID:
|
---|
1364 | _debug_printf("\t\t.name = SVGA3D_TS_INVALID\n");
|
---|
1365 | break;
|
---|
1366 | case SVGA3D_TS_BIND_TEXTURE:
|
---|
1367 | _debug_printf("\t\t.name = SVGA3D_TS_BIND_TEXTURE\n");
|
---|
1368 | break;
|
---|
1369 | case SVGA3D_TS_COLOROP:
|
---|
1370 | _debug_printf("\t\t.name = SVGA3D_TS_COLOROP\n");
|
---|
1371 | break;
|
---|
1372 | case SVGA3D_TS_COLORARG1:
|
---|
1373 | _debug_printf("\t\t.name = SVGA3D_TS_COLORARG1\n");
|
---|
1374 | break;
|
---|
1375 | case SVGA3D_TS_COLORARG2:
|
---|
1376 | _debug_printf("\t\t.name = SVGA3D_TS_COLORARG2\n");
|
---|
1377 | break;
|
---|
1378 | case SVGA3D_TS_ALPHAOP:
|
---|
1379 | _debug_printf("\t\t.name = SVGA3D_TS_ALPHAOP\n");
|
---|
1380 | break;
|
---|
1381 | case SVGA3D_TS_ALPHAARG1:
|
---|
1382 | _debug_printf("\t\t.name = SVGA3D_TS_ALPHAARG1\n");
|
---|
1383 | break;
|
---|
1384 | case SVGA3D_TS_ALPHAARG2:
|
---|
1385 | _debug_printf("\t\t.name = SVGA3D_TS_ALPHAARG2\n");
|
---|
1386 | break;
|
---|
1387 | case SVGA3D_TS_ADDRESSU:
|
---|
1388 | _debug_printf("\t\t.name = SVGA3D_TS_ADDRESSU\n");
|
---|
1389 | break;
|
---|
1390 | case SVGA3D_TS_ADDRESSV:
|
---|
1391 | _debug_printf("\t\t.name = SVGA3D_TS_ADDRESSV\n");
|
---|
1392 | break;
|
---|
1393 | case SVGA3D_TS_MIPFILTER:
|
---|
1394 | _debug_printf("\t\t.name = SVGA3D_TS_MIPFILTER\n");
|
---|
1395 | break;
|
---|
1396 | case SVGA3D_TS_MAGFILTER:
|
---|
1397 | _debug_printf("\t\t.name = SVGA3D_TS_MAGFILTER\n");
|
---|
1398 | break;
|
---|
1399 | case SVGA3D_TS_MINFILTER:
|
---|
1400 | _debug_printf("\t\t.name = SVGA3D_TS_MINFILTER\n");
|
---|
1401 | break;
|
---|
1402 | case SVGA3D_TS_BORDERCOLOR:
|
---|
1403 | _debug_printf("\t\t.name = SVGA3D_TS_BORDERCOLOR\n");
|
---|
1404 | break;
|
---|
1405 | case SVGA3D_TS_TEXCOORDINDEX:
|
---|
1406 | _debug_printf("\t\t.name = SVGA3D_TS_TEXCOORDINDEX\n");
|
---|
1407 | break;
|
---|
1408 | case SVGA3D_TS_TEXTURETRANSFORMFLAGS:
|
---|
1409 | _debug_printf("\t\t.name = SVGA3D_TS_TEXTURETRANSFORMFLAGS\n");
|
---|
1410 | break;
|
---|
1411 | case SVGA3D_TS_TEXCOORDGEN:
|
---|
1412 | _debug_printf("\t\t.name = SVGA3D_TS_TEXCOORDGEN\n");
|
---|
1413 | break;
|
---|
1414 | case SVGA3D_TS_BUMPENVMAT00:
|
---|
1415 | _debug_printf("\t\t.name = SVGA3D_TS_BUMPENVMAT00\n");
|
---|
1416 | break;
|
---|
1417 | case SVGA3D_TS_BUMPENVMAT01:
|
---|
1418 | _debug_printf("\t\t.name = SVGA3D_TS_BUMPENVMAT01\n");
|
---|
1419 | break;
|
---|
1420 | case SVGA3D_TS_BUMPENVMAT10:
|
---|
1421 | _debug_printf("\t\t.name = SVGA3D_TS_BUMPENVMAT10\n");
|
---|
1422 | break;
|
---|
1423 | case SVGA3D_TS_BUMPENVMAT11:
|
---|
1424 | _debug_printf("\t\t.name = SVGA3D_TS_BUMPENVMAT11\n");
|
---|
1425 | break;
|
---|
1426 | case SVGA3D_TS_TEXTURE_MIPMAP_LEVEL:
|
---|
1427 | _debug_printf("\t\t.name = SVGA3D_TS_TEXTURE_MIPMAP_LEVEL\n");
|
---|
1428 | break;
|
---|
1429 | case SVGA3D_TS_TEXTURE_LOD_BIAS:
|
---|
1430 | _debug_printf("\t\t.name = SVGA3D_TS_TEXTURE_LOD_BIAS\n");
|
---|
1431 | break;
|
---|
1432 | case SVGA3D_TS_TEXTURE_ANISOTROPIC_LEVEL:
|
---|
1433 | _debug_printf("\t\t.name = SVGA3D_TS_TEXTURE_ANISOTROPIC_LEVEL\n");
|
---|
1434 | break;
|
---|
1435 | case SVGA3D_TS_ADDRESSW:
|
---|
1436 | _debug_printf("\t\t.name = SVGA3D_TS_ADDRESSW\n");
|
---|
1437 | break;
|
---|
1438 | case SVGA3D_TS_GAMMA:
|
---|
1439 | _debug_printf("\t\t.name = SVGA3D_TS_GAMMA\n");
|
---|
1440 | break;
|
---|
1441 | case SVGA3D_TS_BUMPENVLSCALE:
|
---|
1442 | _debug_printf("\t\t.name = SVGA3D_TS_BUMPENVLSCALE\n");
|
---|
1443 | break;
|
---|
1444 | case SVGA3D_TS_BUMPENVLOFFSET:
|
---|
1445 | _debug_printf("\t\t.name = SVGA3D_TS_BUMPENVLOFFSET\n");
|
---|
1446 | break;
|
---|
1447 | case SVGA3D_TS_COLORARG0:
|
---|
1448 | _debug_printf("\t\t.name = SVGA3D_TS_COLORARG0\n");
|
---|
1449 | break;
|
---|
1450 | case SVGA3D_TS_ALPHAARG0:
|
---|
1451 | _debug_printf("\t\t.name = SVGA3D_TS_ALPHAARG0\n");
|
---|
1452 | break;
|
---|
1453 | case SVGA3D_TS_CONSTANT:
|
---|
1454 | _debug_printf("\t\t.name = SVGA3D_TS_CONSTANT\n");
|
---|
1455 | break;
|
---|
1456 | case SVGA3D_TS_COLOR_KEY_ENABLE:
|
---|
1457 | _debug_printf("\t\t.name = SVGA3D_TS_COLOR_KEY_ENABLE\n");
|
---|
1458 | break;
|
---|
1459 | case SVGA3D_TS_COLOR_KEY:
|
---|
1460 | _debug_printf("\t\t.name = SVGA3D_TS_COLOR_KEY\n");
|
---|
1461 | break;
|
---|
1462 | default:
|
---|
1463 | _debug_printf("\t\t.name = %i\n", (*cmd).name);
|
---|
1464 | break;
|
---|
1465 | }
|
---|
1466 | _debug_printf("\t\t.value = %u\n", (*cmd).value);
|
---|
1467 | _debug_printf("\t\t.floatValue = %f\n", (*cmd).floatValue);
|
---|
1468 | }
|
---|
1469 |
|
---|
1470 | static void
|
---|
1471 | dump_SVGA3dCmdSetTextureState(const SVGA3dCmdSetTextureState *cmd)
|
---|
1472 | {
|
---|
1473 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1474 | }
|
---|
1475 |
|
---|
1476 | static void
|
---|
1477 | dump_SVGA3dCmdSetTransform(const SVGA3dCmdSetTransform *cmd)
|
---|
1478 | {
|
---|
1479 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1480 | switch((*cmd).type) {
|
---|
1481 | case SVGA3D_TRANSFORM_INVALID:
|
---|
1482 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_INVALID\n");
|
---|
1483 | break;
|
---|
1484 | case SVGA3D_TRANSFORM_WORLD:
|
---|
1485 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_WORLD\n");
|
---|
1486 | break;
|
---|
1487 | case SVGA3D_TRANSFORM_VIEW:
|
---|
1488 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_VIEW\n");
|
---|
1489 | break;
|
---|
1490 | case SVGA3D_TRANSFORM_PROJECTION:
|
---|
1491 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_PROJECTION\n");
|
---|
1492 | break;
|
---|
1493 | case SVGA3D_TRANSFORM_TEXTURE0:
|
---|
1494 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE0\n");
|
---|
1495 | break;
|
---|
1496 | case SVGA3D_TRANSFORM_TEXTURE1:
|
---|
1497 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE1\n");
|
---|
1498 | break;
|
---|
1499 | case SVGA3D_TRANSFORM_TEXTURE2:
|
---|
1500 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE2\n");
|
---|
1501 | break;
|
---|
1502 | case SVGA3D_TRANSFORM_TEXTURE3:
|
---|
1503 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE3\n");
|
---|
1504 | break;
|
---|
1505 | case SVGA3D_TRANSFORM_TEXTURE4:
|
---|
1506 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE4\n");
|
---|
1507 | break;
|
---|
1508 | case SVGA3D_TRANSFORM_TEXTURE5:
|
---|
1509 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE5\n");
|
---|
1510 | break;
|
---|
1511 | case SVGA3D_TRANSFORM_TEXTURE6:
|
---|
1512 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE6\n");
|
---|
1513 | break;
|
---|
1514 | case SVGA3D_TRANSFORM_TEXTURE7:
|
---|
1515 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_TEXTURE7\n");
|
---|
1516 | break;
|
---|
1517 | case SVGA3D_TRANSFORM_WORLD1:
|
---|
1518 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_WORLD1\n");
|
---|
1519 | break;
|
---|
1520 | case SVGA3D_TRANSFORM_WORLD2:
|
---|
1521 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_WORLD2\n");
|
---|
1522 | break;
|
---|
1523 | case SVGA3D_TRANSFORM_WORLD3:
|
---|
1524 | _debug_printf("\t\t.type = SVGA3D_TRANSFORM_WORLD3\n");
|
---|
1525 | break;
|
---|
1526 | default:
|
---|
1527 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1528 | break;
|
---|
1529 | }
|
---|
1530 | _debug_printf("\t\t.matrix[0] = %f\n", (*cmd).matrix[0]);
|
---|
1531 | _debug_printf("\t\t.matrix[1] = %f\n", (*cmd).matrix[1]);
|
---|
1532 | _debug_printf("\t\t.matrix[2] = %f\n", (*cmd).matrix[2]);
|
---|
1533 | _debug_printf("\t\t.matrix[3] = %f\n", (*cmd).matrix[3]);
|
---|
1534 | _debug_printf("\t\t.matrix[4] = %f\n", (*cmd).matrix[4]);
|
---|
1535 | _debug_printf("\t\t.matrix[5] = %f\n", (*cmd).matrix[5]);
|
---|
1536 | _debug_printf("\t\t.matrix[6] = %f\n", (*cmd).matrix[6]);
|
---|
1537 | _debug_printf("\t\t.matrix[7] = %f\n", (*cmd).matrix[7]);
|
---|
1538 | _debug_printf("\t\t.matrix[8] = %f\n", (*cmd).matrix[8]);
|
---|
1539 | _debug_printf("\t\t.matrix[9] = %f\n", (*cmd).matrix[9]);
|
---|
1540 | _debug_printf("\t\t.matrix[10] = %f\n", (*cmd).matrix[10]);
|
---|
1541 | _debug_printf("\t\t.matrix[11] = %f\n", (*cmd).matrix[11]);
|
---|
1542 | _debug_printf("\t\t.matrix[12] = %f\n", (*cmd).matrix[12]);
|
---|
1543 | _debug_printf("\t\t.matrix[13] = %f\n", (*cmd).matrix[13]);
|
---|
1544 | _debug_printf("\t\t.matrix[14] = %f\n", (*cmd).matrix[14]);
|
---|
1545 | _debug_printf("\t\t.matrix[15] = %f\n", (*cmd).matrix[15]);
|
---|
1546 | }
|
---|
1547 |
|
---|
1548 | static void
|
---|
1549 | dump_SVGA3dCmdSetZRange(const SVGA3dCmdSetZRange *cmd)
|
---|
1550 | {
|
---|
1551 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1552 | _debug_printf("\t\t.zRange.min = %f\n", (*cmd).zRange.min);
|
---|
1553 | _debug_printf("\t\t.zRange.max = %f\n", (*cmd).zRange.max);
|
---|
1554 | }
|
---|
1555 |
|
---|
1556 | static void
|
---|
1557 | dump_SVGA3dCmdSetMaterial(const SVGA3dCmdSetMaterial *cmd)
|
---|
1558 | {
|
---|
1559 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1560 | switch((*cmd).face) {
|
---|
1561 | case SVGA3D_FACE_INVALID:
|
---|
1562 | _debug_printf("\t\t.face = SVGA3D_FACE_INVALID\n");
|
---|
1563 | break;
|
---|
1564 | case SVGA3D_FACE_NONE:
|
---|
1565 | _debug_printf("\t\t.face = SVGA3D_FACE_NONE\n");
|
---|
1566 | break;
|
---|
1567 | case SVGA3D_FACE_FRONT:
|
---|
1568 | _debug_printf("\t\t.face = SVGA3D_FACE_FRONT\n");
|
---|
1569 | break;
|
---|
1570 | case SVGA3D_FACE_BACK:
|
---|
1571 | _debug_printf("\t\t.face = SVGA3D_FACE_BACK\n");
|
---|
1572 | break;
|
---|
1573 | case SVGA3D_FACE_FRONT_BACK:
|
---|
1574 | _debug_printf("\t\t.face = SVGA3D_FACE_FRONT_BACK\n");
|
---|
1575 | break;
|
---|
1576 | default:
|
---|
1577 | _debug_printf("\t\t.face = %i\n", (*cmd).face);
|
---|
1578 | break;
|
---|
1579 | }
|
---|
1580 | _debug_printf("\t\t.material.diffuse[0] = %f\n", (*cmd).material.diffuse[0]);
|
---|
1581 | _debug_printf("\t\t.material.diffuse[1] = %f\n", (*cmd).material.diffuse[1]);
|
---|
1582 | _debug_printf("\t\t.material.diffuse[2] = %f\n", (*cmd).material.diffuse[2]);
|
---|
1583 | _debug_printf("\t\t.material.diffuse[3] = %f\n", (*cmd).material.diffuse[3]);
|
---|
1584 | _debug_printf("\t\t.material.ambient[0] = %f\n", (*cmd).material.ambient[0]);
|
---|
1585 | _debug_printf("\t\t.material.ambient[1] = %f\n", (*cmd).material.ambient[1]);
|
---|
1586 | _debug_printf("\t\t.material.ambient[2] = %f\n", (*cmd).material.ambient[2]);
|
---|
1587 | _debug_printf("\t\t.material.ambient[3] = %f\n", (*cmd).material.ambient[3]);
|
---|
1588 | _debug_printf("\t\t.material.specular[0] = %f\n", (*cmd).material.specular[0]);
|
---|
1589 | _debug_printf("\t\t.material.specular[1] = %f\n", (*cmd).material.specular[1]);
|
---|
1590 | _debug_printf("\t\t.material.specular[2] = %f\n", (*cmd).material.specular[2]);
|
---|
1591 | _debug_printf("\t\t.material.specular[3] = %f\n", (*cmd).material.specular[3]);
|
---|
1592 | _debug_printf("\t\t.material.emissive[0] = %f\n", (*cmd).material.emissive[0]);
|
---|
1593 | _debug_printf("\t\t.material.emissive[1] = %f\n", (*cmd).material.emissive[1]);
|
---|
1594 | _debug_printf("\t\t.material.emissive[2] = %f\n", (*cmd).material.emissive[2]);
|
---|
1595 | _debug_printf("\t\t.material.emissive[3] = %f\n", (*cmd).material.emissive[3]);
|
---|
1596 | _debug_printf("\t\t.material.shininess = %f\n", (*cmd).material.shininess);
|
---|
1597 | }
|
---|
1598 |
|
---|
1599 | static void
|
---|
1600 | dump_SVGA3dCmdSetLightData(const SVGA3dCmdSetLightData *cmd)
|
---|
1601 | {
|
---|
1602 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1603 | _debug_printf("\t\t.index = %u\n", (*cmd).index);
|
---|
1604 | switch((*cmd).data.type) {
|
---|
1605 | case SVGA3D_LIGHTTYPE_INVALID:
|
---|
1606 | _debug_printf("\t\t.data.type = SVGA3D_LIGHTTYPE_INVALID\n");
|
---|
1607 | break;
|
---|
1608 | case SVGA3D_LIGHTTYPE_POINT:
|
---|
1609 | _debug_printf("\t\t.data.type = SVGA3D_LIGHTTYPE_POINT\n");
|
---|
1610 | break;
|
---|
1611 | case SVGA3D_LIGHTTYPE_SPOT1:
|
---|
1612 | _debug_printf("\t\t.data.type = SVGA3D_LIGHTTYPE_SPOT1\n");
|
---|
1613 | break;
|
---|
1614 | case SVGA3D_LIGHTTYPE_SPOT2:
|
---|
1615 | _debug_printf("\t\t.data.type = SVGA3D_LIGHTTYPE_SPOT2\n");
|
---|
1616 | break;
|
---|
1617 | case SVGA3D_LIGHTTYPE_DIRECTIONAL:
|
---|
1618 | _debug_printf("\t\t.data.type = SVGA3D_LIGHTTYPE_DIRECTIONAL\n");
|
---|
1619 | break;
|
---|
1620 | default:
|
---|
1621 | _debug_printf("\t\t.data.type = %i\n", (*cmd).data.type);
|
---|
1622 | break;
|
---|
1623 | }
|
---|
1624 | _debug_printf("\t\t.data.inWorldSpace = %u\n", (*cmd).data.inWorldSpace);
|
---|
1625 | _debug_printf("\t\t.data.diffuse[0] = %f\n", (*cmd).data.diffuse[0]);
|
---|
1626 | _debug_printf("\t\t.data.diffuse[1] = %f\n", (*cmd).data.diffuse[1]);
|
---|
1627 | _debug_printf("\t\t.data.diffuse[2] = %f\n", (*cmd).data.diffuse[2]);
|
---|
1628 | _debug_printf("\t\t.data.diffuse[3] = %f\n", (*cmd).data.diffuse[3]);
|
---|
1629 | _debug_printf("\t\t.data.specular[0] = %f\n", (*cmd).data.specular[0]);
|
---|
1630 | _debug_printf("\t\t.data.specular[1] = %f\n", (*cmd).data.specular[1]);
|
---|
1631 | _debug_printf("\t\t.data.specular[2] = %f\n", (*cmd).data.specular[2]);
|
---|
1632 | _debug_printf("\t\t.data.specular[3] = %f\n", (*cmd).data.specular[3]);
|
---|
1633 | _debug_printf("\t\t.data.ambient[0] = %f\n", (*cmd).data.ambient[0]);
|
---|
1634 | _debug_printf("\t\t.data.ambient[1] = %f\n", (*cmd).data.ambient[1]);
|
---|
1635 | _debug_printf("\t\t.data.ambient[2] = %f\n", (*cmd).data.ambient[2]);
|
---|
1636 | _debug_printf("\t\t.data.ambient[3] = %f\n", (*cmd).data.ambient[3]);
|
---|
1637 | _debug_printf("\t\t.data.position[0] = %f\n", (*cmd).data.position[0]);
|
---|
1638 | _debug_printf("\t\t.data.position[1] = %f\n", (*cmd).data.position[1]);
|
---|
1639 | _debug_printf("\t\t.data.position[2] = %f\n", (*cmd).data.position[2]);
|
---|
1640 | _debug_printf("\t\t.data.position[3] = %f\n", (*cmd).data.position[3]);
|
---|
1641 | _debug_printf("\t\t.data.direction[0] = %f\n", (*cmd).data.direction[0]);
|
---|
1642 | _debug_printf("\t\t.data.direction[1] = %f\n", (*cmd).data.direction[1]);
|
---|
1643 | _debug_printf("\t\t.data.direction[2] = %f\n", (*cmd).data.direction[2]);
|
---|
1644 | _debug_printf("\t\t.data.direction[3] = %f\n", (*cmd).data.direction[3]);
|
---|
1645 | _debug_printf("\t\t.data.range = %f\n", (*cmd).data.range);
|
---|
1646 | _debug_printf("\t\t.data.falloff = %f\n", (*cmd).data.falloff);
|
---|
1647 | _debug_printf("\t\t.data.attenuation0 = %f\n", (*cmd).data.attenuation0);
|
---|
1648 | _debug_printf("\t\t.data.attenuation1 = %f\n", (*cmd).data.attenuation1);
|
---|
1649 | _debug_printf("\t\t.data.attenuation2 = %f\n", (*cmd).data.attenuation2);
|
---|
1650 | _debug_printf("\t\t.data.theta = %f\n", (*cmd).data.theta);
|
---|
1651 | _debug_printf("\t\t.data.phi = %f\n", (*cmd).data.phi);
|
---|
1652 | }
|
---|
1653 |
|
---|
1654 | static void
|
---|
1655 | dump_SVGA3dCmdSetLightEnabled(const SVGA3dCmdSetLightEnabled *cmd)
|
---|
1656 | {
|
---|
1657 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1658 | _debug_printf("\t\t.index = %u\n", (*cmd).index);
|
---|
1659 | _debug_printf("\t\t.enabled = %u\n", (*cmd).enabled);
|
---|
1660 | }
|
---|
1661 |
|
---|
1662 | static void
|
---|
1663 | dump_SVGA3dCmdSetViewport(const SVGA3dCmdSetViewport *cmd)
|
---|
1664 | {
|
---|
1665 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1666 | _debug_printf("\t\t.rect.x = %u\n", (*cmd).rect.x);
|
---|
1667 | _debug_printf("\t\t.rect.y = %u\n", (*cmd).rect.y);
|
---|
1668 | _debug_printf("\t\t.rect.w = %u\n", (*cmd).rect.w);
|
---|
1669 | _debug_printf("\t\t.rect.h = %u\n", (*cmd).rect.h);
|
---|
1670 | }
|
---|
1671 |
|
---|
1672 | static void
|
---|
1673 | dump_SVGA3dCmdSetScissorRect(const SVGA3dCmdSetScissorRect *cmd)
|
---|
1674 | {
|
---|
1675 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1676 | _debug_printf("\t\t.rect.x = %u\n", (*cmd).rect.x);
|
---|
1677 | _debug_printf("\t\t.rect.y = %u\n", (*cmd).rect.y);
|
---|
1678 | _debug_printf("\t\t.rect.w = %u\n", (*cmd).rect.w);
|
---|
1679 | _debug_printf("\t\t.rect.h = %u\n", (*cmd).rect.h);
|
---|
1680 | }
|
---|
1681 |
|
---|
1682 | static void
|
---|
1683 | dump_SVGA3dCmdSetClipPlane(const SVGA3dCmdSetClipPlane *cmd)
|
---|
1684 | {
|
---|
1685 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1686 | _debug_printf("\t\t.index = %u\n", (*cmd).index);
|
---|
1687 | _debug_printf("\t\t.plane[0] = %f\n", (*cmd).plane[0]);
|
---|
1688 | _debug_printf("\t\t.plane[1] = %f\n", (*cmd).plane[1]);
|
---|
1689 | _debug_printf("\t\t.plane[2] = %f\n", (*cmd).plane[2]);
|
---|
1690 | _debug_printf("\t\t.plane[3] = %f\n", (*cmd).plane[3]);
|
---|
1691 | }
|
---|
1692 |
|
---|
1693 | static void
|
---|
1694 | dump_SVGA3dCmdDefineShader(const SVGA3dCmdDefineShader *cmd)
|
---|
1695 | {
|
---|
1696 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1697 | _debug_printf("\t\t.shid = %u\n", (*cmd).shid);
|
---|
1698 | switch((*cmd).type) {
|
---|
1699 | case SVGA3D_SHADERTYPE_INVALID:
|
---|
1700 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_INVALID\n");
|
---|
1701 | break;
|
---|
1702 | case SVGA3D_SHADERTYPE_VS:
|
---|
1703 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_VS\n");
|
---|
1704 | break;
|
---|
1705 | case SVGA3D_SHADERTYPE_PS:
|
---|
1706 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_PS\n");
|
---|
1707 | break;
|
---|
1708 | case SVGA3D_SHADERTYPE_GS:
|
---|
1709 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_GS\n");
|
---|
1710 | break;
|
---|
1711 | case SVGA3D_SHADERTYPE_HS:
|
---|
1712 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_HS\n");
|
---|
1713 | break;
|
---|
1714 | case SVGA3D_SHADERTYPE_DS:
|
---|
1715 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_DS\n");
|
---|
1716 | break;
|
---|
1717 | case SVGA3D_SHADERTYPE_CS:
|
---|
1718 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_CS\n");
|
---|
1719 | break;
|
---|
1720 | default:
|
---|
1721 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1722 | break;
|
---|
1723 | }
|
---|
1724 | }
|
---|
1725 |
|
---|
1726 | static void
|
---|
1727 | dump_SVGA3dCmdDestroyShader(const SVGA3dCmdDestroyShader *cmd)
|
---|
1728 | {
|
---|
1729 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1730 | _debug_printf("\t\t.shid = %u\n", (*cmd).shid);
|
---|
1731 | switch((*cmd).type) {
|
---|
1732 | case SVGA3D_SHADERTYPE_INVALID:
|
---|
1733 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_INVALID\n");
|
---|
1734 | break;
|
---|
1735 | case SVGA3D_SHADERTYPE_VS:
|
---|
1736 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_VS\n");
|
---|
1737 | break;
|
---|
1738 | case SVGA3D_SHADERTYPE_PS:
|
---|
1739 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_PS\n");
|
---|
1740 | break;
|
---|
1741 | case SVGA3D_SHADERTYPE_GS:
|
---|
1742 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_GS\n");
|
---|
1743 | break;
|
---|
1744 | case SVGA3D_SHADERTYPE_HS:
|
---|
1745 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_HS\n");
|
---|
1746 | break;
|
---|
1747 | case SVGA3D_SHADERTYPE_DS:
|
---|
1748 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_DS\n");
|
---|
1749 | break;
|
---|
1750 | case SVGA3D_SHADERTYPE_CS:
|
---|
1751 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_CS\n");
|
---|
1752 | break;
|
---|
1753 | default:
|
---|
1754 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1755 | break;
|
---|
1756 | }
|
---|
1757 | }
|
---|
1758 |
|
---|
1759 | static void
|
---|
1760 | dump_SVGA3dCmdSetShaderConst(const SVGA3dCmdSetShaderConst *cmd)
|
---|
1761 | {
|
---|
1762 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1763 | _debug_printf("\t\t.reg = %u\n", (*cmd).reg);
|
---|
1764 | switch((*cmd).type) {
|
---|
1765 | case SVGA3D_SHADERTYPE_INVALID:
|
---|
1766 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_INVALID\n");
|
---|
1767 | break;
|
---|
1768 | case SVGA3D_SHADERTYPE_VS:
|
---|
1769 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_VS\n");
|
---|
1770 | break;
|
---|
1771 | case SVGA3D_SHADERTYPE_PS:
|
---|
1772 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_PS\n");
|
---|
1773 | break;
|
---|
1774 | case SVGA3D_SHADERTYPE_GS:
|
---|
1775 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_GS\n");
|
---|
1776 | break;
|
---|
1777 | case SVGA3D_SHADERTYPE_HS:
|
---|
1778 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_HS\n");
|
---|
1779 | break;
|
---|
1780 | case SVGA3D_SHADERTYPE_DS:
|
---|
1781 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_DS\n");
|
---|
1782 | break;
|
---|
1783 | case SVGA3D_SHADERTYPE_CS:
|
---|
1784 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_CS\n");
|
---|
1785 | break;
|
---|
1786 | default:
|
---|
1787 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1788 | break;
|
---|
1789 | }
|
---|
1790 | switch((*cmd).ctype) {
|
---|
1791 | case SVGA3D_CONST_TYPE_FLOAT:
|
---|
1792 | _debug_printf("\t\t.ctype = SVGA3D_CONST_TYPE_FLOAT\n");
|
---|
1793 | break;
|
---|
1794 | case SVGA3D_CONST_TYPE_INT:
|
---|
1795 | _debug_printf("\t\t.ctype = SVGA3D_CONST_TYPE_INT\n");
|
---|
1796 | break;
|
---|
1797 | case SVGA3D_CONST_TYPE_BOOL:
|
---|
1798 | _debug_printf("\t\t.ctype = SVGA3D_CONST_TYPE_BOOL\n");
|
---|
1799 | break;
|
---|
1800 | default:
|
---|
1801 | _debug_printf("\t\t.ctype = %i\n", (*cmd).ctype);
|
---|
1802 | break;
|
---|
1803 | }
|
---|
1804 | _debug_printf("\t\t.values[0] = %u\n", (*cmd).values[0]);
|
---|
1805 | _debug_printf("\t\t.values[1] = %u\n", (*cmd).values[1]);
|
---|
1806 | _debug_printf("\t\t.values[2] = %u\n", (*cmd).values[2]);
|
---|
1807 | _debug_printf("\t\t.values[3] = %u\n", (*cmd).values[3]);
|
---|
1808 | }
|
---|
1809 |
|
---|
1810 | static void
|
---|
1811 | dump_SVGA3dCmdSetShader(const SVGA3dCmdSetShader *cmd)
|
---|
1812 | {
|
---|
1813 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1814 | switch((*cmd).type) {
|
---|
1815 | case SVGA3D_SHADERTYPE_INVALID:
|
---|
1816 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_INVALID\n");
|
---|
1817 | break;
|
---|
1818 | case SVGA3D_SHADERTYPE_VS:
|
---|
1819 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_VS\n");
|
---|
1820 | break;
|
---|
1821 | case SVGA3D_SHADERTYPE_PS:
|
---|
1822 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_PS\n");
|
---|
1823 | break;
|
---|
1824 | case SVGA3D_SHADERTYPE_GS:
|
---|
1825 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_GS\n");
|
---|
1826 | break;
|
---|
1827 | case SVGA3D_SHADERTYPE_HS:
|
---|
1828 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_HS\n");
|
---|
1829 | break;
|
---|
1830 | case SVGA3D_SHADERTYPE_DS:
|
---|
1831 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_DS\n");
|
---|
1832 | break;
|
---|
1833 | case SVGA3D_SHADERTYPE_CS:
|
---|
1834 | _debug_printf("\t\t.type = SVGA3D_SHADERTYPE_CS\n");
|
---|
1835 | break;
|
---|
1836 | default:
|
---|
1837 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1838 | break;
|
---|
1839 | }
|
---|
1840 | _debug_printf("\t\t.shid = %u\n", (*cmd).shid);
|
---|
1841 | }
|
---|
1842 |
|
---|
1843 | static void
|
---|
1844 | dump_SVGA3dCmdBeginQuery(const SVGA3dCmdBeginQuery *cmd)
|
---|
1845 | {
|
---|
1846 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1847 | switch((*cmd).type) {
|
---|
1848 | case SVGA3D_QUERYTYPE_INVALID:
|
---|
1849 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_INVALID\n");
|
---|
1850 | break;
|
---|
1851 | case SVGA3D_QUERYTYPE_OCCLUSION:
|
---|
1852 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSION\n");
|
---|
1853 | break;
|
---|
1854 | case SVGA3D_QUERYTYPE_TIMESTAMP:
|
---|
1855 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_TIMESTAMP\n");
|
---|
1856 | break;
|
---|
1857 | case SVGA3D_QUERYTYPE_TIMESTAMPDISJOINT:
|
---|
1858 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_TIMESTAMPDISJOINT\n");
|
---|
1859 | break;
|
---|
1860 | case SVGA3D_QUERYTYPE_PIPELINESTATS:
|
---|
1861 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_PIPELINESTATS\n");
|
---|
1862 | break;
|
---|
1863 | case SVGA3D_QUERYTYPE_OCCLUSIONPREDICATE:
|
---|
1864 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSIONPREDICATE\n");
|
---|
1865 | break;
|
---|
1866 | case SVGA3D_QUERYTYPE_STREAMOUTPUTSTATS:
|
---|
1867 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_STREAMOUTPUTSTATS\n");
|
---|
1868 | break;
|
---|
1869 | case SVGA3D_QUERYTYPE_STREAMOVERFLOWPREDICATE:
|
---|
1870 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_STREAMOVERFLOWPREDICATE\n");
|
---|
1871 | break;
|
---|
1872 | case SVGA3D_QUERYTYPE_OCCLUSION64:
|
---|
1873 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSION64\n");
|
---|
1874 | break;
|
---|
1875 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM0:
|
---|
1876 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM0\n");
|
---|
1877 | break;
|
---|
1878 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM1:
|
---|
1879 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM1\n");
|
---|
1880 | break;
|
---|
1881 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM2:
|
---|
1882 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM2\n");
|
---|
1883 | break;
|
---|
1884 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM3:
|
---|
1885 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM3\n");
|
---|
1886 | break;
|
---|
1887 | case SVGA3D_QUERYTYPE_SOP_STREAM0:
|
---|
1888 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM0\n");
|
---|
1889 | break;
|
---|
1890 | case SVGA3D_QUERYTYPE_SOP_STREAM1:
|
---|
1891 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM1\n");
|
---|
1892 | break;
|
---|
1893 | case SVGA3D_QUERYTYPE_SOP_STREAM2:
|
---|
1894 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM2\n");
|
---|
1895 | break;
|
---|
1896 | case SVGA3D_QUERYTYPE_SOP_STREAM3:
|
---|
1897 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM3\n");
|
---|
1898 | break;
|
---|
1899 | default:
|
---|
1900 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1901 | break;
|
---|
1902 | }
|
---|
1903 | }
|
---|
1904 |
|
---|
1905 | static void
|
---|
1906 | dump_SVGA3dCmdEndQuery(const SVGA3dCmdEndQuery *cmd)
|
---|
1907 | {
|
---|
1908 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1909 | switch((*cmd).type) {
|
---|
1910 | case SVGA3D_QUERYTYPE_INVALID:
|
---|
1911 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_INVALID\n");
|
---|
1912 | break;
|
---|
1913 | case SVGA3D_QUERYTYPE_OCCLUSION:
|
---|
1914 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSION\n");
|
---|
1915 | break;
|
---|
1916 | case SVGA3D_QUERYTYPE_TIMESTAMP:
|
---|
1917 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_TIMESTAMP\n");
|
---|
1918 | break;
|
---|
1919 | case SVGA3D_QUERYTYPE_TIMESTAMPDISJOINT:
|
---|
1920 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_TIMESTAMPDISJOINT\n");
|
---|
1921 | break;
|
---|
1922 | case SVGA3D_QUERYTYPE_PIPELINESTATS:
|
---|
1923 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_PIPELINESTATS\n");
|
---|
1924 | break;
|
---|
1925 | case SVGA3D_QUERYTYPE_OCCLUSIONPREDICATE:
|
---|
1926 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSIONPREDICATE\n");
|
---|
1927 | break;
|
---|
1928 | case SVGA3D_QUERYTYPE_STREAMOUTPUTSTATS:
|
---|
1929 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_STREAMOUTPUTSTATS\n");
|
---|
1930 | break;
|
---|
1931 | case SVGA3D_QUERYTYPE_STREAMOVERFLOWPREDICATE:
|
---|
1932 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_STREAMOVERFLOWPREDICATE\n");
|
---|
1933 | break;
|
---|
1934 | case SVGA3D_QUERYTYPE_OCCLUSION64:
|
---|
1935 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSION64\n");
|
---|
1936 | break;
|
---|
1937 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM0:
|
---|
1938 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM0\n");
|
---|
1939 | break;
|
---|
1940 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM1:
|
---|
1941 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM1\n");
|
---|
1942 | break;
|
---|
1943 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM2:
|
---|
1944 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM2\n");
|
---|
1945 | break;
|
---|
1946 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM3:
|
---|
1947 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM3\n");
|
---|
1948 | break;
|
---|
1949 | case SVGA3D_QUERYTYPE_SOP_STREAM0:
|
---|
1950 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM0\n");
|
---|
1951 | break;
|
---|
1952 | case SVGA3D_QUERYTYPE_SOP_STREAM1:
|
---|
1953 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM1\n");
|
---|
1954 | break;
|
---|
1955 | case SVGA3D_QUERYTYPE_SOP_STREAM2:
|
---|
1956 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM2\n");
|
---|
1957 | break;
|
---|
1958 | case SVGA3D_QUERYTYPE_SOP_STREAM3:
|
---|
1959 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM3\n");
|
---|
1960 | break;
|
---|
1961 | default:
|
---|
1962 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
1963 | break;
|
---|
1964 | }
|
---|
1965 | _debug_printf("\t\t.guestResult.gmrId = %u\n", (*cmd).guestResult.gmrId);
|
---|
1966 | _debug_printf("\t\t.guestResult.offset = %u\n", (*cmd).guestResult.offset);
|
---|
1967 | }
|
---|
1968 |
|
---|
1969 | static void
|
---|
1970 | dump_SVGA3dCmdWaitForQuery(const SVGA3dCmdWaitForQuery *cmd)
|
---|
1971 | {
|
---|
1972 | _debug_printf("\t\t.cid = %u\n", (*cmd).cid);
|
---|
1973 | switch((*cmd).type) {
|
---|
1974 | case SVGA3D_QUERYTYPE_INVALID:
|
---|
1975 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_INVALID\n");
|
---|
1976 | break;
|
---|
1977 | case SVGA3D_QUERYTYPE_OCCLUSION:
|
---|
1978 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSION\n");
|
---|
1979 | break;
|
---|
1980 | case SVGA3D_QUERYTYPE_TIMESTAMP:
|
---|
1981 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_TIMESTAMP\n");
|
---|
1982 | break;
|
---|
1983 | case SVGA3D_QUERYTYPE_TIMESTAMPDISJOINT:
|
---|
1984 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_TIMESTAMPDISJOINT\n");
|
---|
1985 | break;
|
---|
1986 | case SVGA3D_QUERYTYPE_PIPELINESTATS:
|
---|
1987 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_PIPELINESTATS\n");
|
---|
1988 | break;
|
---|
1989 | case SVGA3D_QUERYTYPE_OCCLUSIONPREDICATE:
|
---|
1990 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSIONPREDICATE\n");
|
---|
1991 | break;
|
---|
1992 | case SVGA3D_QUERYTYPE_STREAMOUTPUTSTATS:
|
---|
1993 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_STREAMOUTPUTSTATS\n");
|
---|
1994 | break;
|
---|
1995 | case SVGA3D_QUERYTYPE_STREAMOVERFLOWPREDICATE:
|
---|
1996 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_STREAMOVERFLOWPREDICATE\n");
|
---|
1997 | break;
|
---|
1998 | case SVGA3D_QUERYTYPE_OCCLUSION64:
|
---|
1999 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_OCCLUSION64\n");
|
---|
2000 | break;
|
---|
2001 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM0:
|
---|
2002 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM0\n");
|
---|
2003 | break;
|
---|
2004 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM1:
|
---|
2005 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM1\n");
|
---|
2006 | break;
|
---|
2007 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM2:
|
---|
2008 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM2\n");
|
---|
2009 | break;
|
---|
2010 | case SVGA3D_QUERYTYPE_SOSTATS_STREAM3:
|
---|
2011 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOSTATS_STREAM3\n");
|
---|
2012 | break;
|
---|
2013 | case SVGA3D_QUERYTYPE_SOP_STREAM0:
|
---|
2014 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM0\n");
|
---|
2015 | break;
|
---|
2016 | case SVGA3D_QUERYTYPE_SOP_STREAM1:
|
---|
2017 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM1\n");
|
---|
2018 | break;
|
---|
2019 | case SVGA3D_QUERYTYPE_SOP_STREAM2:
|
---|
2020 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM2\n");
|
---|
2021 | break;
|
---|
2022 | case SVGA3D_QUERYTYPE_SOP_STREAM3:
|
---|
2023 | _debug_printf("\t\t.type = SVGA3D_QUERYTYPE_SOP_STREAM3\n");
|
---|
2024 | break;
|
---|
2025 | default:
|
---|
2026 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
2027 | break;
|
---|
2028 | }
|
---|
2029 | _debug_printf("\t\t.guestResult.gmrId = %u\n", (*cmd).guestResult.gmrId);
|
---|
2030 | _debug_printf("\t\t.guestResult.offset = %u\n", (*cmd).guestResult.offset);
|
---|
2031 | }
|
---|
2032 |
|
---|
2033 | static void
|
---|
2034 | dump_SVGA3dCmdBlitSurfaceToScreen(const SVGA3dCmdBlitSurfaceToScreen *cmd)
|
---|
2035 | {
|
---|
2036 | _debug_printf("\t\t.srcImage.sid = %u\n", (*cmd).srcImage.sid);
|
---|
2037 | _debug_printf("\t\t.srcImage.face = %u\n", (*cmd).srcImage.face);
|
---|
2038 | _debug_printf("\t\t.srcImage.mipmap = %u\n", (*cmd).srcImage.mipmap);
|
---|
2039 | _debug_printf("\t\t.srcRect.left = %i\n", (*cmd).srcRect.left);
|
---|
2040 | _debug_printf("\t\t.srcRect.top = %i\n", (*cmd).srcRect.top);
|
---|
2041 | _debug_printf("\t\t.srcRect.right = %i\n", (*cmd).srcRect.right);
|
---|
2042 | _debug_printf("\t\t.srcRect.bottom = %i\n", (*cmd).srcRect.bottom);
|
---|
2043 | _debug_printf("\t\t.destScreenId = %u\n", (*cmd).destScreenId);
|
---|
2044 | _debug_printf("\t\t.destRect.left = %i\n", (*cmd).destRect.left);
|
---|
2045 | _debug_printf("\t\t.destRect.top = %i\n", (*cmd).destRect.top);
|
---|
2046 | _debug_printf("\t\t.destRect.right = %i\n", (*cmd).destRect.right);
|
---|
2047 | _debug_printf("\t\t.destRect.bottom = %i\n", (*cmd).destRect.bottom);
|
---|
2048 | }
|
---|
2049 |
|
---|
2050 | static void
|
---|
2051 | dump_SVGA3dCmdSetOTableBase64(const SVGA3dCmdSetOTableBase64 *cmd)
|
---|
2052 | {
|
---|
2053 | switch((*cmd).type) {
|
---|
2054 | case SVGA_OTABLE_MOB:
|
---|
2055 | _debug_printf("\t\t.type = SVGA_OTABLE_MOB\n");
|
---|
2056 | break;
|
---|
2057 | case SVGA_OTABLE_SURFACE:
|
---|
2058 | _debug_printf("\t\t.type = SVGA_OTABLE_SURFACE\n");
|
---|
2059 | break;
|
---|
2060 | case SVGA_OTABLE_CONTEXT:
|
---|
2061 | _debug_printf("\t\t.type = SVGA_OTABLE_CONTEXT\n");
|
---|
2062 | break;
|
---|
2063 | case SVGA_OTABLE_SHADER:
|
---|
2064 | _debug_printf("\t\t.type = SVGA_OTABLE_SHADER\n");
|
---|
2065 | break;
|
---|
2066 | case SVGA_OTABLE_SCREENTARGET:
|
---|
2067 | _debug_printf("\t\t.type = SVGA_OTABLE_SCREENTARGET\n");
|
---|
2068 | break;
|
---|
2069 | case SVGA_OTABLE_DXCONTEXT:
|
---|
2070 | _debug_printf("\t\t.type = SVGA_OTABLE_DXCONTEXT\n");
|
---|
2071 | break;
|
---|
2072 | case SVGA_OTABLE_RESERVED1:
|
---|
2073 | _debug_printf("\t\t.type = SVGA_OTABLE_RESERVED1\n");
|
---|
2074 | break;
|
---|
2075 | case SVGA_OTABLE_RESERVED2:
|
---|
2076 | _debug_printf("\t\t.type = SVGA_OTABLE_RESERVED2\n");
|
---|
2077 | break;
|
---|
2078 | default:
|
---|
2079 | _debug_printf("\t\t.type = %i\n", (*cmd).type);
|
---|
2080 | break;
|
---|
2081 | }
|
---|
2082 | _debug_printf("\t\t.baseAddress = %lu\n", (*cmd).baseAddress);
|
---|
2083 | _debug_printf("\t\t.sizeInBytes = %u\n", (*cmd).sizeInBytes);
|
---|
2084 | _debug_printf("\t\t.validSizeInBytes = %u\n", (*cmd).validSizeInBytes);
|
---|
2085 | switch((*cmd).ptDepth) {
|
---|
2086 | case SVGA3D_MOBFMT_INVALID:
|
---|
2087 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_INVALID\n");
|
---|
2088 | break;
|
---|
2089 | case SVGA3D_MOBFMT_PTDEPTH_0:
|
---|
2090 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH_0\n");
|
---|
2091 | break;
|
---|
2092 | case SVGA3D_MOBFMT_PTDEPTH_1:
|
---|
2093 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH_1\n");
|
---|
2094 | break;
|
---|
2095 | case SVGA3D_MOBFMT_PTDEPTH_2:
|
---|
2096 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH_2\n");
|
---|
2097 | break;
|
---|
2098 | case SVGA3D_MOBFMT_RANGE:
|
---|
2099 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_RANGE\n");
|
---|
2100 | break;
|
---|
2101 | case SVGA3D_MOBFMT_PTDEPTH64_0:
|
---|
2102 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH64_0\n");
|
---|
2103 | break;
|
---|
2104 | case SVGA3D_MOBFMT_PTDEPTH64_1:
|
---|
2105 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH64_1\n");
|
---|
2106 | break;
|
---|
2107 | case SVGA3D_MOBFMT_PTDEPTH64_2:
|
---|
2108 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH64_2\n");
|
---|
2109 | break;
|
---|
2110 | case SVGA3D_MOBFMT_EMPTY:
|
---|
2111 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_EMPTY\n");
|
---|
2112 | break;
|
---|
2113 | case SVGA3D_MOBFMT_HB:
|
---|
2114 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_HB\n");
|
---|
2115 | break;
|
---|
2116 | default:
|
---|
2117 | _debug_printf("\t\t.ptDepth = %i\n", (*cmd).ptDepth);
|
---|
2118 | break;
|
---|
2119 | }
|
---|
2120 | }
|
---|
2121 |
|
---|
2122 | static void
|
---|
2123 | dump_SVGA3dCmdDefineGBMob64(const SVGA3dCmdDefineGBMob64 *cmd)
|
---|
2124 | {
|
---|
2125 | _debug_printf("\t\t.mobid = %u\n", (*cmd).mobid);
|
---|
2126 | switch((*cmd).ptDepth) {
|
---|
2127 | case SVGA3D_MOBFMT_INVALID:
|
---|
2128 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_INVALID\n");
|
---|
2129 | break;
|
---|
2130 | case SVGA3D_MOBFMT_PTDEPTH_0:
|
---|
2131 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH_0\n");
|
---|
2132 | break;
|
---|
2133 | case SVGA3D_MOBFMT_PTDEPTH_1:
|
---|
2134 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH_1\n");
|
---|
2135 | break;
|
---|
2136 | case SVGA3D_MOBFMT_PTDEPTH_2:
|
---|
2137 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH_2\n");
|
---|
2138 | break;
|
---|
2139 | case SVGA3D_MOBFMT_RANGE:
|
---|
2140 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_RANGE\n");
|
---|
2141 | break;
|
---|
2142 | case SVGA3D_MOBFMT_PTDEPTH64_0:
|
---|
2143 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH64_0\n");
|
---|
2144 | break;
|
---|
2145 | case SVGA3D_MOBFMT_PTDEPTH64_1:
|
---|
2146 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH64_1\n");
|
---|
2147 | break;
|
---|
2148 | case SVGA3D_MOBFMT_PTDEPTH64_2:
|
---|
2149 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_PTDEPTH64_2\n");
|
---|
2150 | break;
|
---|
2151 | case SVGA3D_MOBFMT_EMPTY:
|
---|
2152 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_EMPTY\n");
|
---|
2153 | break;
|
---|
2154 | case SVGA3D_MOBFMT_HB:
|
---|
2155 | _debug_printf("\t\t.ptDepth = SVGA3D_MOBFMT_HB\n");
|
---|
2156 | break;
|
---|
2157 | default:
|
---|
2158 | _debug_printf("\t\t.ptDepth = %i\n", (*cmd).ptDepth);
|
---|
2159 | break;
|
---|
2160 | }
|
---|
2161 | _debug_printf("\t\t.base = %lu\n", (*cmd).base);
|
---|
2162 | _debug_printf("\t\t.sizeInBytes = %u\n", (*cmd).sizeInBytes);
|
---|
2163 | }
|
---|
2164 |
|
---|
2165 | static void
|
---|
2166 | dump_SVGA3dCmdDefineGBSurface(const SVGA3dCmdDefineGBSurface *cmd)
|
---|
2167 | {
|
---|
2168 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
2169 | _debug_printf("\t\t.surfaceFlags = %u\n", (*cmd).surfaceFlags);
|
---|
2170 | switch((*cmd).format) {
|
---|
2171 | case SVGA3D_FORMAT_INVALID:
|
---|
2172 | _debug_printf("\t\t.format = SVGA3D_FORMAT_INVALID\n");
|
---|
2173 | break;
|
---|
2174 | case SVGA3D_X8R8G8B8:
|
---|
2175 | _debug_printf("\t\t.format = SVGA3D_X8R8G8B8\n");
|
---|
2176 | break;
|
---|
2177 | case SVGA3D_A8R8G8B8:
|
---|
2178 | _debug_printf("\t\t.format = SVGA3D_A8R8G8B8\n");
|
---|
2179 | break;
|
---|
2180 | case SVGA3D_R5G6B5:
|
---|
2181 | _debug_printf("\t\t.format = SVGA3D_R5G6B5\n");
|
---|
2182 | break;
|
---|
2183 | case SVGA3D_X1R5G5B5:
|
---|
2184 | _debug_printf("\t\t.format = SVGA3D_X1R5G5B5\n");
|
---|
2185 | break;
|
---|
2186 | case SVGA3D_A1R5G5B5:
|
---|
2187 | _debug_printf("\t\t.format = SVGA3D_A1R5G5B5\n");
|
---|
2188 | break;
|
---|
2189 | case SVGA3D_A4R4G4B4:
|
---|
2190 | _debug_printf("\t\t.format = SVGA3D_A4R4G4B4\n");
|
---|
2191 | break;
|
---|
2192 | case SVGA3D_Z_D32:
|
---|
2193 | _debug_printf("\t\t.format = SVGA3D_Z_D32\n");
|
---|
2194 | break;
|
---|
2195 | case SVGA3D_Z_D16:
|
---|
2196 | _debug_printf("\t\t.format = SVGA3D_Z_D16\n");
|
---|
2197 | break;
|
---|
2198 | case SVGA3D_Z_D24S8:
|
---|
2199 | _debug_printf("\t\t.format = SVGA3D_Z_D24S8\n");
|
---|
2200 | break;
|
---|
2201 | case SVGA3D_Z_D15S1:
|
---|
2202 | _debug_printf("\t\t.format = SVGA3D_Z_D15S1\n");
|
---|
2203 | break;
|
---|
2204 | case SVGA3D_LUMINANCE8:
|
---|
2205 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE8\n");
|
---|
2206 | break;
|
---|
2207 | case SVGA3D_LUMINANCE4_ALPHA4:
|
---|
2208 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE4_ALPHA4\n");
|
---|
2209 | break;
|
---|
2210 | case SVGA3D_LUMINANCE16:
|
---|
2211 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE16\n");
|
---|
2212 | break;
|
---|
2213 | case SVGA3D_LUMINANCE8_ALPHA8:
|
---|
2214 | _debug_printf("\t\t.format = SVGA3D_LUMINANCE8_ALPHA8\n");
|
---|
2215 | break;
|
---|
2216 | case SVGA3D_DXT1:
|
---|
2217 | _debug_printf("\t\t.format = SVGA3D_DXT1\n");
|
---|
2218 | break;
|
---|
2219 | case SVGA3D_DXT2:
|
---|
2220 | _debug_printf("\t\t.format = SVGA3D_DXT2\n");
|
---|
2221 | break;
|
---|
2222 | case SVGA3D_DXT3:
|
---|
2223 | _debug_printf("\t\t.format = SVGA3D_DXT3\n");
|
---|
2224 | break;
|
---|
2225 | case SVGA3D_DXT4:
|
---|
2226 | _debug_printf("\t\t.format = SVGA3D_DXT4\n");
|
---|
2227 | break;
|
---|
2228 | case SVGA3D_DXT5:
|
---|
2229 | _debug_printf("\t\t.format = SVGA3D_DXT5\n");
|
---|
2230 | break;
|
---|
2231 | case SVGA3D_BUMPU8V8:
|
---|
2232 | _debug_printf("\t\t.format = SVGA3D_BUMPU8V8\n");
|
---|
2233 | break;
|
---|
2234 | case SVGA3D_BUMPL6V5U5:
|
---|
2235 | _debug_printf("\t\t.format = SVGA3D_BUMPL6V5U5\n");
|
---|
2236 | break;
|
---|
2237 | case SVGA3D_BUMPX8L8V8U8:
|
---|
2238 | _debug_printf("\t\t.format = SVGA3D_BUMPX8L8V8U8\n");
|
---|
2239 | break;
|
---|
2240 | case SVGA3D_FORMAT_DEAD1:
|
---|
2241 | _debug_printf("\t\t.format = SVGA3D_FORMAT_DEAD1\n");
|
---|
2242 | break;
|
---|
2243 | case SVGA3D_ARGB_S10E5:
|
---|
2244 | _debug_printf("\t\t.format = SVGA3D_ARGB_S10E5\n");
|
---|
2245 | break;
|
---|
2246 | case SVGA3D_ARGB_S23E8:
|
---|
2247 | _debug_printf("\t\t.format = SVGA3D_ARGB_S23E8\n");
|
---|
2248 | break;
|
---|
2249 | case SVGA3D_A2R10G10B10:
|
---|
2250 | _debug_printf("\t\t.format = SVGA3D_A2R10G10B10\n");
|
---|
2251 | break;
|
---|
2252 | case SVGA3D_V8U8:
|
---|
2253 | _debug_printf("\t\t.format = SVGA3D_V8U8\n");
|
---|
2254 | break;
|
---|
2255 | case SVGA3D_Q8W8V8U8:
|
---|
2256 | _debug_printf("\t\t.format = SVGA3D_Q8W8V8U8\n");
|
---|
2257 | break;
|
---|
2258 | case SVGA3D_CxV8U8:
|
---|
2259 | _debug_printf("\t\t.format = SVGA3D_CxV8U8\n");
|
---|
2260 | break;
|
---|
2261 | case SVGA3D_X8L8V8U8:
|
---|
2262 | _debug_printf("\t\t.format = SVGA3D_X8L8V8U8\n");
|
---|
2263 | break;
|
---|
2264 | case SVGA3D_A2W10V10U10:
|
---|
2265 | _debug_printf("\t\t.format = SVGA3D_A2W10V10U10\n");
|
---|
2266 | break;
|
---|
2267 | case SVGA3D_ALPHA8:
|
---|
2268 | _debug_printf("\t\t.format = SVGA3D_ALPHA8\n");
|
---|
2269 | break;
|
---|
2270 | case SVGA3D_R_S10E5:
|
---|
2271 | _debug_printf("\t\t.format = SVGA3D_R_S10E5\n");
|
---|
2272 | break;
|
---|
2273 | case SVGA3D_R_S23E8:
|
---|
2274 | _debug_printf("\t\t.format = SVGA3D_R_S23E8\n");
|
---|
2275 | break;
|
---|
2276 | case SVGA3D_RG_S10E5:
|
---|
2277 | _debug_printf("\t\t.format = SVGA3D_RG_S10E5\n");
|
---|
2278 | break;
|
---|
2279 | case SVGA3D_RG_S23E8:
|
---|
2280 | _debug_printf("\t\t.format = SVGA3D_RG_S23E8\n");
|
---|
2281 | break;
|
---|
2282 | case SVGA3D_BUFFER:
|
---|
2283 | _debug_printf("\t\t.format = SVGA3D_BUFFER\n");
|
---|
2284 | break;
|
---|
2285 | case SVGA3D_Z_D24X8:
|
---|
2286 | _debug_printf("\t\t.format = SVGA3D_Z_D24X8\n");
|
---|
2287 | break;
|
---|
2288 | case SVGA3D_V16U16:
|
---|
2289 | _debug_printf("\t\t.format = SVGA3D_V16U16\n");
|
---|
2290 | break;
|
---|
2291 | case SVGA3D_G16R16:
|
---|
2292 | _debug_printf("\t\t.format = SVGA3D_G16R16\n");
|
---|
2293 | break;
|
---|
2294 | case SVGA3D_A16B16G16R16:
|
---|
2295 | _debug_printf("\t\t.format = SVGA3D_A16B16G16R16\n");
|
---|
2296 | break;
|
---|
2297 | case SVGA3D_UYVY:
|
---|
2298 | _debug_printf("\t\t.format = SVGA3D_UYVY\n");
|
---|
2299 | break;
|
---|
2300 | case SVGA3D_YUY2:
|
---|
2301 | _debug_printf("\t\t.format = SVGA3D_YUY2\n");
|
---|
2302 | break;
|
---|
2303 | case SVGA3D_NV12:
|
---|
2304 | _debug_printf("\t\t.format = SVGA3D_NV12\n");
|
---|
2305 | break;
|
---|
2306 | case SVGA3D_FORMAT_DEAD2:
|
---|
2307 | _debug_printf("\t\t.format = SVGA3D_FORMAT_DEAD2\n");
|
---|
2308 | break;
|
---|
2309 | case SVGA3D_R32G32B32A32_TYPELESS:
|
---|
2310 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_TYPELESS\n");
|
---|
2311 | break;
|
---|
2312 | case SVGA3D_R32G32B32A32_UINT:
|
---|
2313 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_UINT\n");
|
---|
2314 | break;
|
---|
2315 | case SVGA3D_R32G32B32A32_SINT:
|
---|
2316 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_SINT\n");
|
---|
2317 | break;
|
---|
2318 | case SVGA3D_R32G32B32_TYPELESS:
|
---|
2319 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_TYPELESS\n");
|
---|
2320 | break;
|
---|
2321 | case SVGA3D_R32G32B32_FLOAT:
|
---|
2322 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_FLOAT\n");
|
---|
2323 | break;
|
---|
2324 | case SVGA3D_R32G32B32_UINT:
|
---|
2325 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_UINT\n");
|
---|
2326 | break;
|
---|
2327 | case SVGA3D_R32G32B32_SINT:
|
---|
2328 | _debug_printf("\t\t.format = SVGA3D_R32G32B32_SINT\n");
|
---|
2329 | break;
|
---|
2330 | case SVGA3D_R16G16B16A16_TYPELESS:
|
---|
2331 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_TYPELESS\n");
|
---|
2332 | break;
|
---|
2333 | case SVGA3D_R16G16B16A16_UINT:
|
---|
2334 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_UINT\n");
|
---|
2335 | break;
|
---|
2336 | case SVGA3D_R16G16B16A16_SNORM:
|
---|
2337 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_SNORM\n");
|
---|
2338 | break;
|
---|
2339 | case SVGA3D_R16G16B16A16_SINT:
|
---|
2340 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_SINT\n");
|
---|
2341 | break;
|
---|
2342 | case SVGA3D_R32G32_TYPELESS:
|
---|
2343 | _debug_printf("\t\t.format = SVGA3D_R32G32_TYPELESS\n");
|
---|
2344 | break;
|
---|
2345 | case SVGA3D_R32G32_UINT:
|
---|
2346 | _debug_printf("\t\t.format = SVGA3D_R32G32_UINT\n");
|
---|
2347 | break;
|
---|
2348 | case SVGA3D_R32G32_SINT:
|
---|
2349 | _debug_printf("\t\t.format = SVGA3D_R32G32_SINT\n");
|
---|
2350 | break;
|
---|
2351 | case SVGA3D_R32G8X24_TYPELESS:
|
---|
2352 | _debug_printf("\t\t.format = SVGA3D_R32G8X24_TYPELESS\n");
|
---|
2353 | break;
|
---|
2354 | case SVGA3D_D32_FLOAT_S8X24_UINT:
|
---|
2355 | _debug_printf("\t\t.format = SVGA3D_D32_FLOAT_S8X24_UINT\n");
|
---|
2356 | break;
|
---|
2357 | case SVGA3D_R32_FLOAT_X8X24:
|
---|
2358 | _debug_printf("\t\t.format = SVGA3D_R32_FLOAT_X8X24\n");
|
---|
2359 | break;
|
---|
2360 | case SVGA3D_X32_G8X24_UINT:
|
---|
2361 | _debug_printf("\t\t.format = SVGA3D_X32_G8X24_UINT\n");
|
---|
2362 | break;
|
---|
2363 | case SVGA3D_R10G10B10A2_TYPELESS:
|
---|
2364 | _debug_printf("\t\t.format = SVGA3D_R10G10B10A2_TYPELESS\n");
|
---|
2365 | break;
|
---|
2366 | case SVGA3D_R10G10B10A2_UINT:
|
---|
2367 | _debug_printf("\t\t.format = SVGA3D_R10G10B10A2_UINT\n");
|
---|
2368 | break;
|
---|
2369 | case SVGA3D_R11G11B10_FLOAT:
|
---|
2370 | _debug_printf("\t\t.format = SVGA3D_R11G11B10_FLOAT\n");
|
---|
2371 | break;
|
---|
2372 | case SVGA3D_R8G8B8A8_TYPELESS:
|
---|
2373 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_TYPELESS\n");
|
---|
2374 | break;
|
---|
2375 | case SVGA3D_R8G8B8A8_UNORM:
|
---|
2376 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_UNORM\n");
|
---|
2377 | break;
|
---|
2378 | case SVGA3D_R8G8B8A8_UNORM_SRGB:
|
---|
2379 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_UNORM_SRGB\n");
|
---|
2380 | break;
|
---|
2381 | case SVGA3D_R8G8B8A8_UINT:
|
---|
2382 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_UINT\n");
|
---|
2383 | break;
|
---|
2384 | case SVGA3D_R8G8B8A8_SINT:
|
---|
2385 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_SINT\n");
|
---|
2386 | break;
|
---|
2387 | case SVGA3D_R16G16_TYPELESS:
|
---|
2388 | _debug_printf("\t\t.format = SVGA3D_R16G16_TYPELESS\n");
|
---|
2389 | break;
|
---|
2390 | case SVGA3D_R16G16_UINT:
|
---|
2391 | _debug_printf("\t\t.format = SVGA3D_R16G16_UINT\n");
|
---|
2392 | break;
|
---|
2393 | case SVGA3D_R16G16_SINT:
|
---|
2394 | _debug_printf("\t\t.format = SVGA3D_R16G16_SINT\n");
|
---|
2395 | break;
|
---|
2396 | case SVGA3D_R32_TYPELESS:
|
---|
2397 | _debug_printf("\t\t.format = SVGA3D_R32_TYPELESS\n");
|
---|
2398 | break;
|
---|
2399 | case SVGA3D_D32_FLOAT:
|
---|
2400 | _debug_printf("\t\t.format = SVGA3D_D32_FLOAT\n");
|
---|
2401 | break;
|
---|
2402 | case SVGA3D_R32_UINT:
|
---|
2403 | _debug_printf("\t\t.format = SVGA3D_R32_UINT\n");
|
---|
2404 | break;
|
---|
2405 | case SVGA3D_R32_SINT:
|
---|
2406 | _debug_printf("\t\t.format = SVGA3D_R32_SINT\n");
|
---|
2407 | break;
|
---|
2408 | case SVGA3D_R24G8_TYPELESS:
|
---|
2409 | _debug_printf("\t\t.format = SVGA3D_R24G8_TYPELESS\n");
|
---|
2410 | break;
|
---|
2411 | case SVGA3D_D24_UNORM_S8_UINT:
|
---|
2412 | _debug_printf("\t\t.format = SVGA3D_D24_UNORM_S8_UINT\n");
|
---|
2413 | break;
|
---|
2414 | case SVGA3D_R24_UNORM_X8:
|
---|
2415 | _debug_printf("\t\t.format = SVGA3D_R24_UNORM_X8\n");
|
---|
2416 | break;
|
---|
2417 | case SVGA3D_X24_G8_UINT:
|
---|
2418 | _debug_printf("\t\t.format = SVGA3D_X24_G8_UINT\n");
|
---|
2419 | break;
|
---|
2420 | case SVGA3D_R8G8_TYPELESS:
|
---|
2421 | _debug_printf("\t\t.format = SVGA3D_R8G8_TYPELESS\n");
|
---|
2422 | break;
|
---|
2423 | case SVGA3D_R8G8_UNORM:
|
---|
2424 | _debug_printf("\t\t.format = SVGA3D_R8G8_UNORM\n");
|
---|
2425 | break;
|
---|
2426 | case SVGA3D_R8G8_UINT:
|
---|
2427 | _debug_printf("\t\t.format = SVGA3D_R8G8_UINT\n");
|
---|
2428 | break;
|
---|
2429 | case SVGA3D_R8G8_SINT:
|
---|
2430 | _debug_printf("\t\t.format = SVGA3D_R8G8_SINT\n");
|
---|
2431 | break;
|
---|
2432 | case SVGA3D_R16_TYPELESS:
|
---|
2433 | _debug_printf("\t\t.format = SVGA3D_R16_TYPELESS\n");
|
---|
2434 | break;
|
---|
2435 | case SVGA3D_R16_UNORM:
|
---|
2436 | _debug_printf("\t\t.format = SVGA3D_R16_UNORM\n");
|
---|
2437 | break;
|
---|
2438 | case SVGA3D_R16_UINT:
|
---|
2439 | _debug_printf("\t\t.format = SVGA3D_R16_UINT\n");
|
---|
2440 | break;
|
---|
2441 | case SVGA3D_R16_SNORM:
|
---|
2442 | _debug_printf("\t\t.format = SVGA3D_R16_SNORM\n");
|
---|
2443 | break;
|
---|
2444 | case SVGA3D_R16_SINT:
|
---|
2445 | _debug_printf("\t\t.format = SVGA3D_R16_SINT\n");
|
---|
2446 | break;
|
---|
2447 | case SVGA3D_R8_TYPELESS:
|
---|
2448 | _debug_printf("\t\t.format = SVGA3D_R8_TYPELESS\n");
|
---|
2449 | break;
|
---|
2450 | case SVGA3D_R8_UNORM:
|
---|
2451 | _debug_printf("\t\t.format = SVGA3D_R8_UNORM\n");
|
---|
2452 | break;
|
---|
2453 | case SVGA3D_R8_UINT:
|
---|
2454 | _debug_printf("\t\t.format = SVGA3D_R8_UINT\n");
|
---|
2455 | break;
|
---|
2456 | case SVGA3D_R8_SNORM:
|
---|
2457 | _debug_printf("\t\t.format = SVGA3D_R8_SNORM\n");
|
---|
2458 | break;
|
---|
2459 | case SVGA3D_R8_SINT:
|
---|
2460 | _debug_printf("\t\t.format = SVGA3D_R8_SINT\n");
|
---|
2461 | break;
|
---|
2462 | case SVGA3D_P8:
|
---|
2463 | _debug_printf("\t\t.format = SVGA3D_P8\n");
|
---|
2464 | break;
|
---|
2465 | case SVGA3D_R9G9B9E5_SHAREDEXP:
|
---|
2466 | _debug_printf("\t\t.format = SVGA3D_R9G9B9E5_SHAREDEXP\n");
|
---|
2467 | break;
|
---|
2468 | case SVGA3D_R8G8_B8G8_UNORM:
|
---|
2469 | _debug_printf("\t\t.format = SVGA3D_R8G8_B8G8_UNORM\n");
|
---|
2470 | break;
|
---|
2471 | case SVGA3D_G8R8_G8B8_UNORM:
|
---|
2472 | _debug_printf("\t\t.format = SVGA3D_G8R8_G8B8_UNORM\n");
|
---|
2473 | break;
|
---|
2474 | case SVGA3D_BC1_TYPELESS:
|
---|
2475 | _debug_printf("\t\t.format = SVGA3D_BC1_TYPELESS\n");
|
---|
2476 | break;
|
---|
2477 | case SVGA3D_BC1_UNORM_SRGB:
|
---|
2478 | _debug_printf("\t\t.format = SVGA3D_BC1_UNORM_SRGB\n");
|
---|
2479 | break;
|
---|
2480 | case SVGA3D_BC2_TYPELESS:
|
---|
2481 | _debug_printf("\t\t.format = SVGA3D_BC2_TYPELESS\n");
|
---|
2482 | break;
|
---|
2483 | case SVGA3D_BC2_UNORM_SRGB:
|
---|
2484 | _debug_printf("\t\t.format = SVGA3D_BC2_UNORM_SRGB\n");
|
---|
2485 | break;
|
---|
2486 | case SVGA3D_BC3_TYPELESS:
|
---|
2487 | _debug_printf("\t\t.format = SVGA3D_BC3_TYPELESS\n");
|
---|
2488 | break;
|
---|
2489 | case SVGA3D_BC3_UNORM_SRGB:
|
---|
2490 | _debug_printf("\t\t.format = SVGA3D_BC3_UNORM_SRGB\n");
|
---|
2491 | break;
|
---|
2492 | case SVGA3D_BC4_TYPELESS:
|
---|
2493 | _debug_printf("\t\t.format = SVGA3D_BC4_TYPELESS\n");
|
---|
2494 | break;
|
---|
2495 | case SVGA3D_ATI1:
|
---|
2496 | _debug_printf("\t\t.format = SVGA3D_ATI1\n");
|
---|
2497 | break;
|
---|
2498 | case SVGA3D_BC4_SNORM:
|
---|
2499 | _debug_printf("\t\t.format = SVGA3D_BC4_SNORM\n");
|
---|
2500 | break;
|
---|
2501 | case SVGA3D_BC5_TYPELESS:
|
---|
2502 | _debug_printf("\t\t.format = SVGA3D_BC5_TYPELESS\n");
|
---|
2503 | break;
|
---|
2504 | case SVGA3D_ATI2:
|
---|
2505 | _debug_printf("\t\t.format = SVGA3D_ATI2\n");
|
---|
2506 | break;
|
---|
2507 | case SVGA3D_BC5_SNORM:
|
---|
2508 | _debug_printf("\t\t.format = SVGA3D_BC5_SNORM\n");
|
---|
2509 | break;
|
---|
2510 | case SVGA3D_R10G10B10_XR_BIAS_A2_UNORM:
|
---|
2511 | _debug_printf("\t\t.format = SVGA3D_R10G10B10_XR_BIAS_A2_UNORM\n");
|
---|
2512 | break;
|
---|
2513 | case SVGA3D_B8G8R8A8_TYPELESS:
|
---|
2514 | _debug_printf("\t\t.format = SVGA3D_B8G8R8A8_TYPELESS\n");
|
---|
2515 | break;
|
---|
2516 | case SVGA3D_B8G8R8A8_UNORM_SRGB:
|
---|
2517 | _debug_printf("\t\t.format = SVGA3D_B8G8R8A8_UNORM_SRGB\n");
|
---|
2518 | break;
|
---|
2519 | case SVGA3D_B8G8R8X8_TYPELESS:
|
---|
2520 | _debug_printf("\t\t.format = SVGA3D_B8G8R8X8_TYPELESS\n");
|
---|
2521 | break;
|
---|
2522 | case SVGA3D_B8G8R8X8_UNORM_SRGB:
|
---|
2523 | _debug_printf("\t\t.format = SVGA3D_B8G8R8X8_UNORM_SRGB\n");
|
---|
2524 | break;
|
---|
2525 | case SVGA3D_Z_DF16:
|
---|
2526 | _debug_printf("\t\t.format = SVGA3D_Z_DF16\n");
|
---|
2527 | break;
|
---|
2528 | case SVGA3D_Z_DF24:
|
---|
2529 | _debug_printf("\t\t.format = SVGA3D_Z_DF24\n");
|
---|
2530 | break;
|
---|
2531 | case SVGA3D_Z_D24S8_INT:
|
---|
2532 | _debug_printf("\t\t.format = SVGA3D_Z_D24S8_INT\n");
|
---|
2533 | break;
|
---|
2534 | case SVGA3D_YV12:
|
---|
2535 | _debug_printf("\t\t.format = SVGA3D_YV12\n");
|
---|
2536 | break;
|
---|
2537 | case SVGA3D_R32G32B32A32_FLOAT:
|
---|
2538 | _debug_printf("\t\t.format = SVGA3D_R32G32B32A32_FLOAT\n");
|
---|
2539 | break;
|
---|
2540 | case SVGA3D_R16G16B16A16_FLOAT:
|
---|
2541 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_FLOAT\n");
|
---|
2542 | break;
|
---|
2543 | case SVGA3D_R16G16B16A16_UNORM:
|
---|
2544 | _debug_printf("\t\t.format = SVGA3D_R16G16B16A16_UNORM\n");
|
---|
2545 | break;
|
---|
2546 | case SVGA3D_R32G32_FLOAT:
|
---|
2547 | _debug_printf("\t\t.format = SVGA3D_R32G32_FLOAT\n");
|
---|
2548 | break;
|
---|
2549 | case SVGA3D_R10G10B10A2_UNORM:
|
---|
2550 | _debug_printf("\t\t.format = SVGA3D_R10G10B10A2_UNORM\n");
|
---|
2551 | break;
|
---|
2552 | case SVGA3D_R8G8B8A8_SNORM:
|
---|
2553 | _debug_printf("\t\t.format = SVGA3D_R8G8B8A8_SNORM\n");
|
---|
2554 | break;
|
---|
2555 | case SVGA3D_R16G16_FLOAT:
|
---|
2556 | _debug_printf("\t\t.format = SVGA3D_R16G16_FLOAT\n");
|
---|
2557 | break;
|
---|
2558 | case SVGA3D_R16G16_UNORM:
|
---|
2559 | _debug_printf("\t\t.format = SVGA3D_R16G16_UNORM\n");
|
---|
2560 | break;
|
---|
2561 | case SVGA3D_R16G16_SNORM:
|
---|
2562 | _debug_printf("\t\t.format = SVGA3D_R16G16_SNORM\n");
|
---|
2563 | break;
|
---|
2564 | case SVGA3D_R32_FLOAT:
|
---|
2565 | _debug_printf("\t\t.format = SVGA3D_R32_FLOAT\n");
|
---|
2566 | break;
|
---|
2567 | case SVGA3D_R8G8_SNORM:
|
---|
2568 | _debug_printf("\t\t.format = SVGA3D_R8G8_SNORM\n");
|
---|
2569 | break;
|
---|
2570 | case SVGA3D_R16_FLOAT:
|
---|
2571 | _debug_printf("\t\t.format = SVGA3D_R16_FLOAT\n");
|
---|
2572 | break;
|
---|
2573 | case SVGA3D_D16_UNORM:
|
---|
2574 | _debug_printf("\t\t.format = SVGA3D_D16_UNORM\n");
|
---|
2575 | break;
|
---|
2576 | case SVGA3D_A8_UNORM:
|
---|
2577 | _debug_printf("\t\t.format = SVGA3D_A8_UNORM\n");
|
---|
2578 | break;
|
---|
2579 | case SVGA3D_BC1_UNORM:
|
---|
2580 | _debug_printf("\t\t.format = SVGA3D_BC1_UNORM\n");
|
---|
2581 | break;
|
---|
2582 | case SVGA3D_BC2_UNORM:
|
---|
2583 | _debug_printf("\t\t.format = SVGA3D_BC2_UNORM\n");
|
---|
2584 | break;
|
---|
2585 | case SVGA3D_BC3_UNORM:
|
---|
2586 | _debug_printf("\t\t.format = SVGA3D_BC3_UNORM\n");
|
---|
2587 | break;
|
---|
2588 | case SVGA3D_B5G6R5_UNORM:
|
---|
2589 | _debug_printf("\t\t.format = SVGA3D_B5G6R5_UNORM\n");
|
---|
2590 | break;
|
---|
2591 | case SVGA3D_B5G5R5A1_UNORM:
|
---|
2592 | _debug_printf("\t\t.format = SVGA3D_B5G5R5A1_UNORM\n");
|
---|
2593 | break;
|
---|
2594 | case SVGA3D_B8G8R8A8_UNORM:
|
---|
2595 | _debug_printf("\t\t.format = SVGA3D_B8G8R8A8_UNORM\n");
|
---|
2596 | break;
|
---|
2597 | case SVGA3D_B8G8R8X8_UNORM:
|
---|
2598 | _debug_printf("\t\t.format = SVGA3D_B8G8R8X8_UNORM\n");
|
---|
2599 | break;
|
---|
2600 | case SVGA3D_BC4_UNORM:
|
---|
2601 | _debug_printf("\t\t.format = SVGA3D_BC4_UNORM\n");
|
---|
2602 | break;
|
---|
2603 | case SVGA3D_BC5_UNORM:
|
---|
2604 | _debug_printf("\t\t.format = SVGA3D_BC5_UNORM\n");
|
---|
2605 | break;
|
---|
2606 | case SVGA3D_B4G4R4A4_UNORM:
|
---|
2607 | _debug_printf("\t\t.format = SVGA3D_B4G4R4A4_UNORM\n");
|
---|
2608 | break;
|
---|
2609 | case SVGA3D_BC6H_TYPELESS:
|
---|
2610 | _debug_printf("\t\t.format = SVGA3D_BC6H_TYPELESS\n");
|
---|
2611 | break;
|
---|
2612 | case SVGA3D_BC6H_UF16:
|
---|
2613 | _debug_printf("\t\t.format = SVGA3D_BC6H_UF16\n");
|
---|
2614 | break;
|
---|
2615 | case SVGA3D_BC6H_SF16:
|
---|
2616 | _debug_printf("\t\t.format = SVGA3D_BC6H_SF16\n");
|
---|
2617 | break;
|
---|
2618 | case SVGA3D_BC7_TYPELESS:
|
---|
2619 | _debug_printf("\t\t.format = SVGA3D_BC7_TYPELESS\n");
|
---|
2620 | break;
|
---|
2621 | case SVGA3D_BC7_UNORM:
|
---|
2622 | _debug_printf("\t\t.format = SVGA3D_BC7_UNORM\n");
|
---|
2623 | break;
|
---|
2624 | case SVGA3D_BC7_UNORM_SRGB:
|
---|
2625 | _debug_printf("\t\t.format = SVGA3D_BC7_UNORM_SRGB\n");
|
---|
2626 | break;
|
---|
2627 | case SVGA3D_AYUV:
|
---|
2628 | _debug_printf("\t\t.format = SVGA3D_AYUV\n");
|
---|
2629 | break;
|
---|
2630 | default:
|
---|
2631 | _debug_printf("\t\t.format = %i\n", (*cmd).format);
|
---|
2632 | break;
|
---|
2633 | }
|
---|
2634 | _debug_printf("\t\t.numMipLevels = %u\n", (*cmd).numMipLevels);
|
---|
2635 | _debug_printf("\t\t.multisampleCount = %u\n", (*cmd).multisampleCount);
|
---|
2636 | switch((*cmd).autogenFilter) {
|
---|
2637 | case SVGA3D_TEX_FILTER_NONE:
|
---|
2638 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_NONE\n");
|
---|
2639 | break;
|
---|
2640 | case SVGA3D_TEX_FILTER_NEAREST:
|
---|
2641 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_NEAREST\n");
|
---|
2642 | break;
|
---|
2643 | case SVGA3D_TEX_FILTER_LINEAR:
|
---|
2644 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_LINEAR\n");
|
---|
2645 | break;
|
---|
2646 | case SVGA3D_TEX_FILTER_ANISOTROPIC:
|
---|
2647 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_ANISOTROPIC\n");
|
---|
2648 | break;
|
---|
2649 | case SVGA3D_TEX_FILTER_FLATCUBIC:
|
---|
2650 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_FLATCUBIC\n");
|
---|
2651 | break;
|
---|
2652 | case SVGA3D_TEX_FILTER_GAUSSIANCUBIC:
|
---|
2653 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_GAUSSIANCUBIC\n");
|
---|
2654 | break;
|
---|
2655 | case SVGA3D_TEX_FILTER_PYRAMIDALQUAD:
|
---|
2656 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_PYRAMIDALQUAD\n");
|
---|
2657 | break;
|
---|
2658 | case SVGA3D_TEX_FILTER_GAUSSIANQUAD:
|
---|
2659 | _debug_printf("\t\t.autogenFilter = SVGA3D_TEX_FILTER_GAUSSIANQUAD\n");
|
---|
2660 | break;
|
---|
2661 | default:
|
---|
2662 | _debug_printf("\t\t.autogenFilter = %i\n", (*cmd).autogenFilter);
|
---|
2663 | break;
|
---|
2664 | }
|
---|
2665 | _debug_printf("\t\t.size.width = %u\n", (*cmd).size.width);
|
---|
2666 | _debug_printf("\t\t.size.height = %u\n", (*cmd).size.height);
|
---|
2667 | _debug_printf("\t\t.size.depth = %u\n", (*cmd).size.depth);
|
---|
2668 | }
|
---|
2669 |
|
---|
2670 | static void
|
---|
2671 | dump_SVGA3dCmdDestroyGBSurface(const SVGA3dCmdDestroyGBSurface *cmd)
|
---|
2672 | {
|
---|
2673 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
2674 | }
|
---|
2675 |
|
---|
2676 | static void
|
---|
2677 | dump_SVGA3dCmdBindGBSurface(const SVGA3dCmdBindGBSurface *cmd)
|
---|
2678 | {
|
---|
2679 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
2680 | _debug_printf("\t\t.mobid = %u\n", (*cmd).mobid);
|
---|
2681 | }
|
---|
2682 |
|
---|
2683 | static void
|
---|
2684 | dump_SVGA3dCmdUpdateGBImage(const SVGA3dCmdUpdateGBImage *cmd)
|
---|
2685 | {
|
---|
2686 | _debug_printf("\t\t.image.sid = %u\n", (*cmd).image.sid);
|
---|
2687 | _debug_printf("\t\t.image.face = %u\n", (*cmd).image.face);
|
---|
2688 | _debug_printf("\t\t.image.mipmap = %u\n", (*cmd).image.mipmap);
|
---|
2689 | _debug_printf("\t\t.box.x = %u\n", (*cmd).box.x);
|
---|
2690 | _debug_printf("\t\t.box.y = %u\n", (*cmd).box.y);
|
---|
2691 | _debug_printf("\t\t.box.z = %u\n", (*cmd).box.z);
|
---|
2692 | _debug_printf("\t\t.box.w = %u\n", (*cmd).box.w);
|
---|
2693 | _debug_printf("\t\t.box.h = %u\n", (*cmd).box.h);
|
---|
2694 | _debug_printf("\t\t.box.d = %u\n", (*cmd).box.d);
|
---|
2695 | }
|
---|
2696 |
|
---|
2697 | static void
|
---|
2698 | dump_SVGA3dCmdInvalidateGBSurface(const SVGA3dCmdInvalidateGBSurface *cmd)
|
---|
2699 | {
|
---|
2700 | _debug_printf("\t\t.sid = %u\n", (*cmd).sid);
|
---|
2701 | }
|
---|
2702 |
|
---|
2703 | static void
|
---|
2704 | dump_SVGA3dCmdDefineGBScreenTarget(const SVGA3dCmdDefineGBScreenTarget *cmd)
|
---|
2705 | {
|
---|
2706 | _debug_printf("\t\t.stid = %u\n", (*cmd).stid);
|
---|
2707 | _debug_printf("\t\t.width = %u\n", (*cmd).width);
|
---|
2708 | _debug_printf("\t\t.height = %u\n", (*cmd).height);
|
---|
2709 | _debug_printf("\t\t.xRoot = %i\n", (*cmd).xRoot);
|
---|
2710 | _debug_printf("\t\t.yRoot = %i\n", (*cmd).yRoot);
|
---|
2711 | _debug_printf("\t\t.flags = %u\n", (*cmd).flags);
|
---|
2712 | _debug_printf("\t\t.dpi = %u\n", (*cmd).dpi);
|
---|
2713 | }
|
---|
2714 |
|
---|
2715 | static void
|
---|
2716 | dump_SVGA3dCmdDestroyGBScreenTarget(const SVGA3dCmdDestroyGBScreenTarget *cmd)
|
---|
2717 | {
|
---|
2718 | _debug_printf("\t\t.stid = %u\n", (*cmd).stid);
|
---|
2719 | }
|
---|
2720 |
|
---|
2721 | static void
|
---|
2722 | dump_SVGA3dCmdBindGBScreenTarget(const SVGA3dCmdBindGBScreenTarget *cmd)
|
---|
2723 | {
|
---|
2724 | _debug_printf("\t\t.stid = %u\n", (*cmd).stid);
|
---|
2725 | _debug_printf("\t\t.image.sid = %u\n", (*cmd).image.sid);
|
---|
2726 | _debug_printf("\t\t.image.face = %u\n", (*cmd).image.face);
|
---|
2727 | _debug_printf("\t\t.image.mipmap = %u\n", (*cmd).image.mipmap);
|
---|
2728 | }
|
---|
2729 |
|
---|
2730 | static void
|
---|
2731 | dump_SVGA3dCmdUpdateGBScreenTarget(const SVGA3dCmdUpdateGBScreenTarget *cmd)
|
---|
2732 | {
|
---|
2733 | _debug_printf("\t\t.stid = %u\n", (*cmd).stid);
|
---|
2734 | _debug_printf("\t\t.rect.x = %u\n", (*cmd).rect.x);
|
---|
2735 | _debug_printf("\t\t.rect.y = %u\n", (*cmd).rect.y);
|
---|
2736 | _debug_printf("\t\t.rect.w = %u\n", (*cmd).rect.w);
|
---|
2737 | _debug_printf("\t\t.rect.h = %u\n", (*cmd).rect.h);
|
---|
2738 | }
|
---|
2739 |
|
---|
2740 |
|
---|
2741 | void
|
---|
2742 | svga_dump_command(uint32_t cmd_id, const void *data, uint32_t size)
|
---|
2743 | {
|
---|
2744 | const uint8_t *body = (const uint8_t *)data;
|
---|
2745 | const uint8_t *next = body + size;
|
---|
2746 |
|
---|
2747 | switch(cmd_id) {
|
---|
2748 | case SVGA_3D_CMD_SURFACE_DEFINE:
|
---|
2749 | _debug_printf("\tSVGA_3D_CMD_SURFACE_DEFINE\n");
|
---|
2750 | {
|
---|
2751 | const SVGA3dCmdDefineSurface *cmd = (const SVGA3dCmdDefineSurface *)body;
|
---|
2752 | dump_SVGA3dCmdDefineSurface(cmd);
|
---|
2753 | body = (const uint8_t *)&cmd[1];
|
---|
2754 | while(body + sizeof(SVGA3dSize) <= next) {
|
---|
2755 | dump_SVGA3dSize((const SVGA3dSize *)body);
|
---|
2756 | body += sizeof(SVGA3dSize);
|
---|
2757 | }
|
---|
2758 | }
|
---|
2759 | break;
|
---|
2760 | case SVGA_3D_CMD_SURFACE_DESTROY:
|
---|
2761 | _debug_printf("\tSVGA_3D_CMD_SURFACE_DESTROY\n");
|
---|
2762 | {
|
---|
2763 | const SVGA3dCmdDestroySurface *cmd = (const SVGA3dCmdDestroySurface *)body;
|
---|
2764 | dump_SVGA3dCmdDestroySurface(cmd);
|
---|
2765 | body = (const uint8_t *)&cmd[1];
|
---|
2766 | }
|
---|
2767 | break;
|
---|
2768 | case SVGA_3D_CMD_SURFACE_COPY:
|
---|
2769 | _debug_printf("\tSVGA_3D_CMD_SURFACE_COPY\n");
|
---|
2770 | {
|
---|
2771 | const SVGA3dCmdSurfaceCopy *cmd = (const SVGA3dCmdSurfaceCopy *)body;
|
---|
2772 | dump_SVGA3dCmdSurfaceCopy(cmd);
|
---|
2773 | body = (const uint8_t *)&cmd[1];
|
---|
2774 | while(body + sizeof(SVGA3dCopyBox) <= next) {
|
---|
2775 | dump_SVGA3dCopyBox((const SVGA3dCopyBox *)body);
|
---|
2776 | body += sizeof(SVGA3dCopyBox);
|
---|
2777 | }
|
---|
2778 | }
|
---|
2779 | break;
|
---|
2780 | case SVGA_3D_CMD_SURFACE_STRETCHBLT:
|
---|
2781 | _debug_printf("\tSVGA_3D_CMD_SURFACE_STRETCHBLT\n");
|
---|
2782 | {
|
---|
2783 | const SVGA3dCmdSurfaceStretchBlt *cmd = (const SVGA3dCmdSurfaceStretchBlt *)body;
|
---|
2784 | dump_SVGA3dCmdSurfaceStretchBlt(cmd);
|
---|
2785 | body = (const uint8_t *)&cmd[1];
|
---|
2786 | }
|
---|
2787 | break;
|
---|
2788 | case SVGA_3D_CMD_SURFACE_DMA:
|
---|
2789 | _debug_printf("\tSVGA_3D_CMD_SURFACE_DMA\n");
|
---|
2790 | {
|
---|
2791 | const SVGA3dCmdSurfaceDMA *cmd = (const SVGA3dCmdSurfaceDMA *)body;
|
---|
2792 | dump_SVGA3dCmdSurfaceDMA(cmd);
|
---|
2793 | body = (const uint8_t *)&cmd[1];
|
---|
2794 | while(body + sizeof(SVGA3dCopyBox) <= next) {
|
---|
2795 | dump_SVGA3dCopyBox((const SVGA3dCopyBox *)body);
|
---|
2796 | body += sizeof(SVGA3dCopyBox);
|
---|
2797 | }
|
---|
2798 | }
|
---|
2799 | break;
|
---|
2800 | case SVGA_3D_CMD_CONTEXT_DEFINE:
|
---|
2801 | _debug_printf("\tSVGA_3D_CMD_CONTEXT_DEFINE\n");
|
---|
2802 | {
|
---|
2803 | const SVGA3dCmdDefineContext *cmd = (const SVGA3dCmdDefineContext *)body;
|
---|
2804 | dump_SVGA3dCmdDefineContext(cmd);
|
---|
2805 | body = (const uint8_t *)&cmd[1];
|
---|
2806 | }
|
---|
2807 | break;
|
---|
2808 | case SVGA_3D_CMD_CONTEXT_DESTROY:
|
---|
2809 | _debug_printf("\tSVGA_3D_CMD_CONTEXT_DESTROY\n");
|
---|
2810 | {
|
---|
2811 | const SVGA3dCmdDestroyContext *cmd = (const SVGA3dCmdDestroyContext *)body;
|
---|
2812 | dump_SVGA3dCmdDestroyContext(cmd);
|
---|
2813 | body = (const uint8_t *)&cmd[1];
|
---|
2814 | }
|
---|
2815 | break;
|
---|
2816 | case SVGA_3D_CMD_SETTRANSFORM:
|
---|
2817 | _debug_printf("\tSVGA_3D_CMD_SETTRANSFORM\n");
|
---|
2818 | {
|
---|
2819 | const SVGA3dCmdSetTransform *cmd = (const SVGA3dCmdSetTransform *)body;
|
---|
2820 | dump_SVGA3dCmdSetTransform(cmd);
|
---|
2821 | body = (const uint8_t *)&cmd[1];
|
---|
2822 | }
|
---|
2823 | break;
|
---|
2824 | case SVGA_3D_CMD_SETZRANGE:
|
---|
2825 | _debug_printf("\tSVGA_3D_CMD_SETZRANGE\n");
|
---|
2826 | {
|
---|
2827 | const SVGA3dCmdSetZRange *cmd = (const SVGA3dCmdSetZRange *)body;
|
---|
2828 | dump_SVGA3dCmdSetZRange(cmd);
|
---|
2829 | body = (const uint8_t *)&cmd[1];
|
---|
2830 | }
|
---|
2831 | break;
|
---|
2832 | case SVGA_3D_CMD_SETRENDERSTATE:
|
---|
2833 | _debug_printf("\tSVGA_3D_CMD_SETRENDERSTATE\n");
|
---|
2834 | {
|
---|
2835 | const SVGA3dCmdSetRenderState *cmd = (const SVGA3dCmdSetRenderState *)body;
|
---|
2836 | dump_SVGA3dCmdSetRenderState(cmd);
|
---|
2837 | body = (const uint8_t *)&cmd[1];
|
---|
2838 | while(body + sizeof(SVGA3dRenderState) <= next) {
|
---|
2839 | dump_SVGA3dRenderState((const SVGA3dRenderState *)body);
|
---|
2840 | body += sizeof(SVGA3dRenderState);
|
---|
2841 | }
|
---|
2842 | }
|
---|
2843 | break;
|
---|
2844 | case SVGA_3D_CMD_SETRENDERTARGET:
|
---|
2845 | _debug_printf("\tSVGA_3D_CMD_SETRENDERTARGET\n");
|
---|
2846 | {
|
---|
2847 | const SVGA3dCmdSetRenderTarget *cmd = (const SVGA3dCmdSetRenderTarget *)body;
|
---|
2848 | dump_SVGA3dCmdSetRenderTarget(cmd);
|
---|
2849 | body = (const uint8_t *)&cmd[1];
|
---|
2850 | }
|
---|
2851 | break;
|
---|
2852 | case SVGA_3D_CMD_SETTEXTURESTATE:
|
---|
2853 | _debug_printf("\tSVGA_3D_CMD_SETTEXTURESTATE\n");
|
---|
2854 | {
|
---|
2855 | const SVGA3dCmdSetTextureState *cmd = (const SVGA3dCmdSetTextureState *)body;
|
---|
2856 | dump_SVGA3dCmdSetTextureState(cmd);
|
---|
2857 | body = (const uint8_t *)&cmd[1];
|
---|
2858 | while(body + sizeof(SVGA3dTextureState) <= next) {
|
---|
2859 | dump_SVGA3dTextureState((const SVGA3dTextureState *)body);
|
---|
2860 | body += sizeof(SVGA3dTextureState);
|
---|
2861 | }
|
---|
2862 | }
|
---|
2863 | break;
|
---|
2864 | case SVGA_3D_CMD_SETMATERIAL:
|
---|
2865 | _debug_printf("\tSVGA_3D_CMD_SETMATERIAL\n");
|
---|
2866 | {
|
---|
2867 | const SVGA3dCmdSetMaterial *cmd = (const SVGA3dCmdSetMaterial *)body;
|
---|
2868 | dump_SVGA3dCmdSetMaterial(cmd);
|
---|
2869 | body = (const uint8_t *)&cmd[1];
|
---|
2870 | }
|
---|
2871 | break;
|
---|
2872 | case SVGA_3D_CMD_SETLIGHTDATA:
|
---|
2873 | _debug_printf("\tSVGA_3D_CMD_SETLIGHTDATA\n");
|
---|
2874 | {
|
---|
2875 | const SVGA3dCmdSetLightData *cmd = (const SVGA3dCmdSetLightData *)body;
|
---|
2876 | dump_SVGA3dCmdSetLightData(cmd);
|
---|
2877 | body = (const uint8_t *)&cmd[1];
|
---|
2878 | }
|
---|
2879 | break;
|
---|
2880 | case SVGA_3D_CMD_SETLIGHTENABLED:
|
---|
2881 | _debug_printf("\tSVGA_3D_CMD_SETLIGHTENABLED\n");
|
---|
2882 | {
|
---|
2883 | const SVGA3dCmdSetLightEnabled *cmd = (const SVGA3dCmdSetLightEnabled *)body;
|
---|
2884 | dump_SVGA3dCmdSetLightEnabled(cmd);
|
---|
2885 | body = (const uint8_t *)&cmd[1];
|
---|
2886 | }
|
---|
2887 | break;
|
---|
2888 | case SVGA_3D_CMD_SETVIEWPORT:
|
---|
2889 | _debug_printf("\tSVGA_3D_CMD_SETVIEWPORT\n");
|
---|
2890 | {
|
---|
2891 | const SVGA3dCmdSetViewport *cmd = (const SVGA3dCmdSetViewport *)body;
|
---|
2892 | dump_SVGA3dCmdSetViewport(cmd);
|
---|
2893 | body = (const uint8_t *)&cmd[1];
|
---|
2894 | }
|
---|
2895 | break;
|
---|
2896 | case SVGA_3D_CMD_SETCLIPPLANE:
|
---|
2897 | _debug_printf("\tSVGA_3D_CMD_SETCLIPPLANE\n");
|
---|
2898 | {
|
---|
2899 | const SVGA3dCmdSetClipPlane *cmd = (const SVGA3dCmdSetClipPlane *)body;
|
---|
2900 | dump_SVGA3dCmdSetClipPlane(cmd);
|
---|
2901 | body = (const uint8_t *)&cmd[1];
|
---|
2902 | }
|
---|
2903 | break;
|
---|
2904 | case SVGA_3D_CMD_CLEAR:
|
---|
2905 | _debug_printf("\tSVGA_3D_CMD_CLEAR\n");
|
---|
2906 | {
|
---|
2907 | const SVGA3dCmdClear *cmd = (const SVGA3dCmdClear *)body;
|
---|
2908 | dump_SVGA3dCmdClear(cmd);
|
---|
2909 | body = (const uint8_t *)&cmd[1];
|
---|
2910 | while(body + sizeof(SVGA3dRect) <= next) {
|
---|
2911 | dump_SVGA3dRect((const SVGA3dRect *)body);
|
---|
2912 | body += sizeof(SVGA3dRect);
|
---|
2913 | }
|
---|
2914 | }
|
---|
2915 | break;
|
---|
2916 | case SVGA_3D_CMD_PRESENT:
|
---|
2917 | _debug_printf("\tSVGA_3D_CMD_PRESENT\n");
|
---|
2918 | {
|
---|
2919 | const SVGA3dCmdPresent *cmd = (const SVGA3dCmdPresent *)body;
|
---|
2920 | dump_SVGA3dCmdPresent(cmd);
|
---|
2921 | body = (const uint8_t *)&cmd[1];
|
---|
2922 | while(body + sizeof(SVGA3dCopyRect) <= next) {
|
---|
2923 | dump_SVGA3dCopyRect((const SVGA3dCopyRect *)body);
|
---|
2924 | body += sizeof(SVGA3dCopyRect);
|
---|
2925 | }
|
---|
2926 | }
|
---|
2927 | break;
|
---|
2928 | case SVGA_3D_CMD_SHADER_DEFINE:
|
---|
2929 | _debug_printf("\tSVGA_3D_CMD_SHADER_DEFINE\n");
|
---|
2930 | {
|
---|
2931 | const SVGA3dCmdDefineShader *cmd = (const SVGA3dCmdDefineShader *)body;
|
---|
2932 | dump_SVGA3dCmdDefineShader(cmd);
|
---|
2933 | body = (const uint8_t *)&cmd[1];
|
---|
2934 | //svga_shader_dump((const uint32_t *)body,
|
---|
2935 | // (unsigned)(next - body)/sizeof(uint32_t),
|
---|
2936 | // FALSE);
|
---|
2937 | body = next;
|
---|
2938 | }
|
---|
2939 | break;
|
---|
2940 | case SVGA_3D_CMD_SHADER_DESTROY:
|
---|
2941 | _debug_printf("\tSVGA_3D_CMD_SHADER_DESTROY\n");
|
---|
2942 | {
|
---|
2943 | const SVGA3dCmdDestroyShader *cmd = (const SVGA3dCmdDestroyShader *)body;
|
---|
2944 | dump_SVGA3dCmdDestroyShader(cmd);
|
---|
2945 | body = (const uint8_t *)&cmd[1];
|
---|
2946 | }
|
---|
2947 | break;
|
---|
2948 | case SVGA_3D_CMD_SET_SHADER:
|
---|
2949 | _debug_printf("\tSVGA_3D_CMD_SET_SHADER\n");
|
---|
2950 | {
|
---|
2951 | const SVGA3dCmdSetShader *cmd = (const SVGA3dCmdSetShader *)body;
|
---|
2952 | dump_SVGA3dCmdSetShader(cmd);
|
---|
2953 | body = (const uint8_t *)&cmd[1];
|
---|
2954 | }
|
---|
2955 | break;
|
---|
2956 | case SVGA_3D_CMD_SET_SHADER_CONST:
|
---|
2957 | _debug_printf("\tSVGA_3D_CMD_SET_SHADER_CONST\n");
|
---|
2958 | {
|
---|
2959 | const SVGA3dCmdSetShaderConst *cmd = (const SVGA3dCmdSetShaderConst *)body;
|
---|
2960 | dump_SVGA3dCmdSetShaderConst(cmd);
|
---|
2961 | body = (const uint8_t *)&cmd[1];
|
---|
2962 | }
|
---|
2963 | break;
|
---|
2964 | case SVGA_3D_CMD_DRAW_PRIMITIVES:
|
---|
2965 | _debug_printf("\tSVGA_3D_CMD_DRAW_PRIMITIVES\n");
|
---|
2966 | {
|
---|
2967 | const SVGA3dCmdDrawPrimitives *cmd = (const SVGA3dCmdDrawPrimitives *)body;
|
---|
2968 | unsigned i, j;
|
---|
2969 | dump_SVGA3dCmdDrawPrimitives(cmd);
|
---|
2970 | body = (const uint8_t *)&cmd[1];
|
---|
2971 | for(i = 0; i < cmd->numVertexDecls; ++i) {
|
---|
2972 | dump_SVGA3dVertexDecl((const SVGA3dVertexDecl *)body);
|
---|
2973 | body += sizeof(SVGA3dVertexDecl);
|
---|
2974 | }
|
---|
2975 | for(j = 0; j < cmd->numRanges; ++j) {
|
---|
2976 | dump_SVGA3dPrimitiveRange((const SVGA3dPrimitiveRange *)body);
|
---|
2977 | body += sizeof(SVGA3dPrimitiveRange);
|
---|
2978 | }
|
---|
2979 | while(body + sizeof(SVGA3dVertexDivisor) <= next) {
|
---|
2980 | dump_SVGA3dVertexDivisor((const SVGA3dVertexDivisor *)body);
|
---|
2981 | body += sizeof(SVGA3dVertexDivisor);
|
---|
2982 | }
|
---|
2983 | }
|
---|
2984 | break;
|
---|
2985 | case SVGA_3D_CMD_SETSCISSORRECT:
|
---|
2986 | _debug_printf("\tSVGA_3D_CMD_SETSCISSORRECT\n");
|
---|
2987 | {
|
---|
2988 | const SVGA3dCmdSetScissorRect *cmd = (const SVGA3dCmdSetScissorRect *)body;
|
---|
2989 | dump_SVGA3dCmdSetScissorRect(cmd);
|
---|
2990 | body = (const uint8_t *)&cmd[1];
|
---|
2991 | }
|
---|
2992 | break;
|
---|
2993 | case SVGA_3D_CMD_BEGIN_QUERY:
|
---|
2994 | _debug_printf("\tSVGA_3D_CMD_BEGIN_QUERY\n");
|
---|
2995 | {
|
---|
2996 | const SVGA3dCmdBeginQuery *cmd = (const SVGA3dCmdBeginQuery *)body;
|
---|
2997 | dump_SVGA3dCmdBeginQuery(cmd);
|
---|
2998 | body = (const uint8_t *)&cmd[1];
|
---|
2999 | }
|
---|
3000 | break;
|
---|
3001 | case SVGA_3D_CMD_END_QUERY:
|
---|
3002 | _debug_printf("\tSVGA_3D_CMD_END_QUERY\n");
|
---|
3003 | {
|
---|
3004 | const SVGA3dCmdEndQuery *cmd = (const SVGA3dCmdEndQuery *)body;
|
---|
3005 | dump_SVGA3dCmdEndQuery(cmd);
|
---|
3006 | body = (const uint8_t *)&cmd[1];
|
---|
3007 | }
|
---|
3008 | break;
|
---|
3009 | case SVGA_3D_CMD_WAIT_FOR_QUERY:
|
---|
3010 | _debug_printf("\tSVGA_3D_CMD_WAIT_FOR_QUERY\n");
|
---|
3011 | {
|
---|
3012 | const SVGA3dCmdWaitForQuery *cmd = (const SVGA3dCmdWaitForQuery *)body;
|
---|
3013 | dump_SVGA3dCmdWaitForQuery(cmd);
|
---|
3014 | body = (const uint8_t *)&cmd[1];
|
---|
3015 | }
|
---|
3016 | break;
|
---|
3017 | case SVGA_3D_CMD_SET_OTABLE_BASE64:
|
---|
3018 | _debug_printf("\tSVGA_3D_CMD_SET_OTABLE_BASE64\n");
|
---|
3019 | {
|
---|
3020 | const SVGA3dCmdSetOTableBase64 *cmd = (const SVGA3dCmdSetOTableBase64 *)body;
|
---|
3021 | dump_SVGA3dCmdSetOTableBase64(cmd);
|
---|
3022 | body = (const uint8_t *)&cmd[1];
|
---|
3023 | }
|
---|
3024 | break;
|
---|
3025 | case SVGA_3D_CMD_DEFINE_GB_MOB64:
|
---|
3026 | _debug_printf("\tSVGA_3D_CMD_DEFINE_GB_MOB64\n");
|
---|
3027 | {
|
---|
3028 | const SVGA3dCmdDefineGBMob64 *cmd = (const SVGA3dCmdDefineGBMob64 *)body;
|
---|
3029 | dump_SVGA3dCmdDefineGBMob64(cmd);
|
---|
3030 | body = (const uint8_t *)&cmd[1];
|
---|
3031 | }
|
---|
3032 | break;
|
---|
3033 | case SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN:
|
---|
3034 | _debug_printf("\tSVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN\n");
|
---|
3035 | {
|
---|
3036 | const SVGA3dCmdBlitSurfaceToScreen *cmd = (const SVGA3dCmdBlitSurfaceToScreen *)body;
|
---|
3037 | dump_SVGA3dCmdBlitSurfaceToScreen(cmd);
|
---|
3038 | body = (const uint8_t *)&cmd[1];
|
---|
3039 | while(body + sizeof(SVGASignedRect) <= next) {
|
---|
3040 | dump_SVGASignedRect((const SVGASignedRect *)body);
|
---|
3041 | body += sizeof(SVGASignedRect);
|
---|
3042 | }
|
---|
3043 | }
|
---|
3044 | break;
|
---|
3045 | case SVGA_3D_CMD_DEFINE_GB_SCREENTARGET:
|
---|
3046 | _debug_printf("\tSVGA_3D_CMD_DEFINE_GB_SCREENTARGET\n");
|
---|
3047 | {
|
---|
3048 | const SVGA3dCmdDefineGBScreenTarget *cmd = (const SVGA3dCmdDefineGBScreenTarget *)body;
|
---|
3049 | dump_SVGA3dCmdDefineGBScreenTarget(cmd);
|
---|
3050 | body = (const uint8_t *)&cmd[1];
|
---|
3051 | }
|
---|
3052 | break;
|
---|
3053 | case SVGA_3D_CMD_BIND_GB_SCREENTARGET:
|
---|
3054 | _debug_printf("\tSVGA_3D_CMD_BIND_GB_SCREENTARGET\n");
|
---|
3055 | {
|
---|
3056 | const SVGA3dCmdBindGBScreenTarget *cmd = (const SVGA3dCmdBindGBScreenTarget *)body;
|
---|
3057 | dump_SVGA3dCmdBindGBScreenTarget(cmd);
|
---|
3058 | body = (const uint8_t *)&cmd[1];
|
---|
3059 | }
|
---|
3060 | break;
|
---|
3061 | case SVGA_3D_CMD_UPDATE_GB_SCREENTARGET:
|
---|
3062 | _debug_printf("\tSVGA_3D_CMD_UPDATE_GB_SCREENTARGET\n");
|
---|
3063 | {
|
---|
3064 | const SVGA3dCmdUpdateGBScreenTarget *cmd = (const SVGA3dCmdUpdateGBScreenTarget *)body;
|
---|
3065 | dump_SVGA3dCmdUpdateGBScreenTarget(cmd);
|
---|
3066 | body = (const uint8_t *)&cmd[1];
|
---|
3067 | }
|
---|
3068 | break;
|
---|
3069 | case SVGA_3D_CMD_DESTROY_GB_SCREENTARGET:
|
---|
3070 | _debug_printf("\tSVGA_3D_CMD_DESTROY_GB_SCREENTARGET\n");
|
---|
3071 | {
|
---|
3072 | const SVGA3dCmdDestroyGBScreenTarget *cmd = (const SVGA3dCmdDestroyGBScreenTarget *)body;
|
---|
3073 | dump_SVGA3dCmdDestroyGBScreenTarget(cmd);
|
---|
3074 | body = (const uint8_t *)&cmd[1];
|
---|
3075 | }
|
---|
3076 | break;
|
---|
3077 | case SVGA_3D_CMD_UPDATE_GB_IMAGE:
|
---|
3078 | _debug_printf("\tSVGA_3D_CMD_UPDATE_GB_IMAGE\n");
|
---|
3079 | {
|
---|
3080 | const SVGA3dCmdUpdateGBImage *cmd = (const SVGA3dCmdUpdateGBImage *)body;
|
---|
3081 | dump_SVGA3dCmdUpdateGBImage(cmd);
|
---|
3082 | body = (const uint8_t *)&cmd[1];
|
---|
3083 | }
|
---|
3084 | break;
|
---|
3085 | case SVGA_3D_CMD_DEFINE_GB_SURFACE:
|
---|
3086 | _debug_printf("\tSVGA_3D_CMD_DEFINE_GB_SURFACE\n");
|
---|
3087 | {
|
---|
3088 | const SVGA3dCmdDefineGBSurface *cmd = (const SVGA3dCmdDefineGBSurface *)body;
|
---|
3089 | dump_SVGA3dCmdDefineGBSurface(cmd);
|
---|
3090 | body = (const uint8_t *)&cmd[1];
|
---|
3091 | }
|
---|
3092 | break;
|
---|
3093 | case SVGA_3D_CMD_BIND_GB_SURFACE:
|
---|
3094 | _debug_printf("\tSVGA_3D_CMD_BIND_GB_SURFACE\n");
|
---|
3095 | {
|
---|
3096 | const SVGA3dCmdBindGBSurface *cmd = (const SVGA3dCmdBindGBSurface *)body;
|
---|
3097 | dump_SVGA3dCmdBindGBSurface(cmd);
|
---|
3098 | body = (const uint8_t *)&cmd[1];
|
---|
3099 | }
|
---|
3100 | break;
|
---|
3101 | case SVGA_3D_CMD_INVALIDATE_GB_SURFACE:
|
---|
3102 | _debug_printf("\tSVGA_3D_CMD_INVALIDATE_GB_SURFACE\n");
|
---|
3103 | {
|
---|
3104 | const SVGA3dCmdInvalidateGBSurface *cmd = (const SVGA3dCmdInvalidateGBSurface *)body;
|
---|
3105 | dump_SVGA3dCmdInvalidateGBSurface(cmd);
|
---|
3106 | body = (const uint8_t *)&cmd[1];
|
---|
3107 | }
|
---|
3108 | break;
|
---|
3109 | case SVGA_3D_CMD_DESTROY_GB_SURFACE:
|
---|
3110 | _debug_printf("\tSVGA_3D_CMD_DESTROY_GB_SURFACE\n");
|
---|
3111 | {
|
---|
3112 | const SVGA3dCmdDestroyGBSurface *cmd = (const SVGA3dCmdDestroyGBSurface *)body;
|
---|
3113 | dump_SVGA3dCmdDestroyGBSurface(cmd);
|
---|
3114 | body = (const uint8_t *)&cmd[1];
|
---|
3115 | }
|
---|
3116 | break;
|
---|
3117 | default:
|
---|
3118 | _debug_printf("\t0x%08x\n", cmd_id);
|
---|
3119 | break;
|
---|
3120 | }
|
---|
3121 |
|
---|
3122 | while(body + sizeof(uint32_t) <= next) {
|
---|
3123 | _debug_printf("\t\t0x%08x\n", *(const uint32_t *)body);
|
---|
3124 | body += sizeof(uint32_t);
|
---|
3125 | }
|
---|
3126 | while(body + sizeof(uint32_t) <= next)
|
---|
3127 | _debug_printf("\t\t0x%02x\n", *body++);
|
---|
3128 | }
|
---|
3129 |
|
---|
3130 |
|
---|
3131 | void
|
---|
3132 | svga_dump_commands(const void *commands, uint32_t size)
|
---|
3133 | {
|
---|
3134 | const uint8_t *next = commands;
|
---|
3135 | const uint8_t *last = next + size;
|
---|
3136 |
|
---|
3137 | //assert(size % sizeof(uint32_t) == 0);
|
---|
3138 |
|
---|
3139 | while(next < last) {
|
---|
3140 | const uint32_t cmd_id = *(const uint32_t *)next;
|
---|
3141 |
|
---|
3142 | if(SVGA_3D_CMD_BASE <= cmd_id && cmd_id < SVGA_3D_CMD_MAX) {
|
---|
3143 | const SVGA3dCmdHeader *header = (const SVGA3dCmdHeader *)next;
|
---|
3144 | const uint8_t *body = (const uint8_t *)&header[1];
|
---|
3145 |
|
---|
3146 | next = body + header->size;
|
---|
3147 | if(next > last)
|
---|
3148 | break;
|
---|
3149 |
|
---|
3150 | svga_dump_command(cmd_id, body, header->size);
|
---|
3151 | }
|
---|
3152 | else if(cmd_id == SVGA_CMD_FENCE) {
|
---|
3153 | _debug_printf("\tSVGA_CMD_FENCE\n");
|
---|
3154 | _debug_printf("\t\t0x%08x\n", ((const uint32_t *)next)[1]);
|
---|
3155 | next += 2*sizeof(uint32_t);
|
---|
3156 | }
|
---|
3157 | else {
|
---|
3158 | _debug_printf("\t0x%08x\n", cmd_id);
|
---|
3159 | next += sizeof(uint32_t);
|
---|
3160 | }
|
---|
3161 | }
|
---|
3162 | }
|
---|
3163 |
|
---|
3164 | #endif //LOG_ENABLED
|
---|