VirtualBox

Changeset 94524 in vbox


Ignore:
Timestamp:
Apr 8, 2022 5:19:50 AM (3 years ago)
Author:
vboxsync
Message:

WDDM: rename and enable D3D context in miniport. bugref:9845

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h

    r93833 r94524  
    268268    /* Gallium driver context. */
    269269    VBOXWDDM_CONTEXT_TYPE_GA_3D,
    270     /* context to handle SVGA_3D_CMD_DX_* commands */
    271     VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX,
     270    /* Direct3D UMD context for VMSVGA device. */
     271    VBOXWDDM_CONTEXT_TYPE_VMSVGA_D3D,
    272272} VBOXWDDM_CONTEXT_TYPE;
    273273
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/Makefile.kmk

    r93265 r94524  
    170170 endif
    171171
     172 ifdef VBOX_WITH_VMSVGA3D_DX
     173  VBoxWddm_DEFS           += VBOX_WITH_VMSVGA3D_DX
     174 endif
     175
    172176endif # VBOX_WITH_WDDM
    173177
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r94295 r94524  
    44514451#ifdef VBOX_WITH_VMSVGA3D_DX
    44524452                    /** @todo Implement buffers submittion and memory menagement for this new type of context **/
    4453                     case VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX:
     4453                    case VBOXWDDM_CONTEXT_TYPE_VMSVGA_D3D:
    44544454                    {
    4455                         pContext->enmType = VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX;
    4456                         WARN(("Context type VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX is not supported yet"));
     4455                        /* VMSVGA_D3D context type shares some code with GA_3D, because both work with VMSVGA GPU. */
     4456                        pContext->enmType = VBOXWDDM_CONTEXT_TYPE_VMSVGA_D3D;
     4457                        Status = GaContextCreate(pDevExt->pGa, pInfo, pContext);
    44574458                        break;
    44584459                    }
     
    45364537#endif
    45374538#ifdef VBOX_WITH_VMSVGA3D_DX
    4538         case VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX:
    4539         {
    4540             pContext->enmType = VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX;
    4541             WARN(("Context type VBOXWDDM_CONTEXT_TYPE_VMSVGA_DX is not supported yet"));
     4539        case VBOXWDDM_CONTEXT_TYPE_VMSVGA_D3D:
     4540        {
     4541            Status = GaContextDestroy(pDevExt->pGa, pContext);
    45424542            break;
    45434543        }
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