Commit Graph

798 Commits

Author SHA1 Message Date
Uriel Doyon 86744bc55c Add new RHI method RHICalcTexture2DArrayPlatformSize() for PS4, Switch, D3D11, D3D12, OpenGL and Vulkan.
Added support for 3d textures with RHICopyTexture in the Switch and Vulkan implementation.

Fixed D3D12 and PS4 issues in the RHICopyTexture implementation when using compressed formats.

Fixed missing RB swizzle for 3d textures and texture 2d arrays in OpenGL.

Fixed 3d texture bulkdata mip layout when cooking PS4.
Fixed some issues around mip data bulk initialization on PS4.

#rb mihnea.balta

[CL 14832163 by Uriel Doyon in ue5-main branch]
2020-12-01 19:21:46 -04:00
Rolando Caloca 8c5dda23da UE5 - Proper fix for r.Shaders.KeepDebugInfo passing in the FRHIShader::ShaderName correctly
Initial fixes and tested on D3D11, D3D12 and Vulkan
Changed 'n' to FShaderCodeName::Key
Also added checks if trying to add optional shader data out of order
#rb Jonas.Meyer, Kenzo.Terelst, Mihnea.Balta

[CL 14816162 by Rolando Caloca in ue5-main branch]
2020-11-26 13:34:15 -04:00
Marc Audy a7f9391231 Merge UE5/Release-Engine-Staging @ 14811410 to UE5/Main
This represents UE4/Main @ 14768117

For ReleaseObjectVersion.h
#lockdown Marcus.Wassmer

[CL 14811440 by Marc Audy in ue5-main branch]
2020-11-24 18:42:39 -04:00
Emil Persson e5190a3c48 Buffer refactor merging Vertex, Index and Structured Buffer types into a single FRHIBuffer. No changes to APIs in this changelist other than those that naturally folded together when types merged. A few typedefs provide backward compatibility for the rendering code so that no changes outside of the RHI is needed at this point. There are plenty of API improvements and cleanups that can be imagined once buffer types are merged, but that's deferred to a later changelist. Currently buffers are still created with the old functions, but a unified CreateBuffer() could be imagined in the future.
#rb mihnea.balta, Kenzo.Terelst, Lukas.Hermanns

[CL 14762592 by Emil Persson in ue5-main branch]
2020-11-17 06:22:15 -04:00
christopher waters 2f2612ea15 Moving D3D11 Error/FatalError text around such that the error code is on the first line.
This is primarily for crash reporters that can't consume multi-line errors. Changes errors caught as "CreateSwapChainResult failed" to something like "CreateSwapChainResult failed with error E_INVALIDARG".
Added DXGI_ERROR_NOT_CURRENTLY_AVAILABLE to the D3D11 error strings since it's something worth calling out.

#jira none
#rb mihnea.balta, jonas.meyer

[CL 14646121 by christopher waters in ue5-main branch]
2020-11-03 16:44:42 -04:00
Marc Audy 68150e0be7 Merge UE5/Release-Engine-Staging to UE5/Main @ 14611496
This represents UE4/Main @ 14594913

[CL 14612291 by Marc Audy in ue5-main branch]
2020-10-29 13:38:15 -04:00
Arne Schober 29a47c28c2 U5 - Avoid stalling the renderingthread, because initD3DDevice is called lazily when a Viewport is created.
#RB

[CL 14565750 by Arne Schober in ue5-main branch]
2020-10-23 20:06:53 -04:00
Marc Audy 4c1bb11c29 Merge UE5/Release-Engine-Staging to UE5/Main @ 14548662
This represents UE4/Main @ 14525125 + cherrypicked fixes
#skipundocheck

[CL 14551026 by Marc Audy in ue5-main branch]
2020-10-22 19:19:16 -04:00
Zousar Shaker 77d13185b7 Copying //UE5/Dev-Cooker@14539516 to Main (//UE5/Main)
[CL 14539954 by Zousar Shaker in ue5-main branch]
2020-10-21 17:56:05 -04:00
graham wihlidal 41ac2863fc Added GRHIPersistentThreadGroupCount so an RHI can describe the optimal number of persistent thread groups to fill the GPU, configured this on appropriate platforms, and replaced Nanite's NUM_PERSISTENT_THREAD_COUNT define in favor of this.
#rb christopher.waters
#fyi brian.karis, rune.stubbe

[CL 14521281 by graham wihlidal in ue5-main branch]
2020-10-19 23:32:18 -04:00
zach bethel 1be4df8f48 Removed deprecated resource transition API from the engine.
#rb kenzo.terelst, christopher.waters, mihnea.balta
#fyi will.damon, brian.white, rolando.caloca
#jira none

