@@ -248,33 +248,33 @@ static const char *vmsvga_guest_id[] = {
enum {
SVGA_CMD_INVALID_CMD = 0,
SVGA_CMD_UPDATE = 1,
- SVGA_CMD_RECT_FILL = 2,
+ SVGA_CMD_RECT_FILL = 2, /* deprecated */
SVGA_CMD_RECT_COPY = 3,
- SVGA_CMD_DEFINE_BITMAP = 4,
- SVGA_CMD_DEFINE_BITMAP_SCANLINE = 5,
- SVGA_CMD_DEFINE_PIXMAP = 6,
- SVGA_CMD_DEFINE_PIXMAP_SCANLINE = 7,
- SVGA_CMD_RECT_BITMAP_FILL = 8,
- SVGA_CMD_RECT_PIXMAP_FILL = 9,
- SVGA_CMD_RECT_BITMAP_COPY = 10,
- SVGA_CMD_RECT_PIXMAP_COPY = 11,
- SVGA_CMD_FREE_OBJECT = 12,
- SVGA_CMD_RECT_ROP_FILL = 13,
- SVGA_CMD_RECT_ROP_COPY = 14,
- SVGA_CMD_RECT_ROP_BITMAP_FILL = 15,
- SVGA_CMD_RECT_ROP_PIXMAP_FILL = 16,
- SVGA_CMD_RECT_ROP_BITMAP_COPY = 17,
- SVGA_CMD_RECT_ROP_PIXMAP_COPY = 18,
+ SVGA_CMD_DEFINE_BITMAP = 4, /* deprecated */
+ SVGA_CMD_DEFINE_BITMAP_SCANLINE = 5, /* deprecated */
+ SVGA_CMD_DEFINE_PIXMAP = 6, /* deprecated */
+ SVGA_CMD_DEFINE_PIXMAP_SCANLINE = 7, /* deprecated */
+ SVGA_CMD_RECT_BITMAP_FILL = 8, /* deprecated */
+ SVGA_CMD_RECT_PIXMAP_FILL = 9, /* deprecated */
+ SVGA_CMD_RECT_BITMAP_COPY = 10, /* deprecated */
+ SVGA_CMD_RECT_PIXMAP_COPY = 11, /* deprecated */
+ SVGA_CMD_FREE_OBJECT = 12, /* deprecated */
+ SVGA_CMD_RECT_ROP_FILL = 13, /* deprecated */
+ SVGA_CMD_RECT_ROP_COPY = 14, /* deprecated */
+ SVGA_CMD_RECT_ROP_BITMAP_FILL = 15, /* deprecated */
+ SVGA_CMD_RECT_ROP_PIXMAP_FILL = 16, /* deprecated */
+ SVGA_CMD_RECT_ROP_BITMAP_COPY = 17, /* deprecated */
+ SVGA_CMD_RECT_ROP_PIXMAP_COPY = 18, /* deprecated */
SVGA_CMD_DEFINE_CURSOR = 19,
- SVGA_CMD_DISPLAY_CURSOR = 20,
- SVGA_CMD_MOVE_CURSOR = 21,
+ SVGA_CMD_DISPLAY_CURSOR = 20, /* deprecated */
+ SVGA_CMD_MOVE_CURSOR = 21, /* deprecated */
SVGA_CMD_DEFINE_ALPHA_CURSOR = 22,
- SVGA_CMD_DRAW_GLYPH = 23,
- SVGA_CMD_DRAW_GLYPH_CLIPPED = 24,
+ SVGA_CMD_DRAW_GLYPH = 23, /* deprecated */
+ SVGA_CMD_DRAW_GLYPH_CLIPPED = 24, /* deprecated */
SVGA_CMD_UPDATE_VERBOSE = 25,
- SVGA_CMD_SURFACE_FILL = 26,
- SVGA_CMD_SURFACE_COPY = 27,
- SVGA_CMD_SURFACE_ALPHA_BLEND = 28,
+ SVGA_CMD_SURFACE_FILL = 26, /* deprecated */
+ SVGA_CMD_SURFACE_COPY = 27, /* deprecated */
+ SVGA_CMD_SURFACE_ALPHA_BLEND = 28, /* deprecated */
SVGA_CMD_FRONT_ROP_FILL = 29,
SVGA_CMD_FENCE = 30,
};
@@ -692,7 +692,7 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s)
* If they are not encountered in real world scenarious, they should be
* completely removed.
*/
- case SVGA_CMD_RECT_FILL:
+ case SVGA_CMD_RECT_FILL: /* deprecated */
len -= 6;
if (len < 0) {
goto rewind;
@@ -715,10 +715,10 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s)
* Unimplemented commands that we gracefully skip their
* arguments so we can avoid FIFO desync
*/
- case SVGA_CMD_RECT_ROP_FILL:
+ case SVGA_CMD_RECT_ROP_FILL: /* deprecated */
args = 6;
goto badcmd;
- case SVGA_CMD_RECT_ROP_COPY:
+ case SVGA_CMD_RECT_ROP_COPY: /* deprecated */
args = 7;
goto badcmd;
case SVGA_CMD_DEFINE_ALPHA_CURSOR:
@@ -733,7 +733,7 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s)
y = vmsvga_fifo_read(s);
args = x * y;
goto badcmd;
- case SVGA_CMD_DRAW_GLYPH_CLIPPED:
+ case SVGA_CMD_DRAW_GLYPH_CLIPPED: /* deprecated */
len -= 4;
if (len < 0) {
goto rewind;
@@ -742,7 +742,7 @@ static void vmsvga_fifo_run(struct vmsvga_state_s *s)
vmsvga_fifo_read(s);
args = 7 + (vmsvga_fifo_read(s) >> 2);
goto badcmd;
- case SVGA_CMD_SURFACE_ALPHA_BLEND:
+ case SVGA_CMD_SURFACE_ALPHA_BLEND: /* deprecated */
args = 12;
goto badcmd;