Commit Graph

71 Commits

Author SHA1 Message Date
christopher waters
8d8c05f497 Reworking shader platform settings on Windows to be per-RHI. This removes the ill-fated "min/max feature level" configs that were just causing confusion.
On Windows, "TargetedRHIs" is now split into "D3D11TargetedShaderFormats", "D3D12TargetedShaderFormats" and "VulkanTargetedShaderFormats". "TargetedRHIs" is still parsed for backwards compatibility.
Using this, projects can now be more easily configured for D3D12-only or even Vulkan-only.
Updated FShaderFormatsPropertyDetails to use FName instead of FString for shader platforms. Also added a filtering method for mixed RHI platforms like Windows.

#jira none
#rb mihnea.balta, josh.adams
#preflight 6287cbf46c7692ac8cc8805f

[CL 20300786 by christopher waters in ue5-main branch]
2022-05-20 15:09:09 -04:00
james doverspike
58c7d94999 Add support to default RHI based on device id and a list of devices that are capable of updating to avoid prompting users who can't update their drivers
#p4v-cherrypick 19897004

#ROBOMERGE-AUTHOR: james.doverspike
#ROBOMERGE-SOURCE: CL 19896998 via CL 19897000 via CL 19897003 via CL 19897308 via CL 19897311
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v940-19807014)

[CL 19897438 by james doverspike in ue5-main branch]
2022-04-24 14:14:43 -04:00
james doverspike
6b9af09470 Adds config to set default RHI by GPU name. DeviceID would be better but it requires a refactor since RHI Init gets the DeviceID but we need it prior to choosing the RHI.
#ROBOMERGE-AUTHOR: james.doverspike
#ROBOMERGE-SOURCE: CL 19633635 via CL 19638280 via CL 19642304 via CL 19642363 via CL 19642410
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19643014 by james doverspike in ue5-main branch]
2022-04-06 01:21:11 -04:00
christopher waters
c0007f841b Restoring the accidentally removed AllowD3D12FeatureLevelES31 and making it use the new project settings.
#rb none
#preflight 622fae99306f46da14599d3d

#ROBOMERGE-AUTHOR: christopher.waters
#ROBOMERGE-SOURCE: CL 19378732 via CL 19379151
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19379832 by christopher waters in ue5-main branch]
2022-03-14 18:38:47 -04:00
christopher waters
d122308b2d Adding Min/Max FeatureLevel configs for Windows D3D11, D3D12 and Vulkan.
This unifies a few Performance Mode settings together and now allows a project to restrict D3D12 to SM6 only.

#rb mihnea.balta, josh.adams
#preflight 622f83adc51b66df4c210b1e

#ROBOMERGE-AUTHOR: christopher.waters
#ROBOMERGE-SOURCE: CL 19376538 via CL 19376631
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19378054 by christopher waters in ue5-main branch]
2022-03-14 16:32:20 -04:00
christopher waters
0436dcd850 Enhancing Windows RHI selection to choose SM6 when it's enabled in the project's TargetedRHIs list. D3D12 can now fall back to SM5 if SM6 is not supported.
Adding Feature Level to the D3D12 RHI name, useful for the editor tooltip.
Fixing WindowsDynamicRHI config loads to use GConfig instead of FConfigCacheIni::LoadLocalIniFile so we don't miss changes made during startup.

#jira UE-145478
#rb mihnea.balta

#ROBOMERGE-AUTHOR: christopher.waters
#ROBOMERGE-SOURCE: CL 19340775 via CL 19340835
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v926-19321884)

[CL 19348800 by christopher waters in ue5-main branch]
2022-03-10 22:29:49 -05:00
steve smith
29892b58b7 Make sure the Data-Driven platform info is loaded before querying the XR plugin for a potential GPU device override. Prior to this change, this query could happen before DDPI is loaded and would result in invalid logic in the XR plugin, as well as an assert/crash on startup in development builds.
#jira UE-142698
#rb rob.srinivasiah
#preflight 6217f454e27ba405e8625dc8
#lockdown nick.whiting

#ROBOMERGE-AUTHOR: steve.smith
#ROBOMERGE-SOURCE: CL 19127687 in //UE5/Release-5.0/... via CL 19128149
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19154681 by steve smith in ue5-main branch]
2022-02-25 15:22:12 -05:00
james doverspike
3abfcb2fd7 Windows RHI selection fixes
#ROBOMERGE-AUTHOR: james.doverspike
#ROBOMERGE-SOURCE: CL 19005010 via CL 19005746 via CL 19006824 via CL 19007371 via CL 19007474 via CL 19008142 via CL 19008768
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 19009925 by james doverspike in ue5-main branch]
2022-02-15 22:32:46 -05:00
chris genova
bc08b28872 Re-enable the incremental user PSO cache by having it save at shutdown.
Enable PSO cache CVars by default on Windows. This has no effect on D3D11 since the cache is disabled if GRHISupportsPipelineFileCache is false.


