VirtualBox

Changeset 94272 in vbox for trunk


Ignore:
Timestamp:
Mar 16, 2022 2:58:00 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150531
Message:

Devices/Graphics: fixes for Linux host; log 3D adapter name: bugref:9830

File:
1 edited

Legend:

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

    r94269 r94272  
    806806        }
    807807        else
    808             AssertFailedStmt(rc = VERR_NOT_SUPPORTED);
     808        {
     809            LogFunc(("CheckFormatSupport failed for 0x%08x, hr = 0x%08x\n", dxgiFormat, hr));
     810            rc = VERR_NOT_SUPPORTED;
     811        }
    809812    }
    810813    else
     
    20622065        }
    20632066
    2064         if (SUCCEEDED(hr))
     2067        if (   SUCCEEDED(hr)
     2068            && MiscFlags == D3D11_RESOURCE_MISC_SHARED)
    20652069        {
    20662070            /* Get the shared handle. */
     
    27422746        /* Failure to load the shader disassembler is ignored. */
    27432747        int rc2 = RTLdrLoadSystem("D3DCompiler_47", /* fNoUnload = */ true, &pBackend->hD3DCompiler);
    2744         AssertRC(rc2);
    27452748        if (RT_SUCCESS(rc2))
    2746         {
    27472749            rc2 = RTLdrGetSymbol(pBackend->hD3DCompiler, "D3DDisassemble", (void **)&pBackend->pfnD3DDisassemble);
    2748             AssertRC(rc2);
    2749         }
    27502750        Log6Func(("Load D3DDisassemble: %Rrc\n", rc2));
    27512751    }
     
    27732773
    27742774    int rc = dxDeviceCreate(pBackend, &pBackend->dxDevice);
     2775    if (RT_SUCCESS(rc))
     2776    {
     2777        IDXGIAdapter *pAdapter = NULL;
     2778        HRESULT hr = pBackend->dxDevice.pDxgiFactory->EnumAdapters(0, &pAdapter);
     2779        if (SUCCEEDED(hr))
     2780        {
     2781            DXGI_ADAPTER_DESC desc;
     2782            hr = pAdapter->GetDesc(&desc);
     2783            if (SUCCEEDED(hr))
     2784            {
     2785                char sz[RT_ELEMENTS(desc.Description)];
     2786                for (unsigned i = 0; i < RT_ELEMENTS(desc.Description); ++i)
     2787                    sz[i] = (char)desc.Description[i];
     2788                LogRelMax(1, ("VMSVGA: Adapter [%s]\n", sz));
     2789            }
     2790
     2791            pAdapter->Release();
     2792        }
     2793    }
    27752794    return rc;
    27762795}
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