Commit Graph

696 Commits

Author SHA1 Message Date
rolando caloca
5886c7f9c7 F - Compile fix for missing include
#rb none
#rnx
#jira

#ROBOMERGE-OWNER: rolando.caloca
#ROBOMERGE-AUTHOR: rolando.caloca
#ROBOMERGE-SOURCE: CL 12898384 via CL 12898398 via CL 12898476 via CL 12898481 via CL 12898486
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v681-12776863)

[CL 12898489 by rolando caloca in Main branch]
2020-04-17 10:37:27 -04:00
rolando caloca
f732986347 F - Copy from 12877954
D3D11 - Fix for AMD-based CPUs with built-in graphics. IsRHIDeviceAMD might be integrated grapihcs or a discrete GPU. Just get the budget from the OS via IDXGIAdapter3. Fall back to the original calculation method if the interface for IDXGIAdapter3 does not exist (e.g. Win7).

#rb Jason.Stewart
[FYI] Chris.Bunner
#rnx
#jira

#ROBOMERGE-SOURCE: CL 12898017 via CL 12898088 via CL 12898094 via CL 12898112 via CL 12898125
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v681-12776863)

[CL 12898140 by rolando caloca in Main branch]
2020-04-17 10:24:09 -04:00
jonas meyer
f1111f138d Force gpucrashdebugging when in editor.
use -nocrashdebugging to disable.
#rb rolando.caloca
#jira none

#ROBOMERGE-SOURCE: CL 12861781 in //UE4/Release-4.25/... via CL 12861847 via CL 12861868
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v681-12776863)

[CL 12861916 by jonas meyer in Main branch]
2020-04-16 09:57:51 -04:00
jimmy smith
88ca1e7ef6 Circular buffer refactor of AudioMixer produce/consume cycles. (code by Ethan).
#rb Ethan.Geller, Aaron.Mcleran, Rob.Gay, Maxwell.Hayes, Phil.Popp
[FYI] ethan.geller

#ROBOMERGE-SOURCE: CL 12826047 via CL 12826127 via CL 12826139
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v681-12776863)

[CL 12826160 by jimmy smith in Main branch]
2020-04-15 17:21:20 -04:00
bob tellez
c6ed8f5832 Back out changelist 12680734. Dependent change for another change that was backed out
[FYI] Jimmy.Smith

#ROBOMERGE-SOURCE: CL 12687512 via CL 12687514 via CL 12687517
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12687521 by bob tellez in Main branch]
2020-04-09 02:31:08 -04:00
bob tellez
5f015331c3 Back out changelist 12680724. Cook warnings
[FYI] Jimmy.Smith

#ROBOMERGE-SOURCE: CL 12687159 via CL 12687168 via CL 12687178
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12687197 by bob tellez in Main branch]
2020-04-09 01:51:16 -04:00
jimmy smith
4e963bf82b Deprecate XAudio2
#rb aaron.mcleran

#ROBOMERGE-SOURCE: CL 12680734 via CL 12680742 via CL 12680743
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12680746 by jimmy smith in Main branch]
2020-04-08 18:18:22 -04:00
jimmy smith
276b1af01b Small refactors to remove dependecies on deprecated modules (XAudio2, X3DAudio). We often get callstacks corrupt callstacks for hangs in X3DAudio so this will hopefully stop that also.
#rb ethan.geller, aaron.mcleren

#ROBOMERGE-SOURCE: CL 12680724 via CL 12680731 via CL 12680735
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12680741 by jimmy smith in Main branch]
2020-04-08 18:17:44 -04:00
jeff fisher
2a239dab6b UE-91648 Hololens suspend/resume not working
-Hololens was set up to do extended execution rather than suspend/resume as a workaround to a very old long since fixed sdk bug.
-Now it can suspend/resume correctly.
-Sleep still forces an app restart on PC, because we do not support suspend/resume with remoting.
-The D3D Trim on suspend is PLATFORM_HOLOLENS out of an abundance of caution.  It may well be correct for windows as well, but if its wrong the result will be hitches in d3d operations when resuming, which seems tricky.
#rb Steve.Smith
#jira UE-91648
#lockdown nick.whiting

