Changeset 86905 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
- Timestamp:
- Nov 17, 2020 11:36:12 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
r86888 r86905 44 44 #if defined(LOG_ENABLED) || defined(VBOX_STRICT) 45 45 # define SVGA_CASE_ID2STR(idx) case idx: return #idx 46 /** 47 * FIFO command name lookup 48 * 49 * @returns FIFO command string or "UNKNOWN" 50 * @param u32Cmd FIFO command 51 */ 52 const char *vmsvgaR3FifoCmdToString(uint32_t u32Cmd) 53 { 54 switch (u32Cmd) 55 { 56 SVGA_CASE_ID2STR(SVGA_CMD_INVALID_CMD); 57 SVGA_CASE_ID2STR(SVGA_CMD_UPDATE); 58 SVGA_CASE_ID2STR(SVGA_CMD_RECT_FILL); 59 SVGA_CASE_ID2STR(SVGA_CMD_RECT_COPY); 60 SVGA_CASE_ID2STR(SVGA_CMD_RECT_ROP_COPY); 61 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_CURSOR); 62 SVGA_CASE_ID2STR(SVGA_CMD_DISPLAY_CURSOR); 63 SVGA_CASE_ID2STR(SVGA_CMD_MOVE_CURSOR); 64 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_ALPHA_CURSOR); 65 SVGA_CASE_ID2STR(SVGA_CMD_UPDATE_VERBOSE); 66 SVGA_CASE_ID2STR(SVGA_CMD_FRONT_ROP_FILL); 67 SVGA_CASE_ID2STR(SVGA_CMD_FENCE); 68 SVGA_CASE_ID2STR(SVGA_CMD_ESCAPE); 69 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_SCREEN); 70 SVGA_CASE_ID2STR(SVGA_CMD_DESTROY_SCREEN); 71 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_GMRFB); 72 SVGA_CASE_ID2STR(SVGA_CMD_BLIT_GMRFB_TO_SCREEN); 73 SVGA_CASE_ID2STR(SVGA_CMD_BLIT_SCREEN_TO_GMRFB); 74 SVGA_CASE_ID2STR(SVGA_CMD_ANNOTATION_FILL); 75 SVGA_CASE_ID2STR(SVGA_CMD_ANNOTATION_COPY); 76 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_GMR2); 77 SVGA_CASE_ID2STR(SVGA_CMD_REMAP_GMR2); 78 SVGA_CASE_ID2STR(SVGA_CMD_DEAD); 79 SVGA_CASE_ID2STR(SVGA_CMD_DEAD_2); 80 SVGA_CASE_ID2STR(SVGA_CMD_NOP); 81 SVGA_CASE_ID2STR(SVGA_CMD_NOP_ERROR); 82 SVGA_CASE_ID2STR(SVGA_CMD_MAX); 46 47 static const char *vmsvgaFifo3dCmdToString(SVGAFifo3dCmdId enmCmdId) 48 { 49 switch (enmCmdId) 50 { 51 SVGA_CASE_ID2STR(SVGA_3D_CMD_LEGACY_BASE); 83 52 SVGA_CASE_ID2STR(SVGA_3D_CMD_SURFACE_DEFINE); 84 53 SVGA_CASE_ID2STR(SVGA_3D_CMD_SURFACE_DESTROY); … … 113 82 SVGA_CASE_ID2STR(SVGA_3D_CMD_SURFACE_DEFINE_V2); 114 83 SVGA_CASE_ID2STR(SVGA_3D_CMD_GENERATE_MIPMAPS); 115 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_CREATE_DECODER);116 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_DESTROY_DECODER);117 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_CREATE_PROCESSOR);118 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_DESTROY_PROCESSOR);119 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_DECODE_START_FRAME);120 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_DECODE_RENDER);121 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_DECODE_END_FRAME);122 SVGA_CASE_ID2STR(SVGA_3D_CMD_ VIDEO_PROCESS_FRAME);84 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD4); /* SVGA_3D_CMD_VIDEO_CREATE_DECODER */ 85 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD5); /* SVGA_3D_CMD_VIDEO_DESTROY_DECODER */ 86 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD6); /* SVGA_3D_CMD_VIDEO_CREATE_PROCESSOR */ 87 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD7); /* SVGA_3D_CMD_VIDEO_DESTROY_PROCESSOR */ 88 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD8); /* SVGA_3D_CMD_VIDEO_DECODE_START_FRAME */ 89 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD9); /* SVGA_3D_CMD_VIDEO_DECODE_RENDER */ 90 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD10); /* SVGA_3D_CMD_VIDEO_DECODE_END_FRAME */ 91 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD11); /* SVGA_3D_CMD_VIDEO_PROCESS_FRAME */ 123 92 SVGA_CASE_ID2STR(SVGA_3D_CMD_ACTIVATE_SURFACE); 124 93 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEACTIVATE_SURFACE); … … 126 95 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD1); 127 96 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD2); 128 SVGA_CASE_ID2STR(SVGA_3D_CMD_ LOGICOPS_BITBLT);129 SVGA_CASE_ID2STR(SVGA_3D_CMD_ LOGICOPS_TRANSBLT);130 SVGA_CASE_ID2STR(SVGA_3D_CMD_ LOGICOPS_STRETCHBLT);131 SVGA_CASE_ID2STR(SVGA_3D_CMD_ LOGICOPS_COLORFILL);132 SVGA_CASE_ID2STR(SVGA_3D_CMD_ LOGICOPS_ALPHABLEND);133 SVGA_CASE_ID2STR(SVGA_3D_CMD_ LOGICOPS_CLEARTYPEBLEND);97 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD12); /* Old SVGA_3D_CMD_LOGICOPS_BITBLT */ 98 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD13); /* Old SVGA_3D_CMD_LOGICOPS_TRANSBLT */ 99 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD14); /* Old SVGA_3D_CMD_LOGICOPS_STRETCHBLT */ 100 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD15); /* Old SVGA_3D_CMD_LOGICOPS_COLORFILL */ 101 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD16); /* Old SVGA_3D_CMD_LOGICOPS_ALPHABLEND */ 102 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEAD17); /* Old SVGA_3D_CMD_LOGICOPS_CLEARTYPEBLEND */ 134 103 SVGA_CASE_ID2STR(SVGA_3D_CMD_SET_OTABLE_BASE); 135 104 SVGA_CASE_ID2STR(SVGA_3D_CMD_READBACK_OTABLE); … … 221 190 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_PRED_COPY_REGION); 222 191 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_PRED_COPY); 223 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_ STRETCHBLT);192 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_PRESENTBLT); 224 193 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_GENMIPS); 225 194 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_UPDATE_SUBRESOURCE); … … 264 233 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_PS_CONSTANT_BUFFER_OFFSET); 265 234 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_GS_CONSTANT_BUFFER_OFFSET); 266 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_ RESERVED1);267 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_ RESERVED2);268 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_ RESERVED3);235 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_HS_CONSTANT_BUFFER_OFFSET); 236 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_DS_CONSTANT_BUFFER_OFFSET); 237 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_CS_CONSTANT_BUFFER_OFFSET); 269 238 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_COND_BIND_ALL_SHADER); 270 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_MAX); 271 default: return "UNKNOWN"; 272 } 239 SVGA_CASE_ID2STR(SVGA_3D_CMD_SCREEN_COPY); 240 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED1); 241 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED2); 242 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED3); 243 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED4); 244 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED5); 245 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED6); 246 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED7); 247 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED8); 248 SVGA_CASE_ID2STR(SVGA_3D_CMD_GROW_OTABLE); 249 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_GROW_COTABLE); 250 SVGA_CASE_ID2STR(SVGA_3D_CMD_INTRA_SURFACE_COPY); 251 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEFINE_GB_SURFACE_V3); 252 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_RESOLVE_COPY); 253 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_PRED_RESOLVE_COPY); 254 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_PRED_CONVERT_REGION); 255 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_PRED_CONVERT); 256 SVGA_CASE_ID2STR(SVGA_3D_CMD_WHOLE_SURFACE_COPY); 257 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DEFINE_UA_VIEW); 258 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DESTROY_UA_VIEW); 259 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_CLEAR_UA_VIEW_UINT); 260 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_CLEAR_UA_VIEW_FLOAT); 261 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_COPY_STRUCTURE_COUNT); 262 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_UA_VIEWS); 263 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DRAW_INDEXED_INSTANCED_INDIRECT); 264 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DRAW_INSTANCED_INDIRECT); 265 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DISPATCH); 266 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DISPATCH_INDIRECT); 267 SVGA_CASE_ID2STR(SVGA_3D_CMD_WRITE_ZERO_SURFACE); 268 SVGA_CASE_ID2STR(SVGA_3D_CMD_HINT_ZERO_SURFACE); 269 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_TRANSFER_TO_BUFFER); 270 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_STRUCTURE_COUNT); 271 SVGA_CASE_ID2STR(SVGA_3D_CMD_LOGICOPS_BITBLT); 272 SVGA_CASE_ID2STR(SVGA_3D_CMD_LOGICOPS_TRANSBLT); 273 SVGA_CASE_ID2STR(SVGA_3D_CMD_LOGICOPS_STRETCHBLT); 274 SVGA_CASE_ID2STR(SVGA_3D_CMD_LOGICOPS_COLORFILL); 275 SVGA_CASE_ID2STR(SVGA_3D_CMD_LOGICOPS_ALPHABLEND); 276 SVGA_CASE_ID2STR(SVGA_3D_CMD_LOGICOPS_CLEARTYPEBLEND); 277 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED2_1); 278 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED2_2); 279 SVGA_CASE_ID2STR(SVGA_3D_CMD_DEFINE_GB_SURFACE_V4); 280 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_CS_UA_VIEWS); 281 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_MIN_LOD); 282 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED2_3); 283 SVGA_CASE_ID2STR(SVGA_3D_CMD_RESERVED2_4); 284 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DEFINE_DEPTHSTENCIL_VIEW_V2); 285 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_DEFINE_STREAMOUTPUT_WITH_MOB); 286 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_SET_SHADER_IFACE); 287 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_BIND_STREAMOUTPUT); 288 SVGA_CASE_ID2STR(SVGA_3D_CMD_SURFACE_STRETCHBLT_NON_MS_TO_MS); 289 SVGA_CASE_ID2STR(SVGA_3D_CMD_DX_BIND_SHADER_IFACE); 290 SVGA_CASE_ID2STR(SVGA_3D_CMD_MAX); 291 SVGA_CASE_ID2STR(SVGA_3D_CMD_FUTURE_MAX); 292 } 293 return "UNKNOWN_3D"; 294 } 295 296 /** 297 * FIFO command name lookup 298 * 299 * @returns FIFO command string or "UNKNOWN" 300 * @param u32Cmd FIFO command 301 */ 302 const char *vmsvgaR3FifoCmdToString(uint32_t u32Cmd) 303 { 304 switch (u32Cmd) 305 { 306 SVGA_CASE_ID2STR(SVGA_CMD_INVALID_CMD); 307 SVGA_CASE_ID2STR(SVGA_CMD_UPDATE); 308 SVGA_CASE_ID2STR(SVGA_CMD_RECT_FILL); 309 SVGA_CASE_ID2STR(SVGA_CMD_RECT_COPY); 310 SVGA_CASE_ID2STR(SVGA_CMD_RECT_ROP_COPY); 311 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_CURSOR); 312 SVGA_CASE_ID2STR(SVGA_CMD_DISPLAY_CURSOR); 313 SVGA_CASE_ID2STR(SVGA_CMD_MOVE_CURSOR); 314 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_ALPHA_CURSOR); 315 SVGA_CASE_ID2STR(SVGA_CMD_UPDATE_VERBOSE); 316 SVGA_CASE_ID2STR(SVGA_CMD_FRONT_ROP_FILL); 317 SVGA_CASE_ID2STR(SVGA_CMD_FENCE); 318 SVGA_CASE_ID2STR(SVGA_CMD_ESCAPE); 319 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_SCREEN); 320 SVGA_CASE_ID2STR(SVGA_CMD_DESTROY_SCREEN); 321 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_GMRFB); 322 SVGA_CASE_ID2STR(SVGA_CMD_BLIT_GMRFB_TO_SCREEN); 323 SVGA_CASE_ID2STR(SVGA_CMD_BLIT_SCREEN_TO_GMRFB); 324 SVGA_CASE_ID2STR(SVGA_CMD_ANNOTATION_FILL); 325 SVGA_CASE_ID2STR(SVGA_CMD_ANNOTATION_COPY); 326 SVGA_CASE_ID2STR(SVGA_CMD_DEFINE_GMR2); 327 SVGA_CASE_ID2STR(SVGA_CMD_REMAP_GMR2); 328 SVGA_CASE_ID2STR(SVGA_CMD_DEAD); 329 SVGA_CASE_ID2STR(SVGA_CMD_DEAD_2); 330 SVGA_CASE_ID2STR(SVGA_CMD_NOP); 331 SVGA_CASE_ID2STR(SVGA_CMD_NOP_ERROR); 332 SVGA_CASE_ID2STR(SVGA_CMD_MAX); 333 default: 334 if ( u32Cmd >= SVGA_3D_CMD_BASE 335 && u32Cmd < SVGA_3D_CMD_MAX) 336 return vmsvgaFifo3dCmdToString((SVGAFifo3dCmdId)u32Cmd); 337 } 338 return "UNKNOWN"; 273 339 } 274 340 # undef SVGA_CASE_ID2STR … … 1071 1137 RT_ZERO(entry); 1072 1138 entry.format = pCmd->format; 1073 entry.surface Flags = pCmd->surfaceFlags;1139 entry.surface1Flags = pCmd->surfaceFlags; 1074 1140 entry.numMipLevels = pCmd->numMipLevels; 1075 1141 entry.multisampleCount = pCmd->multisampleCount; … … 2002 2068 2003 2069 2004 /* SVGA_3D_CMD_DX_ STRETCHBLT 1180 */2005 static void vmsvga3dCmdDX StretchBlt(PVGASTATECC pThisCC, SVGA3dCmdDXStretchBlt const *pCmd)2006 { 2007 ASMBreakpoint(); 2008 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2009 if (pSvgaR3State->pFuncsDX) 2010 { 2011 RT_NOREF(pCmd); 2012 pSvgaR3State->pFuncsDX->pfnDX StretchBlt(pThisCC->svga.p3dState);2070 /* SVGA_3D_CMD_DX_PRESENTBLT 1180 */ 2071 static void vmsvga3dCmdDXPresentBlt(PVGASTATECC pThisCC, SVGA3dCmdDXPresentBlt const *pCmd) 2072 { 2073 ASMBreakpoint(); 2074 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2075 if (pSvgaR3State->pFuncsDX) 2076 { 2077 RT_NOREF(pCmd); 2078 pSvgaR3State->pFuncsDX->pfnDXPresentBlt(pThisCC->svga.p3dState); 2013 2079 } 2014 2080 } … … 2561 2627 2562 2628 2629 /* SVGA_3D_CMD_DX_SET_HS_CONSTANT_BUFFER_OFFSET 1223 */ 2630 static void vmsvga3dCmdDXSetHSConstantBufferOffset(PVGASTATECC pThisCC, SVGA3dCmdDXSetHSConstantBufferOffset const *pCmd) 2631 { 2632 ASMBreakpoint(); 2633 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2634 if (pSvgaR3State->pFuncsDX) 2635 { 2636 RT_NOREF(pCmd); 2637 pSvgaR3State->pFuncsDX->pfnDXSetHSConstantBufferOffset(pThisCC->svga.p3dState); 2638 } 2639 } 2640 2641 2642 /* SVGA_3D_CMD_DX_SET_DS_CONSTANT_BUFFER_OFFSET 1224 */ 2643 static void vmsvga3dCmdDXSetDSConstantBufferOffset(PVGASTATECC pThisCC, SVGA3dCmdDXSetDSConstantBufferOffset const *pCmd) 2644 { 2645 ASMBreakpoint(); 2646 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2647 if (pSvgaR3State->pFuncsDX) 2648 { 2649 RT_NOREF(pCmd); 2650 pSvgaR3State->pFuncsDX->pfnDXSetDSConstantBufferOffset(pThisCC->svga.p3dState); 2651 } 2652 } 2653 2654 2655 /* SVGA_3D_CMD_DX_SET_CS_CONSTANT_BUFFER_OFFSET 1225 */ 2656 static void vmsvga3dCmdDXSetCSConstantBufferOffset(PVGASTATECC pThisCC, SVGA3dCmdDXSetCSConstantBufferOffset const *pCmd) 2657 { 2658 ASMBreakpoint(); 2659 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2660 if (pSvgaR3State->pFuncsDX) 2661 { 2662 RT_NOREF(pCmd); 2663 pSvgaR3State->pFuncsDX->pfnDXSetCSConstantBufferOffset(pThisCC->svga.p3dState); 2664 } 2665 } 2666 2667 2563 2668 /* SVGA_3D_CMD_DX_COND_BIND_ALL_SHADER 1226 */ 2564 2669 static void vmsvga3dCmdDXCondBindAllShader(PVGASTATECC pThisCC, SVGA3dCmdDXCondBindAllShader const *pCmd) … … 2570 2675 RT_NOREF(pCmd); 2571 2676 pSvgaR3State->pFuncsDX->pfnDXCondBindAllShader(pThisCC->svga.p3dState); 2677 } 2678 } 2679 2680 2681 /* SVGA_3D_CMD_SCREEN_COPY 1227 */ 2682 static void vmsvga3dCmdScreenCopy(PVGASTATECC pThisCC, SVGA3dCmdScreenCopy const *pCmd) 2683 { 2684 ASMBreakpoint(); 2685 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2686 if (pSvgaR3State->pFuncsDX) 2687 { 2688 RT_NOREF(pCmd); 2689 pSvgaR3State->pFuncsDX->pfnScreenCopy(pThisCC->svga.p3dState); 2690 } 2691 } 2692 2693 2694 /* SVGA_3D_CMD_GROW_OTABLE 1236 */ 2695 static void vmsvga3dCmdGrowOTable(PVGASTATECC pThisCC, SVGA3dCmdGrowOTable const *pCmd) 2696 { 2697 ASMBreakpoint(); 2698 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2699 if (pSvgaR3State->pFuncsDX) 2700 { 2701 RT_NOREF(pCmd); 2702 pSvgaR3State->pFuncsDX->pfnGrowOTable(pThisCC->svga.p3dState); 2703 } 2704 } 2705 2706 2707 /* SVGA_3D_CMD_DX_GROW_COTABLE 1237 */ 2708 static void vmsvga3dCmdDXGrowCOTable(PVGASTATECC pThisCC, SVGA3dCmdDXGrowCOTable const *pCmd) 2709 { 2710 ASMBreakpoint(); 2711 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2712 if (pSvgaR3State->pFuncsDX) 2713 { 2714 RT_NOREF(pCmd); 2715 pSvgaR3State->pFuncsDX->pfnDXGrowCOTable(pThisCC->svga.p3dState); 2716 } 2717 } 2718 2719 2720 /* SVGA_3D_CMD_INTRA_SURFACE_COPY 1238 */ 2721 static void vmsvga3dCmdIntraSurfaceCopy(PVGASTATECC pThisCC, SVGA3dCmdIntraSurfaceCopy const *pCmd) 2722 { 2723 ASMBreakpoint(); 2724 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2725 if (pSvgaR3State->pFuncsDX) 2726 { 2727 RT_NOREF(pCmd); 2728 pSvgaR3State->pFuncsDX->pfnIntraSurfaceCopy(pThisCC->svga.p3dState); 2729 } 2730 } 2731 2732 2733 /* SVGA_3D_CMD_DEFINE_GB_SURFACE_V3 1239 */ 2734 static void vmsvga3dCmdDefineGBSurface_v3(PVGASTATECC pThisCC, SVGA3dCmdDefineGBSurface_v3 const *pCmd) 2735 { 2736 ASMBreakpoint(); 2737 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2738 if (pSvgaR3State->pFuncsDX) 2739 { 2740 RT_NOREF(pCmd); 2741 pSvgaR3State->pFuncsDX->pfnDefineGBSurface_v3(pThisCC->svga.p3dState); 2742 } 2743 } 2744 2745 2746 /* SVGA_3D_CMD_DX_RESOLVE_COPY 1240 */ 2747 static void vmsvga3dCmdDXResolveCopy(PVGASTATECC pThisCC, SVGA3dCmdDXResolveCopy const *pCmd) 2748 { 2749 ASMBreakpoint(); 2750 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2751 if (pSvgaR3State->pFuncsDX) 2752 { 2753 RT_NOREF(pCmd); 2754 pSvgaR3State->pFuncsDX->pfnDXResolveCopy(pThisCC->svga.p3dState); 2755 } 2756 } 2757 2758 2759 /* SVGA_3D_CMD_DX_PRED_RESOLVE_COPY 1241 */ 2760 static void vmsvga3dCmdDXPredResolveCopy(PVGASTATECC pThisCC, SVGA3dCmdDXPredResolveCopy const *pCmd) 2761 { 2762 ASMBreakpoint(); 2763 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2764 if (pSvgaR3State->pFuncsDX) 2765 { 2766 RT_NOREF(pCmd); 2767 pSvgaR3State->pFuncsDX->pfnDXPredResolveCopy(pThisCC->svga.p3dState); 2768 } 2769 } 2770 2771 2772 /* SVGA_3D_CMD_DX_PRED_CONVERT_REGION 1242 */ 2773 static void vmsvga3dCmdDXPredConvertRegion(PVGASTATECC pThisCC, SVGA3dCmdDXPredConvertRegion const *pCmd) 2774 { 2775 ASMBreakpoint(); 2776 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2777 if (pSvgaR3State->pFuncsDX) 2778 { 2779 RT_NOREF(pCmd); 2780 pSvgaR3State->pFuncsDX->pfnDXPredConvertRegion(pThisCC->svga.p3dState); 2781 } 2782 } 2783 2784 2785 /* SVGA_3D_CMD_DX_PRED_CONVERT 1243 */ 2786 static void vmsvga3dCmdDXPredConvert(PVGASTATECC pThisCC, SVGA3dCmdDXPredConvert const *pCmd) 2787 { 2788 ASMBreakpoint(); 2789 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2790 if (pSvgaR3State->pFuncsDX) 2791 { 2792 RT_NOREF(pCmd); 2793 pSvgaR3State->pFuncsDX->pfnDXPredConvert(pThisCC->svga.p3dState); 2794 } 2795 } 2796 2797 2798 /* SVGA_3D_CMD_WHOLE_SURFACE_COPY 1244 */ 2799 static void vmsvga3dCmdWholeSurfaceCopy(PVGASTATECC pThisCC, SVGA3dCmdWholeSurfaceCopy const *pCmd) 2800 { 2801 ASMBreakpoint(); 2802 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2803 if (pSvgaR3State->pFuncsDX) 2804 { 2805 RT_NOREF(pCmd); 2806 pSvgaR3State->pFuncsDX->pfnWholeSurfaceCopy(pThisCC->svga.p3dState); 2807 } 2808 } 2809 2810 2811 /* SVGA_3D_CMD_DX_DEFINE_UA_VIEW 1245 */ 2812 static void vmsvga3dCmdDXDefineUAView(PVGASTATECC pThisCC, SVGA3dCmdDXDefineUAView const *pCmd) 2813 { 2814 ASMBreakpoint(); 2815 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2816 if (pSvgaR3State->pFuncsDX) 2817 { 2818 RT_NOREF(pCmd); 2819 pSvgaR3State->pFuncsDX->pfnDXDefineUAView(pThisCC->svga.p3dState); 2820 } 2821 } 2822 2823 2824 /* SVGA_3D_CMD_DX_DESTROY_UA_VIEW 1246 */ 2825 static void vmsvga3dCmdDXDestroyUAView(PVGASTATECC pThisCC, SVGA3dCmdDXDestroyUAView const *pCmd) 2826 { 2827 ASMBreakpoint(); 2828 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2829 if (pSvgaR3State->pFuncsDX) 2830 { 2831 RT_NOREF(pCmd); 2832 pSvgaR3State->pFuncsDX->pfnDXDestroyUAView(pThisCC->svga.p3dState); 2833 } 2834 } 2835 2836 2837 /* SVGA_3D_CMD_DX_CLEAR_UA_VIEW_UINT 1247 */ 2838 static void vmsvga3dCmdDXClearUAViewUint(PVGASTATECC pThisCC, SVGA3dCmdDXClearUAViewUint const *pCmd) 2839 { 2840 ASMBreakpoint(); 2841 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2842 if (pSvgaR3State->pFuncsDX) 2843 { 2844 RT_NOREF(pCmd); 2845 pSvgaR3State->pFuncsDX->pfnDXClearUAViewUint(pThisCC->svga.p3dState); 2846 } 2847 } 2848 2849 2850 /* SVGA_3D_CMD_DX_CLEAR_UA_VIEW_FLOAT 1248 */ 2851 static void vmsvga3dCmdDXClearUAViewFloat(PVGASTATECC pThisCC, SVGA3dCmdDXClearUAViewFloat const *pCmd) 2852 { 2853 ASMBreakpoint(); 2854 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2855 if (pSvgaR3State->pFuncsDX) 2856 { 2857 RT_NOREF(pCmd); 2858 pSvgaR3State->pFuncsDX->pfnDXClearUAViewFloat(pThisCC->svga.p3dState); 2859 } 2860 } 2861 2862 2863 /* SVGA_3D_CMD_DX_COPY_STRUCTURE_COUNT 1249 */ 2864 static void vmsvga3dCmdDXCopyStructureCount(PVGASTATECC pThisCC, SVGA3dCmdDXCopyStructureCount const *pCmd) 2865 { 2866 ASMBreakpoint(); 2867 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2868 if (pSvgaR3State->pFuncsDX) 2869 { 2870 RT_NOREF(pCmd); 2871 pSvgaR3State->pFuncsDX->pfnDXCopyStructureCount(pThisCC->svga.p3dState); 2872 } 2873 } 2874 2875 2876 /* SVGA_3D_CMD_DX_SET_UA_VIEWS 1250 */ 2877 static void vmsvga3dCmdDXSetUAViews(PVGASTATECC pThisCC, SVGA3dCmdDXSetUAViews const *pCmd) 2878 { 2879 ASMBreakpoint(); 2880 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2881 if (pSvgaR3State->pFuncsDX) 2882 { 2883 RT_NOREF(pCmd); 2884 pSvgaR3State->pFuncsDX->pfnDXSetUAViews(pThisCC->svga.p3dState); 2885 } 2886 } 2887 2888 2889 /* SVGA_3D_CMD_DX_DRAW_INDEXED_INSTANCED_INDIRECT 1251 */ 2890 static void vmsvga3dCmdDXDrawIndexedInstancedIndirect(PVGASTATECC pThisCC, SVGA3dCmdDXDrawIndexedInstancedIndirect const *pCmd) 2891 { 2892 ASMBreakpoint(); 2893 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2894 if (pSvgaR3State->pFuncsDX) 2895 { 2896 RT_NOREF(pCmd); 2897 pSvgaR3State->pFuncsDX->pfnDXDrawIndexedInstancedIndirect(pThisCC->svga.p3dState); 2898 } 2899 } 2900 2901 2902 /* SVGA_3D_CMD_DX_DRAW_INSTANCED_INDIRECT 1252 */ 2903 static void vmsvga3dCmdDXDrawInstancedIndirect(PVGASTATECC pThisCC, SVGA3dCmdDXDrawInstancedIndirect const *pCmd) 2904 { 2905 ASMBreakpoint(); 2906 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2907 if (pSvgaR3State->pFuncsDX) 2908 { 2909 RT_NOREF(pCmd); 2910 pSvgaR3State->pFuncsDX->pfnDXDrawInstancedIndirect(pThisCC->svga.p3dState); 2911 } 2912 } 2913 2914 2915 /* SVGA_3D_CMD_DX_DISPATCH 1253 */ 2916 static void vmsvga3dCmdDXDispatch(PVGASTATECC pThisCC, SVGA3dCmdDXDispatch const *pCmd) 2917 { 2918 ASMBreakpoint(); 2919 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2920 if (pSvgaR3State->pFuncsDX) 2921 { 2922 RT_NOREF(pCmd); 2923 pSvgaR3State->pFuncsDX->pfnDXDispatch(pThisCC->svga.p3dState); 2924 } 2925 } 2926 2927 2928 /* SVGA_3D_CMD_DX_DISPATCH_INDIRECT 1254 */ 2929 static void vmsvga3dCmdDXDispatchIndirect(PVGASTATECC pThisCC, SVGA3dCmdDXDispatchIndirect const *pCmd) 2930 { 2931 ASMBreakpoint(); 2932 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2933 if (pSvgaR3State->pFuncsDX) 2934 { 2935 RT_NOREF(pCmd); 2936 pSvgaR3State->pFuncsDX->pfnDXDispatchIndirect(pThisCC->svga.p3dState); 2937 } 2938 } 2939 2940 2941 /* SVGA_3D_CMD_WRITE_ZERO_SURFACE 1255 */ 2942 static void vmsvga3dCmdWriteZeroSurface(PVGASTATECC pThisCC, SVGA3dCmdWriteZeroSurface const *pCmd) 2943 { 2944 ASMBreakpoint(); 2945 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2946 if (pSvgaR3State->pFuncsDX) 2947 { 2948 RT_NOREF(pCmd); 2949 pSvgaR3State->pFuncsDX->pfnWriteZeroSurface(pThisCC->svga.p3dState); 2950 } 2951 } 2952 2953 2954 /* SVGA_3D_CMD_HINT_ZERO_SURFACE 1256 */ 2955 static void vmsvga3dCmdHintZeroSurface(PVGASTATECC pThisCC, SVGA3dCmdHintZeroSurface const *pCmd) 2956 { 2957 ASMBreakpoint(); 2958 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2959 if (pSvgaR3State->pFuncsDX) 2960 { 2961 RT_NOREF(pCmd); 2962 pSvgaR3State->pFuncsDX->pfnHintZeroSurface(pThisCC->svga.p3dState); 2963 } 2964 } 2965 2966 2967 /* SVGA_3D_CMD_DX_TRANSFER_TO_BUFFER 1257 */ 2968 static void vmsvga3dCmdDXTransferToBuffer(PVGASTATECC pThisCC, SVGA3dCmdDXTransferToBuffer const *pCmd) 2969 { 2970 ASMBreakpoint(); 2971 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2972 if (pSvgaR3State->pFuncsDX) 2973 { 2974 RT_NOREF(pCmd); 2975 pSvgaR3State->pFuncsDX->pfnDXTransferToBuffer(pThisCC->svga.p3dState); 2976 } 2977 } 2978 2979 2980 /* SVGA_3D_CMD_DX_SET_STRUCTURE_COUNT 1258 */ 2981 static void vmsvga3dCmdDXSetStructureCount(PVGASTATECC pThisCC, SVGA3dCmdDXSetStructureCount const *pCmd) 2982 { 2983 ASMBreakpoint(); 2984 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2985 if (pSvgaR3State->pFuncsDX) 2986 { 2987 RT_NOREF(pCmd); 2988 pSvgaR3State->pFuncsDX->pfnDXSetStructureCount(pThisCC->svga.p3dState); 2989 } 2990 } 2991 2992 2993 /* SVGA_3D_CMD_LOGICOPS_BITBLT 1259 */ 2994 static void vmsvga3dCmdLogicOpsBitBlt(PVGASTATECC pThisCC, SVGA3dCmdLogicOpsBitBlt const *pCmd) 2995 { 2996 ASMBreakpoint(); 2997 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2998 if (pSvgaR3State->pFuncsDX) 2999 { 3000 RT_NOREF(pCmd); 3001 pSvgaR3State->pFuncsDX->pfnLogicOpsBitBlt(pThisCC->svga.p3dState); 3002 } 3003 } 3004 3005 3006 /* SVGA_3D_CMD_LOGICOPS_TRANSBLT 1260 */ 3007 static void vmsvga3dCmdLogicOpsTransBlt(PVGASTATECC pThisCC, SVGA3dCmdLogicOpsTransBlt const *pCmd) 3008 { 3009 ASMBreakpoint(); 3010 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3011 if (pSvgaR3State->pFuncsDX) 3012 { 3013 RT_NOREF(pCmd); 3014 pSvgaR3State->pFuncsDX->pfnLogicOpsTransBlt(pThisCC->svga.p3dState); 3015 } 3016 } 3017 3018 3019 /* SVGA_3D_CMD_LOGICOPS_STRETCHBLT 1261 */ 3020 static void vmsvga3dCmdLogicOpsStretchBlt(PVGASTATECC pThisCC, SVGA3dCmdLogicOpsStretchBlt const *pCmd) 3021 { 3022 ASMBreakpoint(); 3023 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3024 if (pSvgaR3State->pFuncsDX) 3025 { 3026 RT_NOREF(pCmd); 3027 pSvgaR3State->pFuncsDX->pfnLogicOpsStretchBlt(pThisCC->svga.p3dState); 3028 } 3029 } 3030 3031 3032 /* SVGA_3D_CMD_LOGICOPS_COLORFILL 1262 */ 3033 static void vmsvga3dCmdLogicOpsColorFill(PVGASTATECC pThisCC, SVGA3dCmdLogicOpsColorFill const *pCmd) 3034 { 3035 ASMBreakpoint(); 3036 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3037 if (pSvgaR3State->pFuncsDX) 3038 { 3039 RT_NOREF(pCmd); 3040 pSvgaR3State->pFuncsDX->pfnLogicOpsColorFill(pThisCC->svga.p3dState); 3041 } 3042 } 3043 3044 3045 /* SVGA_3D_CMD_LOGICOPS_ALPHABLEND 1263 */ 3046 static void vmsvga3dCmdLogicOpsAlphaBlend(PVGASTATECC pThisCC, SVGA3dCmdLogicOpsAlphaBlend const *pCmd) 3047 { 3048 ASMBreakpoint(); 3049 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3050 if (pSvgaR3State->pFuncsDX) 3051 { 3052 RT_NOREF(pCmd); 3053 pSvgaR3State->pFuncsDX->pfnLogicOpsAlphaBlend(pThisCC->svga.p3dState); 3054 } 3055 } 3056 3057 3058 /* SVGA_3D_CMD_LOGICOPS_CLEARTYPEBLEND 1264 */ 3059 static void vmsvga3dCmdLogicOpsClearTypeBlend(PVGASTATECC pThisCC, SVGA3dCmdLogicOpsClearTypeBlend const *pCmd) 3060 { 3061 ASMBreakpoint(); 3062 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3063 if (pSvgaR3State->pFuncsDX) 3064 { 3065 RT_NOREF(pCmd); 3066 pSvgaR3State->pFuncsDX->pfnLogicOpsClearTypeBlend(pThisCC->svga.p3dState); 3067 } 3068 } 3069 3070 3071 /* SVGA_3D_CMD_DEFINE_GB_SURFACE_V4 1267 */ 3072 static void vmsvga3dCmdDefineGBSurface_v4(PVGASTATECC pThisCC, SVGA3dCmdDefineGBSurface_v4 const *pCmd) 3073 { 3074 ASMBreakpoint(); 3075 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3076 if (pSvgaR3State->pFuncsDX) 3077 { 3078 RT_NOREF(pCmd); 3079 pSvgaR3State->pFuncsDX->pfnDefineGBSurface_v4(pThisCC->svga.p3dState); 3080 } 3081 } 3082 3083 3084 /* SVGA_3D_CMD_DX_SET_CS_UA_VIEWS 1268 */ 3085 static void vmsvga3dCmdDXSetCSUAViews(PVGASTATECC pThisCC, SVGA3dCmdDXSetCSUAViews const *pCmd) 3086 { 3087 ASMBreakpoint(); 3088 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3089 if (pSvgaR3State->pFuncsDX) 3090 { 3091 RT_NOREF(pCmd); 3092 pSvgaR3State->pFuncsDX->pfnDXSetCSUAViews(pThisCC->svga.p3dState); 3093 } 3094 } 3095 3096 3097 /* SVGA_3D_CMD_DX_SET_MIN_LOD 1269 */ 3098 static void vmsvga3dCmdDXSetMinLOD(PVGASTATECC pThisCC, SVGA3dCmdDXSetMinLOD const *pCmd) 3099 { 3100 ASMBreakpoint(); 3101 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3102 if (pSvgaR3State->pFuncsDX) 3103 { 3104 RT_NOREF(pCmd); 3105 pSvgaR3State->pFuncsDX->pfnDXSetMinLOD(pThisCC->svga.p3dState); 3106 } 3107 } 3108 3109 3110 /* SVGA_3D_CMD_DX_DEFINE_DEPTHSTENCIL_VIEW_V2 1272 */ 3111 static void vmsvga3dCmdDXDefineDepthStencilView_v2(PVGASTATECC pThisCC, SVGA3dCmdDXDefineDepthStencilView_v2 const *pCmd) 3112 { 3113 ASMBreakpoint(); 3114 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3115 if (pSvgaR3State->pFuncsDX) 3116 { 3117 RT_NOREF(pCmd); 3118 pSvgaR3State->pFuncsDX->pfnDXDefineDepthStencilView_v2(pThisCC->svga.p3dState); 3119 } 3120 } 3121 3122 3123 /* SVGA_3D_CMD_DX_DEFINE_STREAMOUTPUT_WITH_MOB 1273 */ 3124 static void vmsvga3dCmdDXDefineStreamOutputWithMob(PVGASTATECC pThisCC, SVGA3dCmdDXDefineStreamOutputWithMob const *pCmd) 3125 { 3126 ASMBreakpoint(); 3127 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3128 if (pSvgaR3State->pFuncsDX) 3129 { 3130 RT_NOREF(pCmd); 3131 pSvgaR3State->pFuncsDX->pfnDXDefineStreamOutputWithMob(pThisCC->svga.p3dState); 3132 } 3133 } 3134 3135 3136 /* SVGA_3D_CMD_DX_SET_SHADER_IFACE 1274 */ 3137 static void vmsvga3dCmdDXSetShaderIface(PVGASTATECC pThisCC, SVGA3dCmdDXSetShaderIface const *pCmd) 3138 { 3139 ASMBreakpoint(); 3140 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3141 if (pSvgaR3State->pFuncsDX) 3142 { 3143 RT_NOREF(pCmd); 3144 pSvgaR3State->pFuncsDX->pfnDXSetShaderIface(pThisCC->svga.p3dState); 3145 } 3146 } 3147 3148 3149 /* SVGA_3D_CMD_DX_BIND_STREAMOUTPUT 1275 */ 3150 static void vmsvga3dCmdDXBindStreamOutput(PVGASTATECC pThisCC, SVGA3dCmdDXBindStreamOutput const *pCmd) 3151 { 3152 ASMBreakpoint(); 3153 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3154 if (pSvgaR3State->pFuncsDX) 3155 { 3156 RT_NOREF(pCmd); 3157 pSvgaR3State->pFuncsDX->pfnDXBindStreamOutput(pThisCC->svga.p3dState); 3158 } 3159 } 3160 3161 3162 /* SVGA_3D_CMD_SURFACE_STRETCHBLT_NON_MS_TO_MS 1276 */ 3163 static void vmsvga3dCmdSurfaceStretchBltNonMSToMS(PVGASTATECC pThisCC, SVGA3dCmdSurfaceStretchBltNonMSToMS const *pCmd) 3164 { 3165 ASMBreakpoint(); 3166 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3167 if (pSvgaR3State->pFuncsDX) 3168 { 3169 RT_NOREF(pCmd); 3170 pSvgaR3State->pFuncsDX->pfnSurfaceStretchBltNonMSToMS(pThisCC->svga.p3dState); 3171 } 3172 } 3173 3174 3175 /* SVGA_3D_CMD_DX_BIND_SHADER_IFACE 1277 */ 3176 static void vmsvga3dCmdDXBindShaderIface(PVGASTATECC pThisCC, SVGA3dCmdDXBindShaderIface const *pCmd) 3177 { 3178 ASMBreakpoint(); 3179 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3180 if (pSvgaR3State->pFuncsDX) 3181 { 3182 RT_NOREF(pCmd); 3183 pSvgaR3State->pFuncsDX->pfnDXBindShaderIface(pThisCC->svga.p3dState); 2572 3184 } 2573 3185 } … … 3043 3655 case SVGA_3D_CMD_DEAD1: 3044 3656 case SVGA_3D_CMD_DEAD2: 3657 case SVGA_3D_CMD_DEAD12: /* Old SVGA_3D_CMD_LOGICOPS_BITBLT */ 3658 case SVGA_3D_CMD_DEAD13: /* Old SVGA_3D_CMD_LOGICOPS_TRANSBLT */ 3659 case SVGA_3D_CMD_DEAD14: /* Old SVGA_3D_CMD_LOGICOPS_STRETCHBLT */ 3660 case SVGA_3D_CMD_DEAD15: /* Old SVGA_3D_CMD_LOGICOPS_COLORFILL */ 3661 case SVGA_3D_CMD_DEAD16: /* Old SVGA_3D_CMD_LOGICOPS_ALPHABLEND */ 3662 case SVGA_3D_CMD_DEAD17: /* Old SVGA_3D_CMD_LOGICOPS_CLEARTYPEBLEND */ 3045 3663 { 3046 3664 VMSVGA_3D_CMD_NOTIMPL(); 3047 break;3048 }3049 3050 case SVGA_3D_CMD_LOGICOPS_BITBLT:3051 {3052 SVGA3dCmdLogicOpsBitBlt *pCmd = (SVGA3dCmdLogicOpsBitBlt *)pvCmd;3053 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd));3054 VMSVGA_3D_CMD_NOTIMPL(); RT_NOREF(pCmd);3055 break;3056 }3057 3058 case SVGA_3D_CMD_LOGICOPS_TRANSBLT:3059 {3060 SVGA3dCmdLogicOpsTransBlt *pCmd = (SVGA3dCmdLogicOpsTransBlt *)pvCmd;3061 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd));3062 VMSVGA_3D_CMD_NOTIMPL(); RT_NOREF(pCmd);3063 break;3064 }3065 3066 case SVGA_3D_CMD_LOGICOPS_STRETCHBLT:3067 {3068 SVGA3dCmdLogicOpsStretchBlt *pCmd = (SVGA3dCmdLogicOpsStretchBlt *)pvCmd;3069 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd));3070 VMSVGA_3D_CMD_NOTIMPL(); RT_NOREF(pCmd);3071 break;3072 }3073 3074 case SVGA_3D_CMD_LOGICOPS_COLORFILL:3075 {3076 SVGA3dCmdLogicOpsColorFill *pCmd = (SVGA3dCmdLogicOpsColorFill *)pvCmd;3077 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd));3078 VMSVGA_3D_CMD_NOTIMPL(); RT_NOREF(pCmd);3079 break;3080 }3081 3082 case SVGA_3D_CMD_LOGICOPS_ALPHABLEND:3083 {3084 SVGA3dCmdLogicOpsAlphaBlend *pCmd = (SVGA3dCmdLogicOpsAlphaBlend *)pvCmd;3085 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd));3086 VMSVGA_3D_CMD_NOTIMPL(); RT_NOREF(pCmd);3087 break;3088 }3089 3090 case SVGA_3D_CMD_LOGICOPS_CLEARTYPEBLEND:3091 {3092 SVGA3dCmdLogicOpsClearTypeBlend *pCmd = (SVGA3dCmdLogicOpsClearTypeBlend *)pvCmd;3093 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd));3094 VMSVGA_3D_CMD_NOTIMPL(); RT_NOREF(pCmd);3095 3665 break; 3096 3666 } … … 3800 4370 } 3801 4371 3802 case SVGA_3D_CMD_DX_ STRETCHBLT:3803 { 3804 SVGA3dCmdDX StretchBlt *pCmd = (SVGA3dCmdDXStretchBlt *)pvCmd;3805 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 3806 vmsvga3dCmdDX StretchBlt(pThisCC, pCmd);4372 case SVGA_3D_CMD_DX_PRESENTBLT: 4373 { 4374 SVGA3dCmdDXPresentBlt *pCmd = (SVGA3dCmdDXPresentBlt *)pvCmd; 4375 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4376 vmsvga3dCmdDXPresentBlt(pThisCC, pCmd); 3807 4377 break; 3808 4378 } … … 4144 4714 } 4145 4715 4146 case SVGA_3D_CMD_DX_RESERVED1: 4716 case SVGA_3D_CMD_DX_SET_HS_CONSTANT_BUFFER_OFFSET: 4717 { 4718 SVGA3dCmdDXSetHSConstantBufferOffset *pCmd = (SVGA3dCmdDXSetHSConstantBufferOffset *)pvCmd; 4719 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4720 vmsvga3dCmdDXSetHSConstantBufferOffset(pThisCC, pCmd); 4721 break; 4722 } 4723 4724 case SVGA_3D_CMD_DX_SET_DS_CONSTANT_BUFFER_OFFSET: 4725 { 4726 SVGA3dCmdDXSetDSConstantBufferOffset *pCmd = (SVGA3dCmdDXSetDSConstantBufferOffset *)pvCmd; 4727 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4728 vmsvga3dCmdDXSetDSConstantBufferOffset(pThisCC, pCmd); 4729 break; 4730 } 4731 4732 case SVGA_3D_CMD_DX_SET_CS_CONSTANT_BUFFER_OFFSET: 4733 { 4734 SVGA3dCmdDXSetCSConstantBufferOffset *pCmd = (SVGA3dCmdDXSetCSConstantBufferOffset *)pvCmd; 4735 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4736 vmsvga3dCmdDXSetCSConstantBufferOffset(pThisCC, pCmd); 4737 break; 4738 } 4739 4740 case SVGA_3D_CMD_DX_COND_BIND_ALL_SHADER: 4741 { 4742 SVGA3dCmdDXCondBindAllShader *pCmd = (SVGA3dCmdDXCondBindAllShader *)pvCmd; 4743 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4744 vmsvga3dCmdDXCondBindAllShader(pThisCC, pCmd); 4745 break; 4746 } 4747 4748 case SVGA_3D_CMD_SCREEN_COPY: 4749 { 4750 SVGA3dCmdScreenCopy *pCmd = (SVGA3dCmdScreenCopy *)pvCmd; 4751 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4752 vmsvga3dCmdScreenCopy(pThisCC, pCmd); 4753 break; 4754 } 4755 4756 case SVGA_3D_CMD_RESERVED1: 4147 4757 { 4148 4758 VMSVGA_3D_CMD_NOTIMPL(); … … 4150 4760 } 4151 4761 4152 case SVGA_3D_CMD_ DX_RESERVED2:4762 case SVGA_3D_CMD_RESERVED2: 4153 4763 { 4154 4764 VMSVGA_3D_CMD_NOTIMPL(); … … 4156 4766 } 4157 4767 4158 case SVGA_3D_CMD_ DX_RESERVED3:4768 case SVGA_3D_CMD_RESERVED3: 4159 4769 { 4160 4770 VMSVGA_3D_CMD_NOTIMPL(); … … 4162 4772 } 4163 4773 4164 case SVGA_3D_CMD_DX_COND_BIND_ALL_SHADER: 4165 { 4166 SVGA3dCmdDXCondBindAllShader *pCmd = (SVGA3dCmdDXCondBindAllShader *)pvCmd; 4167 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4168 vmsvga3dCmdDXCondBindAllShader(pThisCC, pCmd); 4774 case SVGA_3D_CMD_RESERVED4: 4775 { 4776 VMSVGA_3D_CMD_NOTIMPL(); 4777 break; 4778 } 4779 4780 case SVGA_3D_CMD_RESERVED5: 4781 { 4782 VMSVGA_3D_CMD_NOTIMPL(); 4783 break; 4784 } 4785 4786 case SVGA_3D_CMD_RESERVED6: 4787 { 4788 VMSVGA_3D_CMD_NOTIMPL(); 4789 break; 4790 } 4791 4792 case SVGA_3D_CMD_RESERVED7: 4793 { 4794 VMSVGA_3D_CMD_NOTIMPL(); 4795 break; 4796 } 4797 4798 case SVGA_3D_CMD_RESERVED8: 4799 { 4800 VMSVGA_3D_CMD_NOTIMPL(); 4801 break; 4802 } 4803 4804 case SVGA_3D_CMD_GROW_OTABLE: 4805 { 4806 SVGA3dCmdGrowOTable *pCmd = (SVGA3dCmdGrowOTable *)pvCmd; 4807 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4808 vmsvga3dCmdGrowOTable(pThisCC, pCmd); 4809 break; 4810 } 4811 4812 case SVGA_3D_CMD_DX_GROW_COTABLE: 4813 { 4814 SVGA3dCmdDXGrowCOTable *pCmd = (SVGA3dCmdDXGrowCOTable *)pvCmd; 4815 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4816 vmsvga3dCmdDXGrowCOTable(pThisCC, pCmd); 4817 break; 4818 } 4819 4820 case SVGA_3D_CMD_INTRA_SURFACE_COPY: 4821 { 4822 SVGA3dCmdIntraSurfaceCopy *pCmd = (SVGA3dCmdIntraSurfaceCopy *)pvCmd; 4823 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4824 vmsvga3dCmdIntraSurfaceCopy(pThisCC, pCmd); 4825 break; 4826 } 4827 4828 case SVGA_3D_CMD_DEFINE_GB_SURFACE_V3: 4829 { 4830 SVGA3dCmdDefineGBSurface_v3 *pCmd = (SVGA3dCmdDefineGBSurface_v3 *)pvCmd; 4831 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4832 vmsvga3dCmdDefineGBSurface_v3(pThisCC, pCmd); 4833 break; 4834 } 4835 4836 case SVGA_3D_CMD_DX_RESOLVE_COPY: 4837 { 4838 SVGA3dCmdDXResolveCopy *pCmd = (SVGA3dCmdDXResolveCopy *)pvCmd; 4839 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4840 vmsvga3dCmdDXResolveCopy(pThisCC, pCmd); 4841 break; 4842 } 4843 4844 case SVGA_3D_CMD_DX_PRED_RESOLVE_COPY: 4845 { 4846 SVGA3dCmdDXPredResolveCopy *pCmd = (SVGA3dCmdDXPredResolveCopy *)pvCmd; 4847 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4848 vmsvga3dCmdDXPredResolveCopy(pThisCC, pCmd); 4849 break; 4850 } 4851 4852 case SVGA_3D_CMD_DX_PRED_CONVERT_REGION: 4853 { 4854 SVGA3dCmdDXPredConvertRegion *pCmd = (SVGA3dCmdDXPredConvertRegion *)pvCmd; 4855 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4856 vmsvga3dCmdDXPredConvertRegion(pThisCC, pCmd); 4857 break; 4858 } 4859 4860 case SVGA_3D_CMD_DX_PRED_CONVERT: 4861 { 4862 SVGA3dCmdDXPredConvert *pCmd = (SVGA3dCmdDXPredConvert *)pvCmd; 4863 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4864 vmsvga3dCmdDXPredConvert(pThisCC, pCmd); 4865 break; 4866 } 4867 4868 case SVGA_3D_CMD_WHOLE_SURFACE_COPY: 4869 { 4870 SVGA3dCmdWholeSurfaceCopy *pCmd = (SVGA3dCmdWholeSurfaceCopy *)pvCmd; 4871 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4872 vmsvga3dCmdWholeSurfaceCopy(pThisCC, pCmd); 4873 break; 4874 } 4875 4876 case SVGA_3D_CMD_DX_DEFINE_UA_VIEW: 4877 { 4878 SVGA3dCmdDXDefineUAView *pCmd = (SVGA3dCmdDXDefineUAView *)pvCmd; 4879 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4880 vmsvga3dCmdDXDefineUAView(pThisCC, pCmd); 4881 break; 4882 } 4883 4884 case SVGA_3D_CMD_DX_DESTROY_UA_VIEW: 4885 { 4886 SVGA3dCmdDXDestroyUAView *pCmd = (SVGA3dCmdDXDestroyUAView *)pvCmd; 4887 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4888 vmsvga3dCmdDXDestroyUAView(pThisCC, pCmd); 4889 break; 4890 } 4891 4892 case SVGA_3D_CMD_DX_CLEAR_UA_VIEW_UINT: 4893 { 4894 SVGA3dCmdDXClearUAViewUint *pCmd = (SVGA3dCmdDXClearUAViewUint *)pvCmd; 4895 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4896 vmsvga3dCmdDXClearUAViewUint(pThisCC, pCmd); 4897 break; 4898 } 4899 4900 case SVGA_3D_CMD_DX_CLEAR_UA_VIEW_FLOAT: 4901 { 4902 SVGA3dCmdDXClearUAViewFloat *pCmd = (SVGA3dCmdDXClearUAViewFloat *)pvCmd; 4903 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4904 vmsvga3dCmdDXClearUAViewFloat(pThisCC, pCmd); 4905 break; 4906 } 4907 4908 case SVGA_3D_CMD_DX_COPY_STRUCTURE_COUNT: 4909 { 4910 SVGA3dCmdDXCopyStructureCount *pCmd = (SVGA3dCmdDXCopyStructureCount *)pvCmd; 4911 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4912 vmsvga3dCmdDXCopyStructureCount(pThisCC, pCmd); 4913 break; 4914 } 4915 4916 case SVGA_3D_CMD_DX_SET_UA_VIEWS: 4917 { 4918 SVGA3dCmdDXSetUAViews *pCmd = (SVGA3dCmdDXSetUAViews *)pvCmd; 4919 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4920 vmsvga3dCmdDXSetUAViews(pThisCC, pCmd); 4921 break; 4922 } 4923 4924 case SVGA_3D_CMD_DX_DRAW_INDEXED_INSTANCED_INDIRECT: 4925 { 4926 SVGA3dCmdDXDrawIndexedInstancedIndirect *pCmd = (SVGA3dCmdDXDrawIndexedInstancedIndirect *)pvCmd; 4927 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4928 vmsvga3dCmdDXDrawIndexedInstancedIndirect(pThisCC, pCmd); 4929 break; 4930 } 4931 4932 case SVGA_3D_CMD_DX_DRAW_INSTANCED_INDIRECT: 4933 { 4934 SVGA3dCmdDXDrawInstancedIndirect *pCmd = (SVGA3dCmdDXDrawInstancedIndirect *)pvCmd; 4935 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4936 vmsvga3dCmdDXDrawInstancedIndirect(pThisCC, pCmd); 4937 break; 4938 } 4939 4940 case SVGA_3D_CMD_DX_DISPATCH: 4941 { 4942 SVGA3dCmdDXDispatch *pCmd = (SVGA3dCmdDXDispatch *)pvCmd; 4943 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4944 vmsvga3dCmdDXDispatch(pThisCC, pCmd); 4945 break; 4946 } 4947 4948 case SVGA_3D_CMD_DX_DISPATCH_INDIRECT: 4949 { 4950 SVGA3dCmdDXDispatchIndirect *pCmd = (SVGA3dCmdDXDispatchIndirect *)pvCmd; 4951 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4952 vmsvga3dCmdDXDispatchIndirect(pThisCC, pCmd); 4953 break; 4954 } 4955 4956 case SVGA_3D_CMD_WRITE_ZERO_SURFACE: 4957 { 4958 SVGA3dCmdWriteZeroSurface *pCmd = (SVGA3dCmdWriteZeroSurface *)pvCmd; 4959 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4960 vmsvga3dCmdWriteZeroSurface(pThisCC, pCmd); 4961 break; 4962 } 4963 4964 case SVGA_3D_CMD_HINT_ZERO_SURFACE: 4965 { 4966 SVGA3dCmdHintZeroSurface *pCmd = (SVGA3dCmdHintZeroSurface *)pvCmd; 4967 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4968 vmsvga3dCmdHintZeroSurface(pThisCC, pCmd); 4969 break; 4970 } 4971 4972 case SVGA_3D_CMD_DX_TRANSFER_TO_BUFFER: 4973 { 4974 SVGA3dCmdDXTransferToBuffer *pCmd = (SVGA3dCmdDXTransferToBuffer *)pvCmd; 4975 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4976 vmsvga3dCmdDXTransferToBuffer(pThisCC, pCmd); 4977 break; 4978 } 4979 4980 case SVGA_3D_CMD_DX_SET_STRUCTURE_COUNT: 4981 { 4982 SVGA3dCmdDXSetStructureCount *pCmd = (SVGA3dCmdDXSetStructureCount *)pvCmd; 4983 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4984 vmsvga3dCmdDXSetStructureCount(pThisCC, pCmd); 4985 break; 4986 } 4987 4988 case SVGA_3D_CMD_LOGICOPS_BITBLT: 4989 { 4990 SVGA3dCmdLogicOpsBitBlt *pCmd = (SVGA3dCmdLogicOpsBitBlt *)pvCmd; 4991 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 4992 vmsvga3dCmdLogicOpsBitBlt(pThisCC, pCmd); 4993 break; 4994 } 4995 4996 case SVGA_3D_CMD_LOGICOPS_TRANSBLT: 4997 { 4998 SVGA3dCmdLogicOpsTransBlt *pCmd = (SVGA3dCmdLogicOpsTransBlt *)pvCmd; 4999 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5000 vmsvga3dCmdLogicOpsTransBlt(pThisCC, pCmd); 5001 break; 5002 } 5003 5004 case SVGA_3D_CMD_LOGICOPS_STRETCHBLT: 5005 { 5006 SVGA3dCmdLogicOpsStretchBlt *pCmd = (SVGA3dCmdLogicOpsStretchBlt *)pvCmd; 5007 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5008 vmsvga3dCmdLogicOpsStretchBlt(pThisCC, pCmd); 5009 break; 5010 } 5011 5012 case SVGA_3D_CMD_LOGICOPS_COLORFILL: 5013 { 5014 SVGA3dCmdLogicOpsColorFill *pCmd = (SVGA3dCmdLogicOpsColorFill *)pvCmd; 5015 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5016 vmsvga3dCmdLogicOpsColorFill(pThisCC, pCmd); 5017 break; 5018 } 5019 5020 case SVGA_3D_CMD_LOGICOPS_ALPHABLEND: 5021 { 5022 SVGA3dCmdLogicOpsAlphaBlend *pCmd = (SVGA3dCmdLogicOpsAlphaBlend *)pvCmd; 5023 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5024 vmsvga3dCmdLogicOpsAlphaBlend(pThisCC, pCmd); 5025 break; 5026 } 5027 5028 case SVGA_3D_CMD_LOGICOPS_CLEARTYPEBLEND: 5029 { 5030 SVGA3dCmdLogicOpsClearTypeBlend *pCmd = (SVGA3dCmdLogicOpsClearTypeBlend *)pvCmd; 5031 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5032 vmsvga3dCmdLogicOpsClearTypeBlend(pThisCC, pCmd); 5033 break; 5034 } 5035 5036 case SVGA_3D_CMD_RESERVED2_1: 5037 { 5038 VMSVGA_3D_CMD_NOTIMPL(); 5039 break; 5040 } 5041 5042 case SVGA_3D_CMD_RESERVED2_2: 5043 { 5044 VMSVGA_3D_CMD_NOTIMPL(); 5045 break; 5046 } 5047 5048 case SVGA_3D_CMD_DEFINE_GB_SURFACE_V4: 5049 { 5050 SVGA3dCmdDefineGBSurface_v4 *pCmd = (SVGA3dCmdDefineGBSurface_v4 *)pvCmd; 5051 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5052 vmsvga3dCmdDefineGBSurface_v4(pThisCC, pCmd); 5053 break; 5054 } 5055 5056 case SVGA_3D_CMD_DX_SET_CS_UA_VIEWS: 5057 { 5058 SVGA3dCmdDXSetCSUAViews *pCmd = (SVGA3dCmdDXSetCSUAViews *)pvCmd; 5059 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5060 vmsvga3dCmdDXSetCSUAViews(pThisCC, pCmd); 5061 break; 5062 } 5063 5064 case SVGA_3D_CMD_DX_SET_MIN_LOD: 5065 { 5066 SVGA3dCmdDXSetMinLOD *pCmd = (SVGA3dCmdDXSetMinLOD *)pvCmd; 5067 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5068 vmsvga3dCmdDXSetMinLOD(pThisCC, pCmd); 5069 break; 5070 } 5071 5072 case SVGA_3D_CMD_RESERVED2_3: 5073 { 5074 VMSVGA_3D_CMD_NOTIMPL(); 5075 break; 5076 } 5077 5078 case SVGA_3D_CMD_RESERVED2_4: 5079 { 5080 VMSVGA_3D_CMD_NOTIMPL(); 5081 break; 5082 } 5083 5084 case SVGA_3D_CMD_DX_DEFINE_DEPTHSTENCIL_VIEW_V2: 5085 { 5086 SVGA3dCmdDXDefineDepthStencilView_v2 *pCmd = (SVGA3dCmdDXDefineDepthStencilView_v2 *)pvCmd; 5087 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5088 vmsvga3dCmdDXDefineDepthStencilView_v2(pThisCC, pCmd); 5089 break; 5090 } 5091 5092 case SVGA_3D_CMD_DX_DEFINE_STREAMOUTPUT_WITH_MOB: 5093 { 5094 SVGA3dCmdDXDefineStreamOutputWithMob *pCmd = (SVGA3dCmdDXDefineStreamOutputWithMob *)pvCmd; 5095 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5096 vmsvga3dCmdDXDefineStreamOutputWithMob(pThisCC, pCmd); 5097 break; 5098 } 5099 5100 case SVGA_3D_CMD_DX_SET_SHADER_IFACE: 5101 { 5102 SVGA3dCmdDXSetShaderIface *pCmd = (SVGA3dCmdDXSetShaderIface *)pvCmd; 5103 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5104 vmsvga3dCmdDXSetShaderIface(pThisCC, pCmd); 5105 break; 5106 } 5107 5108 case SVGA_3D_CMD_DX_BIND_STREAMOUTPUT: 5109 { 5110 SVGA3dCmdDXBindStreamOutput *pCmd = (SVGA3dCmdDXBindStreamOutput *)pvCmd; 5111 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5112 vmsvga3dCmdDXBindStreamOutput(pThisCC, pCmd); 5113 break; 5114 } 5115 5116 case SVGA_3D_CMD_SURFACE_STRETCHBLT_NON_MS_TO_MS: 5117 { 5118 SVGA3dCmdSurfaceStretchBltNonMSToMS *pCmd = (SVGA3dCmdSurfaceStretchBltNonMSToMS *)pvCmd; 5119 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5120 vmsvga3dCmdSurfaceStretchBltNonMSToMS(pThisCC, pCmd); 5121 break; 5122 } 5123 5124 case SVGA_3D_CMD_DX_BIND_SHADER_IFACE: 5125 { 5126 SVGA3dCmdDXBindShaderIface *pCmd = (SVGA3dCmdDXBindShaderIface *)pvCmd; 5127 VMSVGAFIFO_CHECK_3D_CMD_MIN_SIZE_BREAK(sizeof(*pCmd)); 5128 vmsvga3dCmdDXBindShaderIface(pThisCC, pCmd); 4169 5129 break; 4170 5130 } 4171 5131 4172 5132 /* Unsupported commands. */ 4173 case SVGA_3D_CMD_ VIDEO_CREATE_DECODER:4174 case SVGA_3D_CMD_ VIDEO_DESTROY_DECODER:4175 case SVGA_3D_CMD_ VIDEO_CREATE_PROCESSOR:4176 case SVGA_3D_CMD_ VIDEO_DESTROY_PROCESSOR:4177 case SVGA_3D_CMD_ VIDEO_DECODE_START_FRAME:4178 case SVGA_3D_CMD_ VIDEO_DECODE_RENDER:4179 case SVGA_3D_CMD_ VIDEO_DECODE_END_FRAME:4180 case SVGA_3D_CMD_ VIDEO_PROCESS_FRAME:5133 case SVGA_3D_CMD_DEAD4: /* SVGA_3D_CMD_VIDEO_CREATE_DECODER */ 5134 case SVGA_3D_CMD_DEAD5: /* SVGA_3D_CMD_VIDEO_DESTROY_DECODER */ 5135 case SVGA_3D_CMD_DEAD6: /* SVGA_3D_CMD_VIDEO_CREATE_PROCESSOR */ 5136 case SVGA_3D_CMD_DEAD7: /* SVGA_3D_CMD_VIDEO_DESTROY_PROCESSOR */ 5137 case SVGA_3D_CMD_DEAD8: /* SVGA_3D_CMD_VIDEO_DECODE_START_FRAME */ 5138 case SVGA_3D_CMD_DEAD9: /* SVGA_3D_CMD_VIDEO_DECODE_RENDER */ 5139 case SVGA_3D_CMD_DEAD10: /* SVGA_3D_CMD_VIDEO_DECODE_END_FRAME */ 5140 case SVGA_3D_CMD_DEAD11: /* SVGA_3D_CMD_VIDEO_PROCESS_FRAME */ 4181 5141 /* Prevent the compiler warning. */ 4182 5142 case SVGA_3D_CMD_LEGACY_BASE:
Note:
See TracChangeset
for help on using the changeset viewer.