Remove PACKED from structure definitions. It shouldn't be necessary (we keep our data aligned anyway), and it isn't sufficient to actually enable packing on MSVC.
This commit is contained in:
parent
992c2d5ea1
commit
eabc723c58
|
@ -439,8 +439,7 @@ union {
|
||||||
uint16 face; /* SVGA3dFace */
|
uint16 face; /* SVGA3dFace */
|
||||||
};
|
};
|
||||||
uint32 uintValue;
|
uint32 uintValue;
|
||||||
} PACKED
|
} SVGA3dFillMode;
|
||||||
SVGA3dFillMode;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SVGA3D_SHADEMODE_INVALID = 0,
|
SVGA3D_SHADEMODE_INVALID = 0,
|
||||||
|
@ -457,8 +456,7 @@ union {
|
||||||
uint16 pattern;
|
uint16 pattern;
|
||||||
};
|
};
|
||||||
uint32 uintValue;
|
uint32 uintValue;
|
||||||
} PACKED
|
} SVGA3dLinePattern;
|
||||||
SVGA3dLinePattern;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SVGA3D_BLENDOP_INVALID = 0,
|
SVGA3D_BLENDOP_INVALID = 0,
|
||||||
|
@ -611,8 +609,7 @@ union {
|
||||||
uint32 alpha : 1;
|
uint32 alpha : 1;
|
||||||
};
|
};
|
||||||
uint32 uintValue;
|
uint32 uintValue;
|
||||||
} PACKED
|
} SVGA3dColorMask;
|
||||||
SVGA3dColorMask;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SVGA3D_VBLEND_DISABLE = 0,
|
SVGA3D_VBLEND_DISABLE = 0,
|
||||||
|
@ -875,8 +872,7 @@ typedef union {
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32 value;
|
uint32 value;
|
||||||
} PACKED
|
} SVGA3dVertexDivisor;
|
||||||
SVGA3dVertexDivisor;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SVGA3D_PRIMITIVE_INVALID = 0,
|
SVGA3D_PRIMITIVE_INVALID = 0,
|
||||||
|
@ -1041,8 +1037,7 @@ typedef struct {
|
||||||
};
|
};
|
||||||
uint32 uintValue;
|
uint32 uintValue;
|
||||||
};
|
};
|
||||||
} PACKED
|
} SVGA3dFogMode;
|
||||||
SVGA3dFogMode;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Uniquely identify one image (a 1D/2D/3D array) from a surface. This
|
* Uniquely identify one image (a 1D/2D/3D array) from a surface. This
|
||||||
|
@ -1054,8 +1049,7 @@ struct SVGA3dSurfaceImageId {
|
||||||
uint32 sid;
|
uint32 sid;
|
||||||
uint32 face;
|
uint32 face;
|
||||||
uint32 mipmap;
|
uint32 mipmap;
|
||||||
} PACKED
|
} SVGA3dSurfaceImageId;
|
||||||
SVGA3dSurfaceImageId;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct SVGA3dGuestImage {
|
struct SVGA3dGuestImage {
|
||||||
|
@ -1077,8 +1071,7 @@ struct SVGA3dGuestImage {
|
||||||
* assuming each row of blocks is tightly packed.
|
* assuming each row of blocks is tightly packed.
|
||||||
*/
|
*/
|
||||||
uint32 pitch;
|
uint32 pitch;
|
||||||
} PACKED
|
} SVGA3dGuestImage;
|
||||||
SVGA3dGuestImage;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1092,8 +1085,7 @@ typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 id;
|
uint32 id;
|
||||||
uint32 size;
|
uint32 size;
|
||||||
} PACKED
|
} SVGA3dCmdHeader;
|
||||||
SVGA3dCmdHeader;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A surface is a hierarchy of host VRAM surfaces: 1D, 2D, or 3D, with
|
* A surface is a hierarchy of host VRAM surfaces: 1D, 2D, or 3D, with
|
||||||
|
@ -1105,8 +1097,7 @@ struct {
|
||||||
uint32 width;
|
uint32 width;
|
||||||
uint32 height;
|
uint32 height;
|
||||||
uint32 depth;
|
uint32 depth;
|
||||||
} PACKED
|
} SVGA3dSize;
|
||||||
SVGA3dSize;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
SVGA3D_SURFACE_CUBEMAP = (1 << 0),
|
SVGA3D_SURFACE_CUBEMAP = (1 << 0),
|
||||||
|
@ -1123,8 +1114,7 @@ typedef enum {
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 numMipLevels;
|
uint32 numMipLevels;
|
||||||
} PACKED
|
} SVGA3dSurfaceFace;
|
||||||
SVGA3dSurfaceFace;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1141,26 +1131,22 @@ struct {
|
||||||
* compressed texture would actually be stored as a 4x4x1 image in
|
* compressed texture would actually be stored as a 4x4x1 image in
|
||||||
* memory.
|
* memory.
|
||||||
*/
|
*/
|
||||||
} PACKED
|
} SVGA3dCmdDefineSurface; /* SVGA_3D_CMD_SURFACE_DEFINE */
|
||||||
SVGA3dCmdDefineSurface; /* SVGA_3D_CMD_SURFACE_DEFINE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 sid;
|
uint32 sid;
|
||||||
} PACKED
|
} SVGA3dCmdDestroySurface; /* SVGA_3D_CMD_SURFACE_DESTROY */
|
||||||
SVGA3dCmdDestroySurface; /* SVGA_3D_CMD_SURFACE_DESTROY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
} PACKED
|
} SVGA3dCmdDefineContext; /* SVGA_3D_CMD_CONTEXT_DEFINE */
|
||||||
SVGA3dCmdDefineContext; /* SVGA_3D_CMD_CONTEXT_DEFINE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
} PACKED
|
} SVGA3dCmdDestroyContext; /* SVGA_3D_CMD_CONTEXT_DESTROY */
|
||||||
SVGA3dCmdDestroyContext; /* SVGA_3D_CMD_CONTEXT_DESTROY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1170,8 +1156,7 @@ struct {
|
||||||
float depth;
|
float depth;
|
||||||
uint32 stencil;
|
uint32 stencil;
|
||||||
/* Followed by variable number of SVGA3dRect structures */
|
/* Followed by variable number of SVGA3dRect structures */
|
||||||
} PACKED
|
} SVGA3dCmdClear; /* SVGA_3D_CMD_CLEAR */
|
||||||
SVGA3dCmdClear; /* SVGA_3D_CMD_CLEAR */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct SVGA3dCopyRect {
|
struct SVGA3dCopyRect {
|
||||||
|
@ -1181,8 +1166,7 @@ struct SVGA3dCopyRect {
|
||||||
uint32 h;
|
uint32 h;
|
||||||
uint32 srcx;
|
uint32 srcx;
|
||||||
uint32 srcy;
|
uint32 srcy;
|
||||||
} PACKED
|
} SVGA3dCopyRect;
|
||||||
SVGA3dCopyRect;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct SVGA3dCopyBox {
|
struct SVGA3dCopyBox {
|
||||||
|
@ -1195,8 +1179,7 @@ struct SVGA3dCopyBox {
|
||||||
uint32 srcx;
|
uint32 srcx;
|
||||||
uint32 srcy;
|
uint32 srcy;
|
||||||
uint32 srcz;
|
uint32 srcz;
|
||||||
} PACKED
|
} SVGA3dCopyBox;
|
||||||
SVGA3dCopyBox;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1204,8 +1187,7 @@ struct {
|
||||||
uint32 y;
|
uint32 y;
|
||||||
uint32 w;
|
uint32 w;
|
||||||
uint32 h;
|
uint32 h;
|
||||||
} PACKED
|
} SVGA3dRect;
|
||||||
SVGA3dRect;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1215,16 +1197,14 @@ struct {
|
||||||
uint32 w;
|
uint32 w;
|
||||||
uint32 h;
|
uint32 h;
|
||||||
uint32 d;
|
uint32 d;
|
||||||
} PACKED
|
} SVGA3dBox;
|
||||||
SVGA3dBox;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 x;
|
uint32 x;
|
||||||
uint32 y;
|
uint32 y;
|
||||||
uint32 z;
|
uint32 z;
|
||||||
} PACKED
|
} SVGA3dPoint;
|
||||||
SVGA3dPoint;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1242,15 +1222,13 @@ struct {
|
||||||
float attenuation2;
|
float attenuation2;
|
||||||
float theta;
|
float theta;
|
||||||
float phi;
|
float phi;
|
||||||
} PACKED
|
} SVGA3dLightData;
|
||||||
SVGA3dLightData;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 sid;
|
uint32 sid;
|
||||||
/* Followed by variable number of SVGA3dCopyRect structures */
|
/* Followed by variable number of SVGA3dCopyRect structures */
|
||||||
} PACKED
|
} SVGA3dCmdPresent; /* SVGA_3D_CMD_PRESENT */
|
||||||
SVGA3dCmdPresent; /* SVGA_3D_CMD_PRESENT */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1259,31 +1237,27 @@ struct {
|
||||||
uint32 uintValue;
|
uint32 uintValue;
|
||||||
float floatValue;
|
float floatValue;
|
||||||
};
|
};
|
||||||
} PACKED
|
} SVGA3dRenderState;
|
||||||
SVGA3dRenderState;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
/* Followed by variable number of SVGA3dRenderState structures */
|
/* Followed by variable number of SVGA3dRenderState structures */
|
||||||
} PACKED
|
} SVGA3dCmdSetRenderState; /* SVGA_3D_CMD_SETRENDERSTATE */
|
||||||
SVGA3dCmdSetRenderState; /* SVGA_3D_CMD_SETRENDERSTATE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dRenderTargetType type;
|
SVGA3dRenderTargetType type;
|
||||||
SVGA3dSurfaceImageId target;
|
SVGA3dSurfaceImageId target;
|
||||||
} PACKED
|
} SVGA3dCmdSetRenderTarget; /* SVGA_3D_CMD_SETRENDERTARGET */
|
||||||
SVGA3dCmdSetRenderTarget; /* SVGA_3D_CMD_SETRENDERTARGET */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
SVGA3dSurfaceImageId src;
|
SVGA3dSurfaceImageId src;
|
||||||
SVGA3dSurfaceImageId dest;
|
SVGA3dSurfaceImageId dest;
|
||||||
/* Followed by variable number of SVGA3dCopyBox structures */
|
/* Followed by variable number of SVGA3dCopyBox structures */
|
||||||
} PACKED
|
} SVGA3dCmdSurfaceCopy; /* SVGA_3D_CMD_SURFACE_COPY */
|
||||||
SVGA3dCmdSurfaceCopy; /* SVGA_3D_CMD_SURFACE_COPY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1292,8 +1266,7 @@ struct {
|
||||||
SVGA3dBox boxSrc;
|
SVGA3dBox boxSrc;
|
||||||
SVGA3dBox boxDest;
|
SVGA3dBox boxDest;
|
||||||
SVGA3dStretchBltMode mode;
|
SVGA3dStretchBltMode mode;
|
||||||
} PACKED
|
} SVGA3dCmdSurfaceStretchBlt; /* SVGA_3D_CMD_SURFACE_STRETCHBLT */
|
||||||
SVGA3dCmdSurfaceStretchBlt; /* SVGA_3D_CMD_SURFACE_STRETCHBLT */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1315,8 +1288,7 @@ struct {
|
||||||
* suffix as future flags may occupy these bits.
|
* suffix as future flags may occupy these bits.
|
||||||
*/
|
*/
|
||||||
uint32 reserved : 30;
|
uint32 reserved : 30;
|
||||||
} PACKED
|
} SVGA3dSurfaceDMAFlags;
|
||||||
SVGA3dSurfaceDMAFlags;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1334,8 +1306,7 @@ struct {
|
||||||
* specified. For example, it may round copy boxes outwards such
|
* specified. For example, it may round copy boxes outwards such
|
||||||
* that they lie on particular alignment boundaries.
|
* that they lie on particular alignment boundaries.
|
||||||
*/
|
*/
|
||||||
} PACKED
|
} SVGA3dCmdSurfaceDMA; /* SVGA_3D_CMD_SURFACE_DMA */
|
||||||
SVGA3dCmdSurfaceDMA; /* SVGA_3D_CMD_SURFACE_DMA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SVGA3dCmdSurfaceDMASuffix --
|
* SVGA3dCmdSurfaceDMASuffix --
|
||||||
|
@ -1369,8 +1340,7 @@ struct {
|
||||||
* Defaults to 0
|
* Defaults to 0
|
||||||
*/
|
*/
|
||||||
SVGA3dSurfaceDMAFlags flags;
|
SVGA3dSurfaceDMAFlags flags;
|
||||||
} PACKED
|
} SVGA3dCmdSurfaceDMASuffix;
|
||||||
SVGA3dCmdSurfaceDMASuffix;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SVGA_3D_CMD_DRAW_PRIMITIVES --
|
* SVGA_3D_CMD_DRAW_PRIMITIVES --
|
||||||
|
@ -1402,8 +1372,7 @@ struct {
|
||||||
*/
|
*/
|
||||||
uint32 first;
|
uint32 first;
|
||||||
uint32 last;
|
uint32 last;
|
||||||
} PACKED
|
} SVGA3dArrayRangeHint;
|
||||||
SVGA3dArrayRangeHint;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1421,8 +1390,7 @@ struct {
|
||||||
uint32 surfaceId;
|
uint32 surfaceId;
|
||||||
uint32 offset;
|
uint32 offset;
|
||||||
uint32 stride;
|
uint32 stride;
|
||||||
} PACKED
|
} SVGA3dArray;
|
||||||
SVGA3dArray;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1436,16 +1404,14 @@ struct {
|
||||||
SVGA3dDeclMethod method;
|
SVGA3dDeclMethod method;
|
||||||
SVGA3dDeclUsage usage;
|
SVGA3dDeclUsage usage;
|
||||||
uint32 usageIndex;
|
uint32 usageIndex;
|
||||||
} PACKED
|
} SVGA3dVertexArrayIdentity;
|
||||||
SVGA3dVertexArrayIdentity;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
SVGA3dVertexArrayIdentity identity;
|
SVGA3dVertexArrayIdentity identity;
|
||||||
SVGA3dArray array;
|
SVGA3dArray array;
|
||||||
SVGA3dArrayRangeHint rangeHint;
|
SVGA3dArrayRangeHint rangeHint;
|
||||||
} PACKED
|
} SVGA3dVertexDecl;
|
||||||
SVGA3dVertexDecl;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1495,8 +1461,7 @@ struct {
|
||||||
* use more memory than rendering with a positive or zero bias.
|
* use more memory than rendering with a positive or zero bias.
|
||||||
*/
|
*/
|
||||||
int32 indexBias;
|
int32 indexBias;
|
||||||
} PACKED
|
} SVGA3dPrimitiveRange;
|
||||||
SVGA3dPrimitiveRange;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1514,8 +1479,7 @@ struct {
|
||||||
* 3. Optionally, SVGA3dVertexDivisor, quantity 'numVertexDecls' (contains
|
* 3. Optionally, SVGA3dVertexDivisor, quantity 'numVertexDecls' (contains
|
||||||
* the frequency divisor for this the corresponding vertex decl)
|
* the frequency divisor for this the corresponding vertex decl)
|
||||||
*/
|
*/
|
||||||
} PACKED
|
} SVGA3dCmdDrawPrimitives; /* SVGA_3D_CMD_DRAWPRIMITIVES */
|
||||||
SVGA3dCmdDrawPrimitives; /* SVGA_3D_CMD_DRAWPRIMITIVES */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1525,37 +1489,32 @@ struct {
|
||||||
uint32 value;
|
uint32 value;
|
||||||
float floatValue;
|
float floatValue;
|
||||||
};
|
};
|
||||||
} PACKED
|
} SVGA3dTextureState;
|
||||||
SVGA3dTextureState;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
/* Followed by variable number of SVGA3dTextureState structures */
|
/* Followed by variable number of SVGA3dTextureState structures */
|
||||||
} PACKED
|
} SVGA3dCmdSetTextureState; /* SVGA_3D_CMD_SETTEXTURESTATE */
|
||||||
SVGA3dCmdSetTextureState; /* SVGA_3D_CMD_SETTEXTURESTATE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dTransformType type;
|
SVGA3dTransformType type;
|
||||||
float matrix[16];
|
float matrix[16];
|
||||||
} PACKED
|
} SVGA3dCmdSetTransform; /* SVGA_3D_CMD_SETTRANSFORM */
|
||||||
SVGA3dCmdSetTransform; /* SVGA_3D_CMD_SETTRANSFORM */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
float min;
|
float min;
|
||||||
float max;
|
float max;
|
||||||
} PACKED
|
} SVGA3dZRange;
|
||||||
SVGA3dZRange;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dZRange zRange;
|
SVGA3dZRange zRange;
|
||||||
} PACKED
|
} SVGA3dCmdSetZRange; /* SVGA_3D_CMD_SETZRANGE */
|
||||||
SVGA3dCmdSetZRange; /* SVGA_3D_CMD_SETZRANGE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1564,54 +1523,47 @@ struct {
|
||||||
float specular[4];
|
float specular[4];
|
||||||
float emissive[4];
|
float emissive[4];
|
||||||
float shininess;
|
float shininess;
|
||||||
} PACKED
|
} SVGA3dMaterial;
|
||||||
SVGA3dMaterial;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dFace face;
|
SVGA3dFace face;
|
||||||
SVGA3dMaterial material;
|
SVGA3dMaterial material;
|
||||||
} PACKED
|
} SVGA3dCmdSetMaterial; /* SVGA_3D_CMD_SETMATERIAL */
|
||||||
SVGA3dCmdSetMaterial; /* SVGA_3D_CMD_SETMATERIAL */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
uint32 index;
|
uint32 index;
|
||||||
SVGA3dLightData data;
|
SVGA3dLightData data;
|
||||||
} PACKED
|
} SVGA3dCmdSetLightData; /* SVGA_3D_CMD_SETLIGHTDATA */
|
||||||
SVGA3dCmdSetLightData; /* SVGA_3D_CMD_SETLIGHTDATA */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
uint32 index;
|
uint32 index;
|
||||||
uint32 enabled;
|
uint32 enabled;
|
||||||
} PACKED
|
} SVGA3dCmdSetLightEnabled; /* SVGA_3D_CMD_SETLIGHTENABLED */
|
||||||
SVGA3dCmdSetLightEnabled; /* SVGA_3D_CMD_SETLIGHTENABLED */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dRect rect;
|
SVGA3dRect rect;
|
||||||
} PACKED
|
} SVGA3dCmdSetViewport; /* SVGA_3D_CMD_SETVIEWPORT */
|
||||||
SVGA3dCmdSetViewport; /* SVGA_3D_CMD_SETVIEWPORT */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dRect rect;
|
SVGA3dRect rect;
|
||||||
} PACKED
|
} SVGA3dCmdSetScissorRect; /* SVGA_3D_CMD_SETSCISSORRECT */
|
||||||
SVGA3dCmdSetScissorRect; /* SVGA_3D_CMD_SETSCISSORRECT */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
uint32 index;
|
uint32 index;
|
||||||
float plane[4];
|
float plane[4];
|
||||||
} PACKED
|
} SVGA3dCmdSetClipPlane; /* SVGA_3D_CMD_SETCLIPPLANE */
|
||||||
SVGA3dCmdSetClipPlane; /* SVGA_3D_CMD_SETCLIPPLANE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1619,16 +1571,14 @@ struct {
|
||||||
uint32 shid;
|
uint32 shid;
|
||||||
SVGA3dShaderType type;
|
SVGA3dShaderType type;
|
||||||
/* Followed by variable number of DWORDs for shader bycode */
|
/* Followed by variable number of DWORDs for shader bycode */
|
||||||
} PACKED
|
} SVGA3dCmdDefineShader; /* SVGA_3D_CMD_SHADER_DEFINE */
|
||||||
SVGA3dCmdDefineShader; /* SVGA_3D_CMD_SHADER_DEFINE */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
uint32 shid;
|
uint32 shid;
|
||||||
SVGA3dShaderType type;
|
SVGA3dShaderType type;
|
||||||
} PACKED
|
} SVGA3dCmdDestroyShader; /* SVGA_3D_CMD_SHADER_DESTROY */
|
||||||
SVGA3dCmdDestroyShader; /* SVGA_3D_CMD_SHADER_DESTROY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1637,39 +1587,34 @@ struct {
|
||||||
SVGA3dShaderType type;
|
SVGA3dShaderType type;
|
||||||
SVGA3dShaderConstType ctype;
|
SVGA3dShaderConstType ctype;
|
||||||
uint32 values[4];
|
uint32 values[4];
|
||||||
} PACKED
|
} SVGA3dCmdSetShaderConst; /* SVGA_3D_CMD_SET_SHADER_CONST */
|
||||||
SVGA3dCmdSetShaderConst; /* SVGA_3D_CMD_SET_SHADER_CONST */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dShaderType type;
|
SVGA3dShaderType type;
|
||||||
uint32 shid;
|
uint32 shid;
|
||||||
} PACKED
|
} SVGA3dCmdSetShader; /* SVGA_3D_CMD_SET_SHADER */
|
||||||
SVGA3dCmdSetShader; /* SVGA_3D_CMD_SET_SHADER */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dQueryType type;
|
SVGA3dQueryType type;
|
||||||
} PACKED
|
} SVGA3dCmdBeginQuery; /* SVGA_3D_CMD_BEGIN_QUERY */
|
||||||
SVGA3dCmdBeginQuery; /* SVGA_3D_CMD_BEGIN_QUERY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid;
|
uint32 cid;
|
||||||
SVGA3dQueryType type;
|
SVGA3dQueryType type;
|
||||||
SVGAGuestPtr guestResult; /* Points to an SVGA3dQueryResult structure */
|
SVGAGuestPtr guestResult; /* Points to an SVGA3dQueryResult structure */
|
||||||
} PACKED
|
} SVGA3dCmdEndQuery; /* SVGA_3D_CMD_END_QUERY */
|
||||||
SVGA3dCmdEndQuery; /* SVGA_3D_CMD_END_QUERY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 cid; /* Same parameters passed to END_QUERY */
|
uint32 cid; /* Same parameters passed to END_QUERY */
|
||||||
SVGA3dQueryType type;
|
SVGA3dQueryType type;
|
||||||
SVGAGuestPtr guestResult;
|
SVGAGuestPtr guestResult;
|
||||||
} PACKED
|
} SVGA3dCmdWaitForQuery; /* SVGA_3D_CMD_WAIT_FOR_QUERY */
|
||||||
SVGA3dCmdWaitForQuery; /* SVGA_3D_CMD_WAIT_FOR_QUERY */
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -1678,8 +1623,7 @@ struct {
|
||||||
union { /* Set by host on exit from PENDING state */
|
union { /* Set by host on exit from PENDING state */
|
||||||
uint32 result32;
|
uint32 result32;
|
||||||
};
|
};
|
||||||
} PACKED
|
} SVGA3dQueryResult;
|
||||||
SVGA3dQueryResult;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN --
|
* SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN --
|
||||||
|
@ -1725,8 +1669,7 @@ struct {
|
||||||
uint32 destScreenId; /* Screen ID or SVGA_ID_INVALID for virt. coords */
|
uint32 destScreenId; /* Screen ID or SVGA_ID_INVALID for virt. coords */
|
||||||
SVGASignedRect destRect; /* Supports scaling if src/rest different size */
|
SVGASignedRect destRect; /* Supports scaling if src/rest different size */
|
||||||
/* Clipping: zero or more SVGASignedRects follow */
|
/* Clipping: zero or more SVGASignedRects follow */
|
||||||
} PACKED
|
} SVGA3dCmdBlitSurfaceToScreen; /* SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN */
|
||||||
SVGA3dCmdBlitSurfaceToScreen; /* SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1845,6 +1788,6 @@ typedef union {
|
||||||
uint32 u;
|
uint32 u;
|
||||||
int32 i;
|
int32 i;
|
||||||
float f;
|
float f;
|
||||||
} PACKED SVGA3dDevCapResult;
|
} SVGA3dDevCapResult;
|
||||||
|
|
||||||
#endif /* _SVGA3D_REG_H_ */
|
#endif /* _SVGA3D_REG_H_ */
|
||||||
|
|
|
@ -84,7 +84,6 @@ struct {
|
||||||
struct {
|
struct {
|
||||||
int32 x, y;
|
int32 x, y;
|
||||||
} monitorPosition;
|
} monitorPosition;
|
||||||
} PACKED
|
} SVGAEscapeHintFullscreen;
|
||||||
SVGAEscapeHintFullscreen;
|
|
||||||
|
|
||||||
#endif /* _SVGA_ESCAPE_H_ */
|
#endif /* _SVGA_ESCAPE_H_ */
|
||||||
|
|
|
@ -73,15 +73,13 @@ struct SVGAEscapeVideoSetRegs {
|
||||||
uint32 registerId;
|
uint32 registerId;
|
||||||
uint32 value;
|
uint32 value;
|
||||||
} items[1];
|
} items[1];
|
||||||
} PACKED
|
} SVGAEscapeVideoSetRegs;
|
||||||
SVGAEscapeVideoSetRegs;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct SVGAEscapeVideoFlush {
|
struct SVGAEscapeVideoFlush {
|
||||||
uint32 cmdType;
|
uint32 cmdType;
|
||||||
uint32 streamId;
|
uint32 streamId;
|
||||||
} PACKED
|
} SVGAEscapeVideoFlush;
|
||||||
SVGAEscapeVideoFlush;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -92,14 +90,12 @@ typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 command;
|
uint32 command;
|
||||||
uint32 overlay;
|
uint32 overlay;
|
||||||
} PACKED
|
} SVGAFifoEscapeCmdVideoBase;
|
||||||
SVGAFifoEscapeCmdVideoBase;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
SVGAFifoEscapeCmdVideoBase videoCmd;
|
SVGAFifoEscapeCmdVideoBase videoCmd;
|
||||||
} PACKED
|
} SVGAFifoEscapeCmdVideoFlush;
|
||||||
SVGAFifoEscapeCmdVideoFlush;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -108,8 +104,7 @@ struct {
|
||||||
uint32 regId;
|
uint32 regId;
|
||||||
uint32 value;
|
uint32 value;
|
||||||
} items[1];
|
} items[1];
|
||||||
} PACKED
|
} SVGAFifoEscapeCmdVideoSetRegs;
|
||||||
SVGAFifoEscapeCmdVideoSetRegs;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
|
@ -118,8 +113,7 @@ struct {
|
||||||
uint32 regId;
|
uint32 regId;
|
||||||
uint32 value;
|
uint32 value;
|
||||||
} items[SVGA_VIDEO_NUM_REGS];
|
} items[SVGA_VIDEO_NUM_REGS];
|
||||||
} PACKED
|
} SVGAFifoEscapeCmdVideoSetAllRegs;
|
||||||
SVGAFifoEscapeCmdVideoSetAllRegs;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -271,15 +271,13 @@ typedef
|
||||||
struct SVGAGuestMemDescriptor {
|
struct SVGAGuestMemDescriptor {
|
||||||
uint32 ppn;
|
uint32 ppn;
|
||||||
uint32 numPages;
|
uint32 numPages;
|
||||||
} PACKED
|
} SVGAGuestMemDescriptor;
|
||||||
SVGAGuestMemDescriptor;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct SVGAGuestPtr {
|
struct SVGAGuestPtr {
|
||||||
uint32 gmrId;
|
uint32 gmrId;
|
||||||
uint32 offset;
|
uint32 offset;
|
||||||
} PACKED
|
} SVGAGuestPtr;
|
||||||
SVGAGuestPtr;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -313,8 +311,7 @@ struct SVGAGMRImageFormat {
|
||||||
|
|
||||||
uint32 value;
|
uint32 value;
|
||||||
};
|
};
|
||||||
} PACKED
|
} SVGAGMRImageFormat;
|
||||||
SVGAGMRImageFormat;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SVGAColorBGRX --
|
* SVGAColorBGRX --
|
||||||
|
@ -336,8 +333,7 @@ struct SVGAColorBGRX {
|
||||||
|
|
||||||
uint32 value;
|
uint32 value;
|
||||||
};
|
};
|
||||||
} PACKED
|
} SVGAColorBGRX;
|
||||||
SVGAColorBGRX;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -359,15 +355,13 @@ struct SVGASignedRect {
|
||||||
int32 top;
|
int32 top;
|
||||||
int32 right;
|
int32 right;
|
||||||
int32 bottom;
|
int32 bottom;
|
||||||
} PACKED
|
} SVGASignedRect;
|
||||||
SVGASignedRect;
|
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
struct SVGASignedPoint {
|
struct SVGASignedPoint {
|
||||||
int32 x;
|
int32 x;
|
||||||
int32 y;
|
int32 y;
|
||||||
} PACKED
|
} SVGASignedPoint;
|
||||||
SVGASignedPoint;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -854,8 +848,7 @@ struct SVGAScreenObject {
|
||||||
int32 x;
|
int32 x;
|
||||||
int32 y;
|
int32 y;
|
||||||
} root; // Only used if SVGA_SCREEN_HAS_ROOT is set.
|
} root; // Only used if SVGA_SCREEN_HAS_ROOT is set.
|
||||||
} PACKED
|
} SVGAScreenObject;
|
||||||
SVGAScreenObject;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -932,8 +925,7 @@ struct {
|
||||||
uint32 y;
|
uint32 y;
|
||||||
uint32 width;
|
uint32 width;
|
||||||
uint32 height;
|
uint32 height;
|
||||||
} PACKED
|
} SVGAFifoCmdUpdate;
|
||||||
SVGAFifoCmdUpdate;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -954,8 +946,7 @@ struct {
|
||||||
uint32 destY;
|
uint32 destY;
|
||||||
uint32 width;
|
uint32 width;
|
||||||
uint32 height;
|
uint32 height;
|
||||||
} PACKED
|
} SVGAFifoCmdRectCopy;
|
||||||
SVGAFifoCmdRectCopy;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -984,8 +975,7 @@ struct {
|
||||||
* Followed by scanline data for AND mask, then XOR mask.
|
* Followed by scanline data for AND mask, then XOR mask.
|
||||||
* Each scanline is padded to a 32-bit boundary.
|
* Each scanline is padded to a 32-bit boundary.
|
||||||
*/
|
*/
|
||||||
} PACKED
|
} SVGAFifoCmdDefineCursor;
|
||||||
SVGAFifoCmdDefineCursor;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1009,8 +999,7 @@ struct {
|
||||||
uint32 width;
|
uint32 width;
|
||||||
uint32 height;
|
uint32 height;
|
||||||
/* Followed by scanline data */
|
/* Followed by scanline data */
|
||||||
} PACKED
|
} SVGAFifoCmdDefineAlphaCursor;
|
||||||
SVGAFifoCmdDefineAlphaCursor;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1032,8 +1021,7 @@ struct {
|
||||||
uint32 width;
|
uint32 width;
|
||||||
uint32 height;
|
uint32 height;
|
||||||
uint32 reason;
|
uint32 reason;
|
||||||
} PACKED
|
} SVGAFifoCmdUpdateVerbose;
|
||||||
SVGAFifoCmdUpdateVerbose;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1059,8 +1047,7 @@ struct {
|
||||||
uint32 width;
|
uint32 width;
|
||||||
uint32 height;
|
uint32 height;
|
||||||
uint32 rop; // Must be SVGA_ROP_COPY
|
uint32 rop; // Must be SVGA_ROP_COPY
|
||||||
} PACKED
|
} SVGAFifoCmdFrontRopFill;
|
||||||
SVGAFifoCmdFrontRopFill;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1081,8 +1068,7 @@ SVGAFifoCmdFrontRopFill;
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 fence;
|
uint32 fence;
|
||||||
} PACKED
|
} SVGAFifoCmdFence;
|
||||||
SVGAFifoCmdFence;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1101,8 +1087,7 @@ struct {
|
||||||
uint32 nsid;
|
uint32 nsid;
|
||||||
uint32 size;
|
uint32 size;
|
||||||
/* followed by 'size' bytes of data */
|
/* followed by 'size' bytes of data */
|
||||||
} PACKED
|
} SVGAFifoCmdEscape;
|
||||||
SVGAFifoCmdEscape;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1134,8 +1119,7 @@ SVGAFifoCmdEscape;
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
SVGAScreenObject screen; // Variable-length according to version
|
SVGAScreenObject screen; // Variable-length according to version
|
||||||
} PACKED
|
} SVGAFifoCmdDefineScreen;
|
||||||
SVGAFifoCmdDefineScreen;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1151,8 +1135,7 @@ SVGAFifoCmdDefineScreen;
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
uint32 screenId;
|
uint32 screenId;
|
||||||
} PACKED
|
} SVGAFifoCmdDestroyScreen;
|
||||||
SVGAFifoCmdDestroyScreen;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1207,8 +1190,7 @@ struct {
|
||||||
SVGAGuestPtr ptr;
|
SVGAGuestPtr ptr;
|
||||||
uint32 bytesPerLine;
|
uint32 bytesPerLine;
|
||||||
SVGAGMRImageFormat format;
|
SVGAGMRImageFormat format;
|
||||||
} PACKED
|
} SVGAFifoCmdDefineGMRFB;
|
||||||
SVGAFifoCmdDefineGMRFB;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1245,8 +1227,7 @@ struct {
|
||||||
SVGASignedPoint srcOrigin;
|
SVGASignedPoint srcOrigin;
|
||||||
SVGASignedRect destRect;
|
SVGASignedRect destRect;
|
||||||
uint32 destScreenId;
|
uint32 destScreenId;
|
||||||
} PACKED
|
} SVGAFifoCmdBlitGMRFBToScreen;
|
||||||
SVGAFifoCmdBlitGMRFBToScreen;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1294,8 +1275,7 @@ struct {
|
||||||
SVGASignedPoint destOrigin;
|
SVGASignedPoint destOrigin;
|
||||||
SVGASignedRect srcRect;
|
SVGASignedRect srcRect;
|
||||||
uint32 srcScreenId;
|
uint32 srcScreenId;
|
||||||
} PACKED
|
} SVGAFifoCmdBlitScreenToGMRFB;
|
||||||
SVGAFifoCmdBlitScreenToGMRFB;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1328,8 +1308,7 @@ SVGAFifoCmdBlitScreenToGMRFB;
|
||||||
typedef
|
typedef
|
||||||
struct {
|
struct {
|
||||||
SVGAColorBGRX color;
|
SVGAColorBGRX color;
|
||||||
} PACKED
|
} SVGAFifoCmdAnnotationFill;
|
||||||
SVGAFifoCmdAnnotationFill;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1362,7 +1341,6 @@ typedef
|
||||||
struct {
|
struct {
|
||||||
SVGASignedPoint srcOrigin;
|
SVGASignedPoint srcOrigin;
|
||||||
uint32 srcScreenId;
|
uint32 srcScreenId;
|
||||||
} PACKED
|
} SVGAFifoCmdAnnotationCopy;
|
||||||
SVGAFifoCmdAnnotationCopy;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue