Changeset 95035 in vbox
- Timestamp:
- May 18, 2022 10:30:19 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx.cpp
r95032 r95035 2923 2923 AssertRCReturn(rc, rc); 2924 2924 2925 ASSERT_GUEST_RETURN(pCmd->uavSpliceIndex < SVGA3D_DX11_1_MAX_UAVIEWS, VERR_INVALID_PARAMETER);2926 ASSERT_GUEST_RETURN(cUAViewId <= SVGA3D_DX11_1_MAX_UAVIEWS - pCmd->uavSpliceIndex, VERR_INVALID_PARAMETER);2925 ASSERT_GUEST_RETURN(pCmd->uavSpliceIndex <= SVGA3D_MAX_SIMULTANEOUS_RENDER_TARGETS, VERR_INVALID_PARAMETER); 2926 ASSERT_GUEST_RETURN(cUAViewId <= SVGA3D_DX11_1_MAX_UAVIEWS, VERR_INVALID_PARAMETER); 2927 2927 for (uint32_t i = 0; i < cUAViewId; ++i) 2928 2928 ASSERT_GUEST_RETURN( paUAViewId[i] < pDXContext->cot.cUAView … … 2933 2933 { 2934 2934 SVGA3dUAViewId const uaViewId = paUAViewId[i]; 2935 pDXContext->svgaDXContext.uaViewIds[ pCmd->uavSpliceIndex +i] = uaViewId;2935 pDXContext->svgaDXContext.uaViewIds[i] = uaViewId; 2936 2936 } 2937 2937 pDXContext->svgaDXContext.uavSpliceIndex = pCmd->uavSpliceIndex; -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp
r95034 r95035 5560 5560 /* Unbind render target views because they mught be (re-)used as shader resource views. */ 5561 5561 DXDEVICE *pDXDevice = dxDeviceFromContext(pThisCC->svga.p3dState, pDXContext); 5562 pDXDevice->pImmediateContext->OMSetRenderTargets (0, NULL, NULL);5562 pDXDevice->pImmediateContext->OMSetRenderTargetsAndUnorderedAccessViews(0, NULL, NULL, 0, 0, NULL, NULL); 5563 5563 5564 5564 /* … … 6475 6475 } 6476 6476 6477 /* RTVs are followed by UAVs. */ 6478 Assert(NumRTVs <= pDXContext->svgaDXContext.uavSpliceIndex); 6479 6477 6480 ID3D11DepthStencilView *pDepthStencilView = NULL; 6478 6481 SVGA3dDepthStencilViewId const depthStencilViewId = pDXContext->svgaDXContext.renderState.depthStencilViewId; … … 6483 6486 apRenderTargetViews, 6484 6487 pDepthStencilView, 6485 NumRTVs /*pDXContext->svgaDXContext.uavSpliceIndex*/,6488 pDXContext->svgaDXContext.uavSpliceIndex, 6486 6489 NumUAVs, 6487 6490 apUnorderedAccessViews,
Note:
See TracChangeset
for help on using the changeset viewer.