Changeset 104907 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 12, 2024 7:13:44 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r102520 r104907 6768 6768 # ifdef VBOX_WITH_VMSVGA3D 6769 6769 /** 6770 * Initializes the host 3D capabilities and writes them to FIFO memory.6770 * Initializes the host 3D capabilities (pThis->svga.au32DevCaps). 6771 6771 * 6772 6772 * @returns VBox status code. … … 6774 6774 * @param pThisCC The VGA/VMSVGA state for ring-3. 6775 6775 */ 6776 static void vmsvgaR3Init Fifo3DCaps(PVGASTATE pThis, PVGASTATECC pThisCC)6776 static void vmsvgaR3Init3DCaps(PVGASTATE pThis, PVGASTATECC pThisCC) 6777 6777 { 6778 6778 /* Query the capabilities and store them in the pThis->svga.au32DevCaps array. */ … … 6820 6820 6821 6821 RTLogRelSetBuffering(fSavedBuffering); 6822 6822 } 6823 6824 6825 /** 6826 * Write the host 3D capabilities to FIFO memory. 6827 * Must be called after vmsvgaR3Init3DCaps. 6828 * 6829 * @returns VBox status code. 6830 * @param pThis The shared VGA/VMSVGA instance data. 6831 * @param pThisCC The VGA/VMSVGA state for ring-3. 6832 */ 6833 static void vmsvgaR3InitFIFO3D(PVGASTATE pThis, PVGASTATECC pThisCC) 6834 { 6823 6835 /* 3d hardware version; latest and greatest */ 6824 6836 pThisCC->svga.pau32FIFO[SVGA_FIFO_3D_HWVERSION_REVISED] = SVGA3D_HWVERSION_CURRENT; … … 6849 6861 pCaps->header.length = 0; 6850 6862 } 6851 6852 # endif 6863 # endif /* VBOX_WITH_VMSVGA3D */ 6853 6864 6854 6865 /** … … 6902 6913 6903 6914 # ifdef VBOX_WITH_VMSVGA3D 6904 if ( pThis->svga.f3DEnabled 6905 && !pThis->fVmSvga3) 6906 vmsvgaR3InitFifo3DCaps(pThis, pThisCC); 6915 if (pThis->svga.f3DEnabled) 6916 { 6917 vmsvgaR3Init3DCaps(pThis, pThisCC); 6918 if (!pThis->fVmSvga3) 6919 vmsvgaR3InitFIFO3D(pThis, pThisCC); 6920 } 6907 6921 # endif 6908 6922 … … 7378 7392 7379 7393 # ifdef VBOX_WITH_VMSVGA3D 7380 if ( pThis->svga.f3DEnabled 7381 && !pThis->fVmSvga3) 7394 if (pThis->svga.f3DEnabled) 7382 7395 { 7383 7396 PVMSVGAR3STATE pSVGAState = pThisCC->svga.pSvgaR3State; … … 7385 7398 if (RT_SUCCESS(rc)) 7386 7399 { 7387 /* Initialize FIFO 3D capabilities. */ 7388 vmsvgaR3InitFifo3DCaps(pThis, pThisCC); 7400 /* Initialize 3D capabilities. */ 7401 vmsvgaR3Init3DCaps(pThis, pThisCC); 7402 if (!pThis->fVmSvga3) 7403 vmsvgaR3InitFIFO3D(pThis, pThisCC); 7389 7404 } 7390 7405 else
Note:
See TracChangeset
for help on using the changeset viewer.