VirtualBox

Changeset 95091 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
May 25, 2022 10:29:30 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151566
Message:

Devices/Graphics: stream output: bugref:9830

Location:
trunk/src/VBox/Devices/Graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp

    r95085 r95091  
    12801280    if (pEntry->usesMob)
    12811281    {
    1282         DEBUG_BREAKPOINT_TEST();
    12831282        pMob = vmsvgaR3MobGet(pSvgaR3State, pEntry->mobid);
    12841283        ASSERT_GUEST_RETURN(pMob, VERR_INVALID_PARAMETER);
     
    13061305
    13071306        pDst->Stream         = pSrc->stream;
    1308         pDst->SemanticName   = NULL; /* Will be taken from the shader output declaration. */
     1307        pDst->SemanticName   = NULL; /* Semantic name and index will be taken from the shader output declaration. */
    13091308        pDst->SemanticIndex  = 0;
    1310         pDst->StartComponent = iFirstBit > 0 ? iFirstBit - 1 : 0;
     1309        /* A geometry shader may return an attribute as a component:
     1310         *   Name   Index Mask Register
     1311         *   ATTRIB 3       z  2
     1312         * In this case SO declaration expects StartComponent = 0 and ComponentCount = 1
     1313         * (not StartComponent = 2 and ComponentCount = 1)
     1314         * This 'StartComponent = iFirstBit > 0 ? iFirstBit - 1 : 0;' did not work with a sample from a D3D11 book.
     1315         */
     1316        pDst->StartComponent = 0;
    13111317        pDst->ComponentCount = iFirstBit > 0 ? iLastBit - (iFirstBit - 1) : 0;
    13121318        pDst->OutputSlot     = pSrc->outputSlot;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d.cpp

    r95008 r95091  
    14681468                           pMipLevel->pSurfaceData, pMipLevel->cbSurfacePitch, pMipLevel->cbSurfacePlane);
    14691469
    1470     LogFunc(("SysMem: pvData %p\n", pMap->pvData));
     1470    LogFunc(("SysMem: sid = %u, pvData %p\n", pImage->sid, pMap->pvData));
    14711471    return VINF_SUCCESS;
    14721472}
Note: See TracChangeset for help on using the changeset viewer.

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