Commit Graph

551 Commits

Author SHA1 Message Date
Zabir Hoque
fb461aec66 Fix unity build break.
#rb: none
#jira: none

[CL 11531896 by Zabir Hoque in 4.25 branch]
2020-02-18 19:11:23 -05:00
Zabir Hoque
b4f74d9fe7 Fix another merge issue where previous change was dropped.
#FYI: Rolando.Caloca; Josh.Adams
#rb: none
#Jira: none

[CL 11531721 by Zabir Hoque in 4.25 branch]
2020-02-18 19:10:03 -05:00
Ben Ingram
0496f54dd5 #jira UE-88627
Add GetShaderName() accessor to FRHIShader, fix compile error with certain build config
#rb none

[CL 11389015 by Ben Ingram in Main branch]
2020-02-12 13:34:35 -05:00
Rolando Caloca
5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -05:00
Ben Ingram
f7de3b4f6b #jira UE-88436
Convert some checks() into checkf(), to hopefully gather more information about failing check
#rb none

[CL 11355736 by Ben Ingram in Main branch]
2020-02-11 16:05:35 -05:00
jeremy moore
a9b2e229b3 #jira UE-88293
Fix potential null dereference
#rnx


#ROBOMERGE-SOURCE: CL 11292515 via CL 11292519 via CL 11292521 via CL 11292524
#ROBOMERGE-BOT: (v647-11244347)

[CL 11293015 by jeremy moore in Main branch]
2020-02-07 13:08:18 -05:00
Josh Adams
5032cf8753 - Fixed copyright notices
#rb trivial
#jira UE-88281

[CL 11291818 by Josh Adams in Main branch]
2020-02-07 11:01:05 -05:00
will damon
829a7d186b Enforce safe alignment for SRVs onto global dynamic read buffers.
#rb rolando.caloca arne.schober
[FYI] richard.wallis matt.collins michael.trepka


#ROBOMERGE-SOURCE: CL 11291585 via CL 11291586
#ROBOMERGE-BOT: (v647-11244347)

[CL 11291616 by will damon in Main branch]
2020-02-07 10:39:25 -05:00
peter sauerbrei
fc5642954c fixes for the PSO cache to make it so we can prioritize and compile only those PSOs up front we want based on user category
#rb chris.bunner, ben.salem
[FYI] will.fissler, michael.trepka


#ROBOMERGE-SOURCE: CL 11291332 via CL 11291336 via CL 11291342 via CL 11291348
#ROBOMERGE-BOT: (v647-11244347)

[CL 11291349 by peter sauerbrei in Main branch]
2020-02-07 10:12:13 -05:00
jeremy moore
60e9de7937 Fixed shader DDC key to use build target platform instead of editor platform to get virtual texture support value.
Rearranged DDC key composition since we need to flush out incorrectly keyed shaders in the cache.
[FYI] mickael.gilabert


#ROBOMERGE-SOURCE: CL 11290017 via CL 11290018 via CL 11290019
#ROBOMERGE-BOT: (v647-11244347)

[CL 11290020 by jeremy moore in Main branch]
2020-02-06 23:25:12 -05:00
Josh Adams
aa9705149b Copying Private-LoadTimes-4.24 stream to Main. Biggest changes are in Materials/Shader memory freezing.
#rb none

[CL 11282608 by Josh Adams in Main branch]
2020-02-06 13:13:41 -05:00
florin pascu
954a19f055 MaskedOnly Prepass Mobile Off by default. Enable with r.Mobile.EarlyZPassOnlyMaterialMasking=1. Requires shaders cooking!
#rb  Dmitriy.Dyomin, Jack.Porter
#jira UE-85333


#ROBOMERGE-SOURCE: CL 11278935 via CL 11278936 via CL 11278937
#ROBOMERGE-BOT: (v0-11244347)

[CL 11278938 by florin pascu in Main branch]
2020-02-06 05:41:00 -05:00
Stefan Boberg
55a8b15f1f Copying //UE4/Dev-Core to Main (//UE4/Main)
#rb none

[CL 11258477 by Stefan Boberg in Main branch]
2020-02-05 14:26:36 -05:00
arciel rekman
650c7ce628 Resubmitting: stabilize the order of shaders in the shader library (FORT-255406)
- Previously the order of shaders would be defined by the order of adding them, which can vary even without any change due to SCWs finishing the jobs at a different time.
- Fixed a previous compile issue and added comments re: TSortedMap and TMap compatibility after checking with the Core team.

#rb Daniel.Lamb (discussed)
[CODEREVIEW] Dmitriy.Dyomin


#ROBOMERGE-SOURCE: CL 11248093 via CL 11248095 via CL 11248101
#ROBOMERGE-BOT: (v647-11244347)

[CL 11254818 by arciel rekman in Main branch]
2020-02-05 12:49:12 -05:00
bob tellez
0fa930ad38 Back out changelist 11224248. CIS error
[FYI] Arciel.Rekman


#ROBOMERGE-SOURCE: CL 11225960 via CL 11228025 via CL 11228838
#ROBOMERGE-BOT: (v644-11213502)

