Changeset 88803 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
- Timestamp:
- Apr 30, 2021 1:23:05 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
r88788 r88803 1978 1978 { 1979 1979 #ifdef VMSVGA3D_DX 1980 ASMBreakpoint();1981 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State;1982 RT_NOREF(pSvgaR3State, pCmd, cbCmd);1983 return vmsvga3dDXSetShaderResources(pThisCC, idDXContext );1980 //ASMBreakpoint(); 1981 SVGA3dShaderResourceViewId const *paShaderResourceViewId = (SVGA3dShaderResourceViewId *)&pCmd[1]; 1982 uint32_t const cShaderResourceViewId = (cbCmd - sizeof(*pCmd)) / sizeof(SVGA3dShaderResourceViewId); 1983 return vmsvga3dDXSetShaderResources(pThisCC, idDXContext, pCmd, cShaderResourceViewId, paShaderResourceViewId); 1984 1984 #else 1985 1985 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2010 2010 SVGA3dSamplerId const *paSamplerId = (SVGA3dSamplerId *)&pCmd[1]; 2011 2011 uint32_t const cSamplerId = (cbCmd - sizeof(*pCmd)) / sizeof(SVGA3dSamplerId); 2012 return vmsvga3dDXSetSamplers(pThisCC, idDXContext, pCmd ->startSampler, pCmd->type, cSamplerId, paSamplerId);2012 return vmsvga3dDXSetSamplers(pThisCC, idDXContext, pCmd, cSamplerId, paSamplerId); 2013 2013 #else 2014 2014 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2036 2036 { 2037 2037 #ifdef VMSVGA3D_DX 2038 ASMBreakpoint();2038 //ASMBreakpoint(); 2039 2039 RT_NOREF(cbCmd); 2040 2040 return vmsvga3dDXDrawIndexed(pThisCC, idDXContext, pCmd); … … 2374 2374 { 2375 2375 #ifdef VMSVGA3D_DX 2376 ASMBreakpoint(); 2377 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2378 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2379 return vmsvga3dDXClearRenderTargetView(pThisCC, idDXContext); 2376 //ASMBreakpoint(); 2377 RT_NOREF(cbCmd); 2378 return vmsvga3dDXClearRenderTargetView(pThisCC, idDXContext, pCmd); 2380 2379 #else 2381 2380 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2389 2388 { 2390 2389 #ifdef VMSVGA3D_DX 2391 ASMBreakpoint(); 2392 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2393 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2394 return vmsvga3dDXClearDepthStencilView(pThisCC, idDXContext); 2390 //ASMBreakpoint(); 2391 RT_NOREF(cbCmd); 2392 return vmsvga3dDXClearDepthStencilView(pThisCC, idDXContext, pCmd); 2395 2393 #else 2396 2394 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2404 2402 { 2405 2403 #ifdef VMSVGA3D_DX 2406 ASMBreakpoint(); 2407 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2408 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2409 return vmsvga3dDXPredCopyRegion(pThisCC, idDXContext); 2404 //ASMBreakpoint(); 2405 RT_NOREF(cbCmd); 2406 return vmsvga3dDXPredCopyRegion(pThisCC, idDXContext, pCmd); 2410 2407 #else 2411 2408 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2449 2446 { 2450 2447 #ifdef VMSVGA3D_DX 2451 ASMBreakpoint(); 2452 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2453 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2454 return vmsvga3dDXGenMips(pThisCC, idDXContext); 2448 //ASMBreakpoint(); 2449 RT_NOREF(cbCmd); 2450 return vmsvga3dDXGenMips(pThisCC, idDXContext, pCmd); 2455 2451 #else 2456 2452 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2509 2505 { 2510 2506 #ifdef VMSVGA3D_DX 2511 ASMBreakpoint();2507 //ASMBreakpoint(); 2512 2508 RT_NOREF(cbCmd); 2513 2509 return vmsvga3dDXDefineShaderResourceView(pThisCC, idDXContext, pCmd); … … 2523 2519 { 2524 2520 #ifdef VMSVGA3D_DX 2525 ASMBreakpoint(); 2526 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2527 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2528 return vmsvga3dDXDestroyShaderResourceView(pThisCC, idDXContext); 2521 //ASMBreakpoint(); 2522 RT_NOREF(cbCmd); 2523 return vmsvga3dDXDestroyShaderResourceView(pThisCC, idDXContext, pCmd); 2529 2524 #else 2530 2525 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2552 2547 { 2553 2548 #ifdef VMSVGA3D_DX 2554 ASMBreakpoint(); 2555 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2556 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2557 return vmsvga3dDXDestroyRenderTargetView(pThisCC, idDXContext); 2549 //ASMBreakpoint(); 2550 RT_NOREF(cbCmd); 2551 return vmsvga3dDXDestroyRenderTargetView(pThisCC, idDXContext, pCmd); 2558 2552 #else 2559 2553 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2567 2561 { 2568 2562 #ifdef VMSVGA3D_DX 2569 ASMBreakpoint(); 2570 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2571 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2572 return vmsvga3dDXDefineDepthStencilView(pThisCC, idDXContext); 2563 //ASMBreakpoint(); 2564 RT_NOREF(cbCmd); 2565 SVGA3dCmdDXDefineDepthStencilView_v2 cmd; 2566 cmd.depthStencilViewId = pCmd->depthStencilViewId; 2567 cmd.sid = pCmd->sid; 2568 cmd.format = pCmd->format; 2569 cmd.resourceDimension = pCmd->resourceDimension; 2570 cmd.mipSlice = pCmd->mipSlice; 2571 cmd.firstArraySlice = pCmd->firstArraySlice; 2572 cmd.arraySize = pCmd->arraySize; 2573 cmd.flags = 0; 2574 return vmsvga3dDXDefineDepthStencilView(pThisCC, idDXContext, &cmd); 2573 2575 #else 2574 2576 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 2582 2584 { 2583 2585 #ifdef VMSVGA3D_DX 2584 ASMBreakpoint(); 2585 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 2586 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 2587 return vmsvga3dDXDestroyDepthStencilView(pThisCC, idDXContext); 2586 //ASMBreakpoint(); 2587 RT_NOREF(cbCmd); 2588 return vmsvga3dDXDestroyDepthStencilView(pThisCC, idDXContext, pCmd); 2588 2589 #else 2589 2590 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd); … … 3632 3633 { 3633 3634 #ifdef VMSVGA3D_DX 3634 ASMBreakpoint(); 3635 PVMSVGAR3STATE const pSvgaR3State = pThisCC->svga.pSvgaR3State; 3636 RT_NOREF(pSvgaR3State, pCmd, cbCmd); 3637 return vmsvga3dDXDefineDepthStencilView_v2(pThisCC, idDXContext); 3635 //ASMBreakpoint(); 3636 RT_NOREF(cbCmd); 3637 return vmsvga3dDXDefineDepthStencilView(pThisCC, idDXContext, pCmd); 3638 3638 #else 3639 3639 RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
Note:
See TracChangeset
for help on using the changeset viewer.