#ROBOMERGE-SOURCE: CL 12675971 in //UE4/Release-4.25/... via CL 12675982 via CL 12675988
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12675993 by jeff fisher in Main branch]
2020-04-08 13:36:45 -04:00
chris adams
bec7351632 disabling video/image sharing/capture on Windows during protected video playback
[FYI] jens.petersam

#ROBOMERGE-SOURCE: CL 12666538 via CL 12666546 via CL 12666548 via CL 12666552 via CL 12666559 via CL 12666561
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12666569 by chris adams in Main branch]
2020-04-07 18:57:35 -04:00
jonas meyer
0ae40d8aa9 fix a crash that would occur if game starts up in a specific mode, and clicks in another window.
This would cause DXGI_ERROR_INVALID_CALL, which would cause the engine to halt.
#rb steve.smith
#jira UE-86278

#ROBOMERGE-SOURCE: CL 12657314 in //UE4/Release-4.25/... via CL 12657317 via CL 12657320
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12657324 by jonas meyer in Main branch]
2020-04-07 11:57:45 -04:00
jimmy smith
af2f04d904 Protection against nullptr in GetMMDeviceInfo
#rb ethan.geller, aaron.mcleran

#ROBOMERGE-SOURCE: CL 12585286 via CL 12585288 via CL 12585290 via CL 12586679 via CL 12586694 via CL 12586715
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v675-12543919)

[CL 12586762 by jimmy smith in Main branch]
2020-04-03 03:53:32 -04:00
jonas meyer
b4f77a12a0 proposed fix for a rare crash.
theory is this happens for users with multiple adapters, where not all of them support ALLOW_TEARING
#rb none

#ROBOMERGE-SOURCE: CL 12531858 via CL 12531868 via CL 12532702 via CL 12532798 via CL 12532904
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v673-12478461)

[CL 12533127 by jonas meyer in Main branch]
2020-04-02 10:17:31 -04:00
kenzo terelst
6a078547a2 Editgrate changes from Dev-Rendering:
- Integrate new NvAftermath version which supports GPU Crash minidumps now
- Refactor GPU crash handling on D3D12 to unify multiple crash paths (use exception handling when GPU minidump is created to make sure it properly saved)
- Cleanup error reporting on GPU crash
- Make sure only one thread will log and show error messages

#rb Emil.Person

#ROBOMERGE-SOURCE: CL 12508032 via CL 12508036 via CL 12508040
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v673-12478461)

[CL 12508050 by kenzo terelst in Main branch]
2020-04-01 12:46:32 -04:00
rolando caloca
475aad4570 UE4.25 - Compile fix
#rb none
#rnx
#jira

#ROBOMERGE-SOURCE: CL 12390549 in //UE4/Release-4.25/... via CL 12390574
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Release-Engine-Staging) (v671-12333473)

[CL 12403457 by rolando caloca in Release-Engine-Staging branch]
2020-03-25 10:29:51 -04:00
rolando caloca
56b7e12c80 UE4.25 - Potential compile fix
#rb none
#rnx
[FYI] Jonas.Meyer
#jira UE-91107

#ROBOMERGE-SOURCE: CL 12390281 in //UE4/Release-4.25/... via CL 12390369
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Release-Engine-Staging) (v671-12333473)

[CL 12403455 by rolando caloca in Release-Engine-Staging branch]
2020-03-25 10:29:46 -04:00
Rolando Caloca
9adbb72be8 UE4.25 - Compile fix
#rb none
#rnx
#jira

[CL 12390549 by Rolando Caloca in 4.25 branch]
2020-03-24 14:29:55 -04:00
Rolando Caloca
5b47c9e763 UE4.25 - Potential compile fix
#rb none
#rnx
#fyi Jonas.Meyer
#jira UE-91107

[CL 12390281 by Rolando Caloca in 4.25 branch]
2020-03-24 14:19:30 -04:00
jonas meyer
54f80a72fc DX11 support for EnumAdapterByGpuPreference - Allows os assisted selection of gpu
Use
 -gpupreference=1 to prefer minimum power
 -gpupreference=2 to prefer highest performance
Default is 2. Any other value causes it to fallback to old code.
upgrade dxgi to latest
#jira UE-64085
#rb none

