Commit Graph

778 Commits

Author SHA1 Message Date
aurel cordonnier
8eebe8841f Merge UE5/RET @ 16305968 to UE5/Main
This represents UE4/Main @ 16261013 and Dev-PerfTest @ 16259937

[CL 16306996 by aurel cordonnier in ue5-main branch]
2021-05-12 18:10:03 -04:00
Arne Schober
1ee9c88b3b U5 - deletion of RHIResources is not happening on the RenderingThread anymore
[CL 16301883 by Arne Schober in ue5-main branch]
2021-05-12 13:24:37 -04:00
Arne Schober
8384913873 U5 - Fix D3d11 validation error when clearing large buffers that would run into a ComputeShader Threadgroup limitation.
[CL 16265499 by Arne Schober in ue5-main branch]
2021-05-11 03:24:16 -04:00
Arne Schober
b2b27bcd1f U5 - Delete Resources on the RHI Thread to fix layering violation
[CL 16246026 by Arne Schober in ue5-main branch]
2021-05-09 23:20:16 -04:00
christopher waters
56bc1c51f1 Switching FRHIResourceInfo::Name to be FName instead of FString to prevent excessive allocations.
Adding usage text to rhi.DumpResourceMemory.
Tweaking rhi.DumpResourceMemory output to be more explicit with the number of items shown.

#jira none
#rb kenzo.terelst
#preflight 60917d13a370e100017d3813

[CL 16197762 by christopher waters in ue5-main branch]
2021-05-04 15:12:36 -04:00
christopher waters
87718de4a2 Adding commands to dump RHI resource info.
rhi.DumpResourceMemory dumps the memory usage of each RHI resource if the type is instrumented. Currently only fully implemented for Textures and Buffers in D3D11 and D3D12.
rhi.DumpResourceCounts dumps the counts of each resource type. Should work for all RHIs.
Repurposed FRHIResourceInfo to use for generic resource info. Removed older uses of it that didn't actually provide data.
Made ERHIResourceType required to construct an FRHIResource.
Adding Name to FRHIBuffer.
Removed the unused FVulkanBuffer.
Removed the unused FOpenGLTexture and FOpenGLBaseTexture.

#jira none
#rb kenzo.terelst
#preflight 60902efd7d9bf90001766572

[CL 16186890 by christopher waters in ue5-main branch]
2021-05-03 16:58:15 -04:00
aurel cordonnier
50944fd712 Merge UE5/RES @ 16162155 to UE5/Main
This represents UE4/Main @ 16130047 and Dev-PerfTest @ 16126156

[CL 16163576 by aurel cordonnier in ue5-main branch]
2021-04-29 19:32:06 -04:00
christopher waters
72d2db6113 Removing 'Fast VRAM allocations' from D3D11 RHI.
#jira none
#rb mihnea.balta, kenzo.terelst
#preflight 60899f34d324590001b47506

[CL 16147050 by christopher waters in ue5-main branch]
2021-04-28 14:41:47 -04:00
David Harvey
36acd31e38 fix for errors when compiling against newer Windows SDKs.
#jira UECON-528
#rb luke.thatcher
#rnx

[CL 16123332 by David Harvey in ue5-main branch]
2021-04-27 08:22:08 -04:00
Krzysztof Narkowicz
769fd2e59a Fixed D11 RHICopyTexture bug, where source box size was incorrectly aligned to dest texture. For example this causes a 2x4 UINT4->BC7 copy to become a 4x4 copy.
[CL 16121387 by Krzysztof Narkowicz in ue5-main branch]
2021-04-26 23:04:14 -04:00
christopher waters
83f70197d3 Tessellation Removal: Removing RHI Hull/Domain shader types and enums.
#rb lukas.hermanns
#jira UE-94564
#preflight 607f2e11eb4f050001d4655e

[CL 16066223 by christopher waters in ue5-main branch]
2021-04-20 17:00:25 -04:00
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -04:00
christopher waters
3cb9ee4508 Tessellation Removal: Removing Tessellation from D3D11RHI.
#jira UE-94564
#rb mihnea.balta
#preflight 606b76db1660810001a8880e

[CL 15923684 by christopher waters in ue5-main branch]
2021-04-05 17:41:14 -04:00
Emil Persson
1589572dfd Fix name conflicts between DX11 and DX12 RHIs. In a monolith build both will be linked into the exe, so for functions with identical signatures the linker will simply pick one or the other, causing one RHI to call into the other RHI's functions.
#rb mihnea.balta, kenzo.terelst

