- Timestamp:
- Nov 13, 2017 7:00:48 AM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-shared.cpp
r69163 r69665 429 429 *pcyBlock = 1; 430 430 return 8; 431 case SVGA3D_R8G8B8A8_UNORM: 431 432 case SVGA3D_R8G8B8A8_SNORM: 432 433 *pcxBlock = 1; -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r69655 r69665 952 952 return D3DFMT_A4R4G4B4; 953 953 954 case SVGA3D_R8G8B8A8_UNORM: 955 return D3DFMT_A8B8G8R8; 956 954 957 case SVGA3D_Z_D32: 955 958 return D3DFMT_D32; … … 5801 5804 } 5802 5805 5806 /* iCurrentStreamId is equal to the total number of streams and the value is used for cleanup at the function end. */ 5807 5803 5808 AssertRCReturn(rc, rc); 5804 5809 … … 5931 5936 } 5932 5937 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 } 5939 5947 } 5940 5948 -
trunk/src/VBox/Devices/Graphics/vmsvga/svga3d_reg.h
r69163 r69665 160 160 SVGA3D_AYUV = 45, 161 161 162 SVGA3D_R8G8B8A8_UNORM = 68, /// @todo use headers from newer Mesa 163 162 164 SVGA3D_BC4_UNORM = 108, 163 165 SVGA3D_BC5_UNORM = 111, … … 168 170 SVGA3D_Z_D24S8_INT = 120, 169 171 170 SVGA3D_R8G8B8A8_SNORM = 127, /// @todo use headers from newer Mesa171 SVGA3D_R16G16_UNORM = 129, /// @todo use headers from newer Mesa172 SVGA3D_R8G8B8A8_SNORM = 127, /// @todo use headers from newer Mesa 173 SVGA3D_R16G16_UNORM = 129, /// @todo use headers from newer Mesa 172 174 173 175 SVGA3D_FORMAT_MAX
Note:
See TracChangeset
for help on using the changeset viewer.