#ROBOMERGE-SOURCE: CL 12387036 in //UE4/Release-4.25/... via CL 12387039
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v671-12333473)

[CL 12387041 by jonas meyer in Main branch]
2020-03-24 06:43:57 -04:00
Jonas Meyer
c0b97f3375 DX11 support for EnumAdapterByGpuPreference - Allows os assisted selection of gpu
Use
 -gpupreference=1 to prefer minimum power
 -gpupreference=2 to prefer highest performance
Default is 2. Any other value causes it to fallback to old code.
upgrade dxgi to latest
#jira UE-64085
#rb none

[CL 12387036 by Jonas Meyer in 4.25 branch]
2020-03-24 06:42:47 -04:00
rolando caloca
263db5356c UE4.25 - Change warnings to display
#rb none
#rnx
#jira UE-90876

#ROBOMERGE-SOURCE: CL 12295439 in //UE4/Release-4.25/... via CL 12295447
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v668-12245121)

[CL 12296931 by rolando caloca in Main branch]
2020-03-19 11:03:51 -04:00
Rolando Caloca
553b616119 UE4.25 - Change warnings to display
#rb none
#rnx
#jira UE-90876

[CL 12295439 by Rolando Caloca in 4.25 branch]
2020-03-19 10:20:15 -04:00
mihnea balta
5fbd1a4512 Fixed: RHIFlushComputeShaderCache() and the equivalent RHIEndUAVOverlap(); RHIBeginUAVOverlap(); did not work.
The driver extension functions just set an internal flag which is processed on the next dispatch, so doing an end/begin is just a no-op. In order to correctly break up an overlap group, RHIBeginUAVOverlap() must remember that overlap was requested, and actually call the driver extension function after the next draw or dispatch.

Also removed the attempted UAV "barrier" from FD3D11DynamicRHI::RHITransitionResources(). This didn't do anything because of the above bug, but if it did, it would have prevented overlap from occurring in many valid cases, because we don't track which UAVs are actually written by the previous dispatches in a group. The D3D11 RHI must not try to interpret transitions for breaking up overlap groups; it's up to the caller to ensure that the begin/end calls wrap dispatches which are safe to overlap, and must also use transitions for the RHIs which support barriers, where begin/end overlap has no effect.

#rnx
#rb Jonas.Meyer
#jira none

#ROBOMERGE-SOURCE: CL 12242226 in //UE4/Release-4.25/... via CL 12242249
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v667-12241502)

[CL 12242283 by mihnea balta in Main branch]
2020-03-18 06:48:43 -04:00
mihnea balta
61de96c228 Fixed: RHIFlushComputeShaderCache() and the equivalent RHIEndUAVOverlap(); RHIBeginUAVOverlap(); did not work.
The driver extension functions just set an internal flag which is processed on the next dispatch, so doing an end/begin is just a no-op. In order to correctly break up an overlap group, RHIBeginUAVOverlap() must remember that overlap was requested, and actually call the driver extension function after the next draw or dispatch.

Also removed the attempted UAV "barrier" from FD3D11DynamicRHI::RHITransitionResources(). This didn't do anything because of the above bug, but if it did, it would have prevented overlap from occurring in many valid cases, because we don't track which UAVs are actually written by the previous dispatches in a group. The D3D11 RHI must not try to interpret transitions for breaking up overlap groups; it's up to the caller to ensure that the begin/end calls wrap dispatches which are safe to overlap, and must also use transitions for the RHIs which support barriers, where begin/end overlap has no effect.

#rnx
#rb Jonas.Meyer
#jira none

[CL 12242226 by mihnea balta in 4.25 branch]
2020-03-18 06:47:35 -04:00
jian ru
b8138c41bd Landscape visual mesh LOD streaming (mobile only)
[FYI] Peter.Sauerbrei,Chris.Bunner


#ROBOMERGE-OWNER: jian.ru
#ROBOMERGE-AUTHOR: jian.ru
#ROBOMERGE-SOURCE: CL 12126084 via CL 12126339 via CL 12132576
#ROBOMERGE-BOT: (v659-12123632)

[CL 12132633 by jian ru in Main branch]
2020-03-11 12:57:20 -04:00