VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/vmsvga/svga3d_reg.h@ 52005

Last change on this file since 52005 was 49983, checked in by vboxsync, 11 years ago

Devices/Graphics: VMware SVGA II compatible graphics emulation (2D only), including the associated small API and VBoxManage changes, contributed by trivirt AG.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/*
2 * VMware SVGA II 3D definitions
3 */
4
5#ifndef _SVGA3D_REG_H_
6#define _SVGA3D_REG_H_
7
8#define SVGA_3D_CMD_LEGACY_BASE 1000
9#define SVGA_3D_CMD_BASE 1040
10
11#define SVGA_3D_CMD_SURFACE_DEFINE SVGA_3D_CMD_BASE + 0
12#define SVGA_3D_CMD_SURFACE_DESTROY SVGA_3D_CMD_BASE + 1
13#define SVGA_3D_CMD_SURFACE_COPY SVGA_3D_CMD_BASE + 2
14#define SVGA_3D_CMD_SURFACE_STRETCHBLT SVGA_3D_CMD_BASE + 3
15#define SVGA_3D_CMD_SURFACE_DMA SVGA_3D_CMD_BASE + 4
16#define SVGA_3D_CMD_CONTEXT_DEFINE SVGA_3D_CMD_BASE + 5
17#define SVGA_3D_CMD_CONTEXT_DESTROY SVGA_3D_CMD_BASE + 6
18#define SVGA_3D_CMD_SETTRANSFORM SVGA_3D_CMD_BASE + 7
19#define SVGA_3D_CMD_SETZRANGE SVGA_3D_CMD_BASE + 8
20#define SVGA_3D_CMD_SETRENDERSTATE SVGA_3D_CMD_BASE + 9
21#define SVGA_3D_CMD_SETRENDERTARGET SVGA_3D_CMD_BASE + 10
22#define SVGA_3D_CMD_SETTEXTURESTATE SVGA_3D_CMD_BASE + 11
23#define SVGA_3D_CMD_SETMATERIAL SVGA_3D_CMD_BASE + 12
24#define SVGA_3D_CMD_SETLIGHTDATA SVGA_3D_CMD_BASE + 13
25#define SVGA_3D_CMD_SETLIGHTENABLED SVGA_3D_CMD_BASE + 14
26#define SVGA_3D_CMD_SETVIEWPORT SVGA_3D_CMD_BASE + 15
27#define SVGA_3D_CMD_SETCLIPPLANE SVGA_3D_CMD_BASE + 16
28#define SVGA_3D_CMD_CLEAR SVGA_3D_CMD_BASE + 17
29#define SVGA_3D_CMD_PRESENT SVGA_3D_CMD_BASE + 18
30#define SVGA_3D_CMD_SHADER_DEFINE SVGA_3D_CMD_BASE + 19
31#define SVGA_3D_CMD_SHADER_DESTROY SVGA_3D_CMD_BASE + 20
32#define SVGA_3D_CMD_SET_SHADER SVGA_3D_CMD_BASE + 21
33#define SVGA_3D_CMD_SET_SHADER_CONST SVGA_3D_CMD_BASE + 22
34#define SVGA_3D_CMD_DRAW_PRIMITIVES SVGA_3D_CMD_BASE + 23
35#define SVGA_3D_CMD_SETSCISSORRECT SVGA_3D_CMD_BASE + 24
36#define SVGA_3D_CMD_BEGIN_QUERY SVGA_3D_CMD_BASE + 25
37#define SVGA_3D_CMD_END_QUERY SVGA_3D_CMD_BASE + 26
38#define SVGA_3D_CMD_WAIT_FOR_QUERY SVGA_3D_CMD_BASE + 27
39#define SVGA_3D_CMD_PRESENT_READBACK SVGA_3D_CMD_BASE + 28
40#define SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN SVGA_3D_CMD_BASE + 29
41#define SVGA_3D_CMD_SURFACE_DEFINE_V2 SVGA_3D_CMD_BASE + 30
42#define SVGA_3D_CMD_GENERATE_MIPMAPS SVGA_3D_CMD_BASE + 31
43#define SVGA_3D_CMD_ACTIVATE_SURFACE SVGA_3D_CMD_BASE + 40
44#define SVGA_3D_CMD_DEACTIVATE_SURFACE SVGA_3D_CMD_BASE + 41
45#define SVGA_3D_CMD_MAX SVGA_3D_CMD_BASE + 42
46
47#define SVGA_3D_CMD_FUTURE_MAX 2000
48
49typedef enum
50{
51 SVGA3D_WRITE_HOST_VRAM = 1,
52 SVGA3D_READ_HOST_VRAM = 2
53} SVGA3dTransferType;
54
55#endif /* _SVGA3D_REG_H_ */
56
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette