VirtualBox

儲存庫 vbox 的更動 33684


忽略:
時間撮記:
2010-11-2 下午12:17:19 (14 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
67308
訊息:

wddm/3d: fix hgcm fallback (for insufficient hgsmi resources)

位置:
trunk/src/VBox
檔案:
修改 8 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxCrHgsmi.cpp

    r33530 r33684  
    122122            hClient = g_VBoxCrHgsmiCallbacks.pfnClientCreate(&pHgsmiGL->BasePrivate.Base);
    123123            Assert(hClient);
    124             pHgsmiGL->BasePrivate.hClient = hClient;
    125             gt_pHgsmiGL = pHgsmiGL;
    126         }
    127     }
    128     else
    129         hClient = NULL;
    130     return hClient;
     124            if (hClient)
     125            {
     126                pHgsmiGL->BasePrivate.hClient = hClient;
     127                gt_pHgsmiGL = pHgsmiGL;
     128                return hClient;
     129            }
     130            vboxUhgsmiKmtDestroy(pHgsmiGL);
     131        }
     132        RTMemFree(pHgsmiGL);
     133    }
     134
     135    return NULL;
    131136}
    132137
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r33676 r33684  
    18831883        else if (pSwapchain->iBB == iRt)
    18841884        {
    1885             Assert(0);
    18861885            pSwapchain->iBB = 0;
    18871886        }
     
    19971996    if (!pSwapchain)
    19981997    {
    1999 #ifdef DEBUG_misha
    2000         Assert(0);
    2001 #endif
    20021998        /* first search for the swapchain the alloc might be added to */
    20031999        PVBOXWDDMDISP_SWAPCHAIN pCur = RTListNodeGetFirst(&pDevice->SwapchainList, VBOXWDDMDISP_SWAPCHAIN, ListEntry);
     
    53915387//                Assert(pScreen->hWnd);
    53925388//                Assert(pScreen->pDevice9If);
     5389                hr = E_FAIL;
    53935390                Assert(0);
    53945391            }
     
    67226719    {
    67236720        case D3DDDIQUERYTYPE_EVENT:
    6724             Assert(0);
    67256721            pQuery->data.bData = TRUE;
    67266722            Assert(pData->pData);
     
    81808176        case 0x40010006: /* <- OutputDebugString exception, ignore */
    81818177        case 0xe06d7363: /* <- ms compiler - generated exception related to C++ exception */
     8178        case 0x000006d9: /* <- RPC exception, ignore */
    81828179            break;
    81838180        default:
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxUhgsmiKmt.cpp

    r33530 r33684  
    170170            return VINF_SUCCESS;
    171171        }
     172        else
     173        {
     174            rc = VERR_OUT_OF_RESOURCES;
     175        }
    172176
    173177        RTMemFree(pBuf);
     
    325329
    326330            return VINF_SUCCESS;
     331        }
     332        else
     333        {
     334            rc = VERR_OUT_OF_RESOURCES;
    327335        }
    328336
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVdma.cpp

    r33628 r33684  
    15751575    pDevExt->bNotifyDxDpc = TRUE;
    15761576    BOOLEAN bDpcQueued = pDevExt->u.primary.DxgkInterface.DxgkCbQueueDpc(pDevExt->u.primary.DxgkInterface.DeviceHandle);
    1577     Assert(bDpcQueued);
    15781577
    15791578    return bDpcQueued;
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r33628 r33684  
    10661066        {
    10671067            BOOLEAN bDpcQueued = pDevExt->u.primary.DxgkInterface.DxgkCbQueueDpc(pDevExt->u.primary.DxgkInterface.DeviceHandle);
    1068             Assert(bDpcQueued);
    10691068        }
    10701069    }
     
    28712870                    if (pBuildPagingBuffer->Transfer.Source.SegmentId)
    28722871                    {
    2873 #ifdef DEBUG_misha
    2874                         Assert(pBuildPagingBuffer->Transfer.Source.SegmentAddress.QuadPart);
    2875 #endif
    28762872                        uint64_t off = pBuildPagingBuffer->Transfer.Source.SegmentAddress.QuadPart;
    28772873                        off += pBuildPagingBuffer->Transfer.TransferOffset + cbTransfered;
     
    28982894                    if (pBuildPagingBuffer->Transfer.Destination.SegmentId)
    28992895                    {
    2900 #ifdef DEBUG_misha
    2901                         Assert(pBuildPagingBuffer->Transfer.Destination.SegmentAddress.QuadPart);
    2902 #endif
    29032896                        uint64_t off = pBuildPagingBuffer->Transfer.Destination.SegmentAddress.QuadPart;
    29042897                        off += pBuildPagingBuffer->Transfer.TransferOffset;
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/context.c

    r33656 r33684  
    757757{
    758758#ifdef VBOX_WITH_WDDM
    759 # ifdef DEBUG_misha
    760     Assert(0);
    761 # endif
    762759    TRACE("Updating context %p window from %p to %p.\n",
    763760            context, context->win_handle, swapchain->win_handle);
     
    12931290    HDC hdc;
    12941291
    1295 #if defined(VBOX_WITH_WDDM) && defined(DEBUG_misha)
    1296     Assert(0);
    1297 #endif
    1298 
    12991292    TRACE("swapchain %p, target %p, window %p.\n", swapchain, target, swapchain->win_handle);
    13001293
     
    16181611    context_setup_target(device, context, target);
    16191612    context_enter(context);
    1620     Assert(context->valid);
     1613//    Assert(context->valid);
    16211614    if (!context->valid) return FALSE;
    16221615
  • trunk/src/VBox/GuestHost/OpenGL/util/error.c

    r32498 r33684  
    241241        va_end( args );
    242242
    243 #if defined(WINDOWS) && defined(DEBUG) && !defined(IN_GUEST)
     243#if defined(WINDOWS) && defined(DEBUG) && !defined(IN_GUEST) && !defined(DEBUG_misha)
    244244        DebugBreak();
    245245#endif
     
    322322            output = stderr;
    323323        }
    324 #ifndef DEBUG
     324#if !defined(DEBUG) || defined(DEBUG_misha)
    325325        /* Release mode: only emit crDebug messages if CR_DEBUG
    326326         * or CR_DEBUG_FILE is set.
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r33595 r33684  
    5050#endif
    5151
     52#ifdef DEBUG_misha
     53#ifdef CRASSERT
     54# undef CRASSERT
     55#endif
     56#define CRASSERT Assert
     57#endif
    5258//#define IN_GUEST
    5359//#if defined(IN_GUEST)
     
    13781384        if (RT_SUCCESS(rc))
    13791385        {
    1380             rc = pHgsmi->pfnBufferCreate(pHgsmi, CRVBOXHGSMI_PAGE_ALIGN(0x800000),
     1386            rc = pHgsmi->pfnBufferCreate(pHgsmi, CRVBOXHGSMI_PAGE_ALIGN(1),
    13811387                                            VBOXUHGSMI_SYNCHOBJECT_TYPE_EVENT,
    13821388                                            NULL,
     
    13891395                return (HVBOXCRHGSMI_CLIENT) pClient;
    13901396            }
     1397            pClient->pCmdBuffer->pfnDestroy(pClient->pCmdBuffer);
    13911398        }
    13921399    }
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette