VirtualBox

Changeset 89438 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 1, 2021 5:58:34 PM (4 years ago)
Author:
vboxsync
Message:

3D/VMSVGA/WDDM: Use SVGA_REG_DEV_CAP register only if SVGA_CAP_GBOBJECTS is enabled

File:
1 edited

Legend:

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

    r89361 r89438  
    202202    }
    203203
    204     for (i = 0; i < RT_ELEMENTS(pSvgaInfo->au32Caps); ++i)
    205     {
    206         SVGARegWrite(pSvga, SVGA_REG_DEV_CAP, i);
    207         pSvgaInfo->au32Caps[i] = SVGARegRead(pSvga, SVGA_REG_DEV_CAP);
     204    if (RT_LIKELY(pSvga->u32Caps & SVGA_CAP_GBOBJECTS))
     205    {
     206        for (i = 0; i < RT_ELEMENTS(pSvgaInfo->au32Caps); ++i)
     207        {
     208            SVGARegWrite(pSvga, SVGA_REG_DEV_CAP, i);
     209            pSvgaInfo->au32Caps[i] = SVGARegRead(pSvga, SVGA_REG_DEV_CAP);
     210        }
    208211    }
    209212
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