[CL 14495239 by zach bethel in ue5-main branch]
2020-10-14 14:20:26 -04:00
Marc Audy 50a3d7d368 Merge Release-Engine-Staging to Main @ CL# 14467590
This represents UE4/Main @ 14432125 + some cherrypick fixes

[CL 14468207 by Marc Audy in ue5-main branch]
2020-10-09 22:42:26 -04:00
Marcus Wassmer 3b81cf8201 Merging using //UE5/Main_to_//UE5/Release-Engine-Staging @14384769
autoresolved files
#rb none

[CL 14384911 by Marcus Wassmer in ue5-main branch]
2020-09-24 00:43:27 -04:00
christopher waters 343fd5c681 Fixing DXGI failure when using the old swap effect, scaling needs to be set to 'stretch' and not 'none' in these cases.
#jira none
#fyi Jonas.Meyer, Kenzo.TerElst

[CL 14368520 by christopher waters in ue5-main branch]
2020-09-22 15:05:13 -04:00
arne schober 65b0137579 M2 - DX11 shader creation errors due to Extension and DXIL shaders passed into DX11 when r.CreateShadersOnLoad=1 is used
#jira UE-96404
[FYI] Arciel.Rekman, Yuriy.ODonnell, Graham.Wihlidal
#RB Graham.Wihlidal

#ROBOMERGE-OWNER: arne.schober
#ROBOMERGE-AUTHOR: arne.schober
#ROBOMERGE-SOURCE: CL 14325095 in //UE5/Release-5.0-M2/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-M2 -> Main) (v738-14305781)

[CL 14325304 by arne schober in ue5-main branch]
2020-09-15 22:14:11 -04:00
danny couture 5ca406927c Fix how we handled default affinity mask with xaudio2 which caused too many time critical threads to be created and causing lots of context switch
- This eliminates 31 time critical threads on AMD TR 3970X.

#rnx
#rb Aaron.McLeran, Dan.Phillips, Ethan.Geller

[CL 14250980 by danny couture in ue5-main branch]
2020-09-03 06:58:28 -04:00
Marc Audy 7379fa99c5 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14229157
[CL 14233282 by Marc Audy in ue5-main branch]
2020-09-01 14:07:48 -04:00
Guillaume Abadie bbba86ac6b Makes TAAU plugable
#rb marcus.wassmer
#jira none

#ushell-cherrypick of 13902523 by Guillaume.Abadie

#ROBOMERGE-OWNER: guillaume.abadie
#ROBOMERGE-AUTHOR: guillaume.abadie
#ROBOMERGE-SOURCE: CL 13910862 via CL 13910902 via CL 13910917 via CL 13911228 via CL 13988268
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Staging) (v718-13788717)

#ushell-cherrypick of 14080844 by guillaume.abadie

[CL 14167753 by Guillaume Abadie in ue5-main branch]
2020-08-23 00:00:09 -04:00
Marc Audy a7c9001a94 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14075166
#rb
#rnx

[CL 14075271 by Marc Audy in ue5-main branch]
2020-08-11 01:36:57 -04:00
Guillaume Abadie ee646cb582 Fixes PF_R8 on d3d11
#rb none

[CL 13888800 by Guillaume Abadie in ue5-main branch]
2020-07-17 20:50:33 -04:00
Michal Valient 95d19f95b1 [REVERB] Merging //UE4/Private-Reverb-Development@13832732
#rb graham.wihlidal, rune.stubbe, brian.karis, andrew.lauritzen, jeff.farris

[CL 13834854 by Michal Valient in ue5-main branch]
2020-07-06 18:58:26 -04:00
Marc Audy 11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00
Matt Kuhlenschmidt 603a4119c5 Fix HAL/PlatformFileManager.h non-portable casing CIS issues
#rb none

[CL 13214257 by Matt Kuhlenschmidt in ue5-main branch]
2020-05-06 17:58:18 -04:00
rolando caloca e6819207d4 F - Help track down playtest crash
#rb none
#rnx
[FYI] Jonas.Meyer

#ROBOMERGE-SOURCE: CL 13152078 via CL 13161630 via CL 13161691 via CL 13161759
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13161779 by rolando caloca in Main branch]
2020-05-04 21:12:33 -04:00
peter sauerbrei e33fc51cfe revert check for AMD GPUs as it may be causing crashes in live
#jira none
#rb none

#ROBOMERGE-OWNER: peter.sauerbrei
#ROBOMERGE-AUTHOR: peter.sauerbrei
#ROBOMERGE-SOURCE: CL 13131770 via CL 13132633 via CL 13137410 via CL 13137414 via CL 13137417 via CL 13137453
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v687-13115495)

[CL 13137454 by peter sauerbrei in Main branch]
2020-05-01 00:46:04 -04:00