VirtualBox

Ignore:
Timestamp:
Apr 30, 2021 1:23:05 PM (4 years ago)
Author:
vboxsync
Message:

Devices/Graphics: more DX commands; disassemble shaders for debug log. bugref:9830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp

    r88788 r88803  
    19781978{
    19791979#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);
    19841984#else
    19851985    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    20102010    SVGA3dSamplerId const *paSamplerId = (SVGA3dSamplerId *)&pCmd[1];
    20112011    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);
    20132013#else
    20142014    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    20362036{
    20372037#ifdef VMSVGA3D_DX
    2038 ASMBreakpoint();
     2038//ASMBreakpoint();
    20392039    RT_NOREF(cbCmd);
    20402040    return vmsvga3dDXDrawIndexed(pThisCC, idDXContext, pCmd);
     
    23742374{
    23752375#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);
    23802379#else
    23812380    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    23892388{
    23902389#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);
    23952393#else
    23962394    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    24042402{
    24052403#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);
    24102407#else
    24112408    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    24492446{
    24502447#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);
    24552451#else
    24562452    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    25092505{
    25102506#ifdef VMSVGA3D_DX
    2511 ASMBreakpoint();
     2507//ASMBreakpoint();
    25122508    RT_NOREF(cbCmd);
    25132509    return vmsvga3dDXDefineShaderResourceView(pThisCC, idDXContext, pCmd);
     
    25232519{
    25242520#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);
    25292524#else
    25302525    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    25522547{
    25532548#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);
    25582552#else
    25592553    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    25672561{
    25682562#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);
    25732575#else
    25742576    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    25822584{
    25832585#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);
    25882589#else
    25892590    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
     
    36323633{
    36333634#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);
    36383638#else
    36393639    RT_NOREF(pThisCC, idDXContext, pCmd, cbCmd);
Note: See TracChangeset for help on using the changeset viewer.

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