VirtualBox

Changeset 69665 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2017 7:00:48 AM (7 years ago)
Author:
vboxsync
Message:

Devices/Graphics: VMSVGA D3D backend: added SVGA3D_R8G8B8A8_UNORM, comment, fix for instancing cleanup.

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

Legend:

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

    r69163 r69665  
    429429        *pcyBlock = 1;
    430430        return 8;
     431    case SVGA3D_R8G8B8A8_UNORM:
    431432    case SVGA3D_R8G8B8A8_SNORM:
    432433        *pcxBlock = 1;
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r69655 r69665  
    952952        return D3DFMT_A4R4G4B4;
    953953
     954    case SVGA3D_R8G8B8A8_UNORM:
     955        return D3DFMT_A8B8G8R8;
     956
    954957    case SVGA3D_Z_D32:
    955958        return D3DFMT_D32;
     
    58015804    }
    58025805
     5806    /* iCurrentStreamId is equal to the total number of streams and the value is used for cleanup at the function end. */
     5807
    58035808    AssertRCReturn(rc, rc);
    58045809
     
    59315936    }
    59325937
    5933     /* "When you are finished rendering the instance data, be sure to reset the vertex stream frequency back..." */
    5934     for (i = 0; i < cVertexDivisor; ++i)
    5935     {
    5936         LogFunc(("reset stream freq %d\n", i));
    5937         HRESULT hr2 = pContext->pDevice->SetStreamSourceFreq(i, 1);
    5938         AssertMsg(hr2 == D3D_OK, ("SetStreamSourceFreq(%d, 1) failed with %x\n", i, hr2)); RT_NOREF(hr2);
     5938    if (cVertexDivisor)
     5939    {
     5940        /* "When you are finished rendering the instance data, be sure to reset the vertex stream frequency back..." */
     5941        for (i = 0; i < iCurrentStreamId; ++i)
     5942        {
     5943            LogFunc(("reset stream freq %d\n", i));
     5944            HRESULT hr2 = pContext->pDevice->SetStreamSourceFreq(i, 1);
     5945            AssertMsg(hr2 == D3D_OK, ("SetStreamSourceFreq(%d, 1) failed with %x\n", i, hr2)); RT_NOREF(hr2);
     5946        }
    59395947    }
    59405948
  • trunk/src/VBox/Devices/Graphics/vmsvga/svga3d_reg.h

    r69163 r69665  
    160160   SVGA3D_AYUV                         = 45,
    161161
     162   SVGA3D_R8G8B8A8_UNORM               = 68, /// @todo use headers from newer Mesa
     163
    162164   SVGA3D_BC4_UNORM                    = 108,
    163165   SVGA3D_BC5_UNORM                    = 111,
     
    168170   SVGA3D_Z_D24S8_INT                  = 120,
    169171
    170    SVGA3D_R8G8B8A8_SNORM               = 127, ///@todo use headers from newer Mesa
    171    SVGA3D_R16G16_UNORM                 = 129, ///@todo use headers from newer Mesa
     172   SVGA3D_R8G8B8A8_SNORM               = 127, /// @todo use headers from newer Mesa
     173   SVGA3D_R16G16_UNORM                 = 129, /// @todo use headers from newer Mesa
    172174
    173175   SVGA3D_FORMAT_MAX
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