[CL 11241725 by bob tellez in Main branch]
2020-02-04 22:32:52 -05:00
arciel rekman
77f933e4ce Stabilize the order of shaders in the shader library (FORT-255406).
- Previously the order of shaders would be defined by the order of adding them, which can vary even without any change due to SCWs finishing the jobs at a different time.

#rb Daniel.Lamb (discussed)
[CODEREVIEW] Dmitriy.Dyomin


#ROBOMERGE-SOURCE: CL 11224248 via CL 11227707 via CL 11228378
#ROBOMERGE-BOT: (v644-11213502)

[CL 11241606 by arciel rekman in Main branch]
2020-02-04 22:30:44 -05:00
Chris Gagnon
c3f9a18841 Merge from Main in prep for Dev-Tools-Staging Copy up
#rb none

[CL 11221539 by Chris Gagnon in Dev-Tools-Staging branch]
2020-02-04 17:00:31 -05:00
jian ru
01aa1ac5a1 Added an option that moves light octree traversal and FLightPrimitiveInteraction creation to an async task. The task overlaps with a large portion of InitViews (e.g. ComputeViewVisibility) and sync doesn't happen until InitDynamicShadows. It can even overlap with RenderPrePass r.DoInitViewsLightingAfterPrepass is set. This option reduced RT time by 0.53 ms on a type of consoles in a 10-run replay A/B test.
[FYI] Krzysztof.Narkowicz,Ben.Woodhouse


#ROBOMERGE-SOURCE: CL 11206777 via CL 11206820 via CL 11206876
#ROBOMERGE-BOT: (v643-11205221)

[CL 11206936 by jian ru in Main branch]
2020-02-03 12:03:27 -05:00
Rolando Caloca
f63a3e857e Merging //UE4/Main@11178322 to Dev-RenderPlat-Staging
#rnx
#rb none

[CL 11195678 by Rolando Caloca in Dev-RenderPlat-Staging branch]
2020-01-31 10:34:10 -05:00
Chris Gagnon
76c6bcbfeb UE4 Main merged to Dev-Tools-Staging at CL 11164391
#rb none

[CL 11171981 by Chris Gagnon in Dev-Tools-Staging branch]
2020-01-29 20:39:37 -05:00
devin doucette
6eec62bcf6 Optimize ShaderPipelineCacheToolsCommandlet
- Optimize parsing of FVertexElement, FDepthStencilStateInitializerRHI, FBlendStateInitializerRHI, FPipelineFileCacheRasterizerState, FPipelineCacheFileFormatPSO using FStringView and TArray<FStringView, TInlineAllocator<N>> to avoid temporary allocations.
- Optimize parsing and string conversion of FCompactFullName, FStableShaderKeyAndValue using FStringView and T[Ansi]StringBuilder to avoid temporary allocations.
- Use TInlineAllocator<16> for FCompactFullName to eliminate dynamic allocations. The size was selected by profiling a title with many shaders.
- Serialize FEditorShaderStableInfo directly to UTF-8 instead of converting to it later to avoid converting every name from ASCII to UTF-16 to UTF-8 during the serialization process.
- Load input files in parallel now that millions of allocations have been eliminated.
- Make the PSOSC serialization self-test only run when verbose logging is enabled.
- Optimize ParseQuoteComma by using FStringView and TArray<FStringView, TInlineAllocator<N>> to avoid temporary allocations.

These changes reduced the execution time of the build command by 90% on a large title. The time savings affect full, iterative, and single-package cooks.

#rb Arciel Rekman, Zousar.Shaker

#ushell-cherrypick of 10860101 by devin.doucette


#ROBOMERGE-SOURCE: CL 11163162 via CL 11163163 via CL 11163164
#ROBOMERGE-BOT: (v640-11091645)

[CL 11166858 by devin doucette in Main branch]
2020-01-29 15:15:45 -05:00
jian ru
5b88ce6205 Replace the SRVs TMap in FSceneRenderTargetItem with an array and clear cubemap SRVs after mip gen. This saved 0.09 ms RT time according to a 10-run replay A/B test.
#ROBOMERGE-SOURCE: CL 11161773 via CL 11161777 via CL 11161784
#ROBOMERGE-BOT: (v640-11091645)

[CL 11164813 by jian ru in Main branch]
2020-01-29 14:13:26 -05:00
Ben Ingram
905d84f1fa #jira UE-87494
Consistently use Buffer rather than Texture for VT feedback buffer
#rb none

[CL 11118786 by Ben Ingram in Main branch]
2020-01-27 15:20:30 -05:00
PJ Kack
ef8a7b620e AUTO MERGE
Merging //UE4/Main @ 11112898 to //UE4/Dev-Core (dev-core-l0178)

#rb none

(ushell-p4-mergedown)

[CL 11113593 by PJ Kack in Dev-Core branch]
2020-01-26 11:35:42 -05:00
PJ Kack
3a9ca4d2f9 Merging //UE4/Main @ 11112898 to //UE4/Dev-Core (dev-core-l0178)
#rb none

(ushell-p4-mergedown)

[CL 11113592 by PJ Kack in Dev-Core branch]
2020-01-26 11:33:22 -05:00