VirtualBox

Ignore:
Timestamp:
Aug 2, 2012 1:51:22 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79716
Message:

wddm: better handling 2d->3d mode switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r42501 r42541  
    47334733# endif
    47344734                    pDevExt->fRenderToShadowDisabled
    4735                     || (pAllocation && pAllocation->enmType == VBOXWDDM_ALLOC_TYPE_UMD_RC_GENERIC)
     4735                    /* only update for UMD_RC_GENERIC when resolution changes to inform host about it
     4736                     * otherwise keep host using the same VRAM, containing a valid data before the switch (i.e. SHADOW) */
     4737                    || (pAllocation
     4738                            && pAllocation->enmType == VBOXWDDM_ALLOC_TYPE_UMD_RC_GENERIC
     4739                            && (pAllocation->AllocData.SurfDesc.width != pSource->AllocData.SurfDesc.width
     4740                                    || pAllocation->AllocData.SurfDesc.height != pSource->AllocData.SurfDesc.height)
     4741                            )
    47364742                    )
    47374743#endif
     
    47904796# endif
    47914797                        pDevExt->fRenderToShadowDisabled
    4792                         || (pAllocation && pAllocation->enmType == VBOXWDDM_ALLOC_TYPE_UMD_RC_GENERIC)
     4798                        /* only update for UMD_RC_GENERIC when resolution changes to inform host about it
     4799                         * otherwise keep host using the same VRAM, containing a valid data before the switch (i.e. SHADOW) */
     4800                        || (pAllocation
     4801                                && pAllocation->enmType == VBOXWDDM_ALLOC_TYPE_UMD_RC_GENERIC
     4802                                && (pAllocation->AllocData.SurfDesc.width != pSource->AllocData.SurfDesc.width
     4803                                        || pAllocation->AllocData.SurfDesc.height != pSource->AllocData.SurfDesc.height)
     4804                                )
    47934805                        )
    47944806#endif
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