[CL 15848978 by Emil Persson in ue5-main branch]
2021-03-29 05:09:18 -04:00
christopher waters
095570a7ec Tessellation Removal: CreateBoundShaderState changes to remove hull and domain shaders. Making CreateHullShader and CreateDomainShader optional.
#jira UE-94564
#rb will.damon, kenzo.terelst
#preflight 605e376d73db400001e8d814

[CL 15842909 by christopher waters in ue5-main branch]
2021-03-26 16:32:26 -04:00
mihnea balta
d5c41b1dec More cleanup for UE4 references.
#rb trivial
#rnx
#jira UE-111661 UE-111087 UE-111327 UE-111056 UE-111062 UE-111414 UE-111417 UE-111415 UE-111453 UE-111474 UE-111729

#ROBOMERGE-SOURCE: CL 15825946 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v785-15821902)

[CL 15829883 by mihnea balta in ue5-main branch]
2021-03-25 15:42:37 -04:00
jimmy smith
d6c1abbbfb Rename UE4_ prefix to UE
#jira UE-11103
#rb trivial
#preflight 605a64245911ec000141deff

#ROBOMERGE-SOURCE: CL 15787889 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v783-15756269)

[CL 15790797 by jimmy smith in ue5-main branch]
2021-03-23 22:43:45 -04:00
Sebastien Lussier
e78b667196 D3D11 - Clear reference to CurrentComputeShader in CleanupD3DDevice()
Prior to this change, it was only cleared by the desctructor, after the device was actually destroyed
#rb arciel.rekman

[CL 15757100 by Sebastien Lussier in ue5-main branch]
2021-03-21 22:01:51 -04:00
Steve Robb
4fa411c84e Removal of dependencies to Windows Vista or earlier.
#jira UE-110555
#rb josh.adams

[CL 15746365 by Steve Robb in ue5-main branch]
2021-03-19 08:05:49 -04:00
Sebastien Lussier
c03d8a3f08 D3D11 RHI - Work around an issue with the WARP device (-AllowSoftwareRendering) & BC7
Creating two views with different formats (DXGI_FORMAT_BC7_UNORM vs DXGI_FORMAT_BC7_UNORM_SRGB) will result in a crash inside d3d10warp.dll when creating the second view
#rb jeremy.moore, christopher.waters

[CL 15744476 by Sebastien Lussier in ue5-main branch]
2021-03-18 21:27:54 -04:00
Marc Audy
0cbbc781ca Merge UE5/Release-Engine-Staging @ 15740152 to UE5/Main
This represents UE4/Main @ 15709114

[CL 15740605 by Marc Audy in ue5-main branch]
2021-03-18 15:20:03 -04:00
graham wihlidal
2c60f7e000 Fixed rampant FName allocation/copies in FD3D11DynamicRHI::SetUAVPSResourcesFromTables, matching behavior of FD3D11DynamicRHI::SetResourcesFromTables.
#rb emil.persson

[CL 15735834 by graham wihlidal in ue5-main branch]
2021-03-18 04:23:23 -04:00
zach bethel
8c1793ad5a Integration of RHI transient allocator into RDG.
- Replaced legacy transient support from RDG and replaced with new API.
 - Reworked acquire / discard operations a bit and added RHI validation to track correctness.
 - Reworked RDG barrier batching to include acquire / discard operations.
 - Hardened render pass merging logic and expanded to support lifetime extension of transient resources.
 - Added transient tag to RDG insights to track which resources are transient.

#rb luke.thatcher, kenzo.terelst

[CL 15726534 by zach bethel in ue5-main branch]
2021-03-17 12:44:59 -04:00
christopher waters
bd8fabd199 Fixing UAVMask support.
- Removed OutputMask since nothing was using it anymore.
- Made UAVMask an optional output from FXC compiles, only d3d11 reads it.
- UAVMask now created from entire set of UAVs and not just UAVs in Uniform Buffers.

#jira none
#rb mihnea.balta

#ROBOMERGE-SOURCE: CL 15643920 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v779-15635321)

[CL 15643927 by christopher waters in ue5-main branch]
2021-03-08 15:13:56 -04:00
Marc Audy
8f73cd7fa9 Merge UE5/Release-Engine-Staging @ 15630841 to UE5/Main
This represents UE4/Main @ 15601601

[CL 15631170 by Marc Audy in ue5-main branch]
2021-03-05 19:27:14 -04:00