#ROBOMERGE-AUTHOR: chris.genova
#ROBOMERGE-SOURCE: CL 18785319 via CL 18785326 via CL 18785329 via CL 18785330 via CL 18785331 via CL 18785353 via CL 18785366
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18785369 by chris genova in ue5-main branch]
2022-01-30 08:19:37 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
arciel rekman
0d8cfb624e Make D3D11 to be the default again for projects without an RHI preference.
#rb Kevin.Ortegren (discussed)
#jira none
[FYI] Colton.Daniels, Zachary.Wilson

#ROBOMERGE-SOURCE: CL 17075134 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v853-17066230)

[CL 17075191 by arciel rekman in ue5-release-engine-test branch]
2021-08-05 16:29:27 -04:00
aurel cordonnier
dc4bf61540 Merge from Release-Engine-Staging @ 17030559 to Release-Engine-Test
This represents UE4/Main @ 17030256 and Dev-PerfTest @ 17030553

[CL 17031509 by aurel cordonnier in ue5-release-engine-test branch]
2021-08-03 11:56:47 -04:00
arciel rekman
586280d1ff Fix D3D12 preference in Windows RHI settings (UE-118810).
- It should not override user's explicit choice of DefaultGraphicsRHI in project settings in the editor.
- Either in the editor or in game, if the project isn't using D3D at all, it shouldn't apply.

#rb James.Doverspike
#jira UE-118810
[at]James.Doverspike

#ROBOMERGE-SOURCE: CL 16939833 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16939840 by arciel rekman in ue5-release-engine-test branch]
2021-07-23 14:33:39 -04:00
zousar shaker
ac7e01ab95 Allow GeForceNowWrapper to not only be unused by the RHI module, but also unlinked and avoid its dependencies (on Slate and CoreUObject) when building standalone programs and servers.
#rb devin.doucette
#rb michel.champoux

#ROBOMERGE-SOURCE: CL 16854410 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16854433 by zousar shaker in ue5-release-engine-test branch]
2021-07-14 16:06:32 -04:00
dmitriy dyomin
75d30a7b14 Allow to start an editor in a game mobile preview with any supported RHI, eg: -game -featureleveles31 -vulkan
[FYI] james.doverspike

#ROBOMERGE-SOURCE: CL 16769389 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16769397 by dmitriy dyomin in ue5-release-engine-test branch]
2021-06-24 02:36:07 -04:00
aurel cordonnier
02c0f425e8 Copy up from Release-Engine-Staging @ 16738359
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719

[CL 16738582 by aurel cordonnier in ue5-release-engine-test branch]
2021-06-22 00:27:54 -04:00
arciel rekman
7ab4b8875e Make default RHI to be D3D12 on Windows.
#rb Graham.Wihlidal, Slack
#jira none

#ROBOMERGE-SOURCE: CL 16610625 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v828-16531559)

[CL 16610641 by arciel rekman in ue5-release-engine-test branch]
2021-06-09 15:13:29 -04:00
Marc Audy
e80ea6b959 Merge from Release-Engine-Staging @ 16444985
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16445122 by Marc Audy in ue5-release-engine-test branch]
2021-05-25 02:43:26 -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
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
Marc Audy
9753392e2b Merge UE5/RES CL# 15462083 to UE5/Main
This represents UE4/Main @ 15414221

[CL 15463811 by Marc Audy in ue5-main branch]
2021-02-18 18:13:28 -04:00
Dmitriy Dyomin
30683a1594 Always use feature level ES31 when running editor with -opengl commandline
#rb jack.porter

[CL 15415316 by Dmitriy Dyomin in ue5-main branch]
2021-02-16 00:57:26 -04:00
Marc Audy
cac1fe0019 Merge UE5/Release-Engine-Staging @ CL# 15299266 to UE5/Main
This represents UE4/Main @ CL# 15277572

[CL 15299962 by Marc Audy in ue5-main branch]
2021-02-03 14:57:28 -04:00
christopher waters
d7b6414555 Moving shader model detection around for better platform support.
Adding -sm6 to enable the new feature level from the command line.

[CL 15275955 by christopher waters in ue5-main branch]
2021-02-01 18:53:00 -04:00
Marc Audy
bc88b73a29 Merge Release-Engine-Staging to Main @ CL# 15151250
Represents UE4/Main @ 15133763

[CL 15158774 by Marc Audy in ue5-main branch]
2021-01-21 16:22:06 -04:00