Commit Graph

1137 Commits

Author SHA1 Message Date
Brian Karis
16cb449d03 Added FCompressedTransform.
Compressed version of FRenderTransform. Used in GPU scene for instance transforms.
Was reverted in main due to perf regression. Brought back but defined out to help merge conflicts.

#rb graham.wihlidal

[CL 17545206 by Brian Karis in ue5-main branch]
2021-09-16 18:15:01 -04:00
carlmagnus nordin
1eff033306 Fixed cyclic dependency IoStoreUtiltities->RenderCore->PakFileUtilities->IoStoreUtilities by removing unused pak order file functionality from ShaderCodeLibrary
#rnx
#rb per.larsson

#ROBOMERGE-AUTHOR: carlmagnus.nordin
#ROBOMERGE-SOURCE: CL 17522942 via CL 17523034 via CL 17523046 via CL 17523058 via CL 17523070
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v870-17433530)

[CL 17523079 by carlmagnus nordin in ue5-main branch]
2021-09-15 13:31:21 -04:00
Arciel Rekman
0ad9ba13ff ShaderCodeLibrary: a hopeful fix for the PVS warning.
#rb none
#jira UE-126630

[CL 17520566 by Arciel Rekman in ue5-main branch]
2021-09-15 11:25:31 -04:00
carlmagnus nordin
341637ba37 IoStore: Changes to allow IoStore to run as part of UnrealPak instead of as a cmdlet
#rb per.larsson
#rnx

#ROBOMERGE-AUTHOR: carlmagnus.nordin
#ROBOMERGE-SOURCE: CL 17517167 via CL 17517189 via CL 17517191 via CL 17519703 via CL 17519714
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v870-17433530)

[CL 17519729 by carlmagnus nordin in ue5-main branch]
2021-09-15 10:40:05 -04:00
christopher waters
a8f866f355 D3D shader cleanup:
- Removed some unnecessary code from D3D shader compilers.
- Removing shader VendorExtensions runtime data from platforms that don't need them.
- Turning FShaderCodeFeatures into a set of flags to reduce its size. Adding a few new flags for future use.
- Moved the common D3D12 shader data and creation code into shared locations to cut down on code duplication.
- Removed the unnecessary copying of header data from all D3D12 shader types.
- Removed FD3D12ShaderBytecode since its values can be inferred from other shader data.

#jira none
#rb rolando.caloca, arciel.rekman
#preflight 6140c2df3aa82d000149f13b

[CL 17509617 by christopher waters in ue5-main branch]
2021-09-14 16:28:06 -04:00
Rune Stubbe
4b544e145e FScatterUploadBuffer::Init now respects GetMaxBufferDimension()
Power of two rounding to mitigate fragmentation now happens in bytes, instead of elements, so we get fewer unique buffer sizes.
#rb ola.olsson
#preflight 613f61e53bbb4800011187f1

[CL 17493448 by Rune Stubbe in ue5-main branch]
2021-09-13 12:56:00 -04:00
Jeremy Moore
3a1431cd74 Make "r.vt.FeedbackFactor" something that can be changed at runtime, instead of needing a restart/shader recompile.
This should be useful if we want to vary the feedback trade offs for different modes.
Did some comparisons of shader ISA and ALU cost is unchanged.
#jira none
#ushell-cherrypick of 17483512 by Jeremy.Moore

[CL 17491509 by Jeremy Moore in ue5-main branch]
2021-09-13 09:56:49 -04:00
Florin Pascu
89e943683a Read r.MobileNumDynamicPointLights from platform ini instead of project cvar
Add r.MobileNumDynamicPointLights to the shader keystring
#jira UE-125928
#rb Dmitriy.Dyomin, Jack.Porter
#preflight 6139e0f4f9a522000139e1bd
#ushell-cherrypick of 17470398 by Florin.Pascu

[CL 17470936 by Florin Pascu in ue5-main branch]
2021-09-09 06:58:46 -04:00
aurel cordonnier
e3f7878676 Merge from Release-Engine-Test @ 17462327 to UE5/Main
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17463546 by aurel cordonnier in ue5-main branch]
2021-09-08 16:42:26 -04:00
carl lloyd
337e294e7e Added support for padding attribute locations automatically for OpenGLES
Fixed OpenGLES preview

#rb Lukas.Hermanns

[CL 17460403 by carl lloyd in ue5-main branch]
2021-09-08 13:00:04 -04:00
Arciel Rekman
566d2449a6 Shader compiler improvements.
Local shader compiler:
 - Not making 1 job batches (for High prio jobs) on startup
 - Randomizing pending job selection to reduce chance that multiple 60+ sec jobs get into a single batch

 (the above have the most effect on speed up, below is optional/misc)
 - Pushing the completed jobs back to manager before, and not after, pulling new ones to reduce idle time
 - Processing jobs in FIFO rather than LIFO order (change to LIFO seems like an ODSC regression? Hard to say definitively if it's a regression from the numbers, but seems odd to have the earliest jobs processed last)
 - Parallel processing of input and output files (starts sequential by default to reduce the CPU overhead, but is enabled if we ever see too long write/read)
 - More insights scopes

Distributed:
  - Not avoiding local machine for XGE on startup

Both:
 - Input file compression (disabled by default, need to better figure out when it's beneficial in a general case. Mostly for people with really slow I/O and XGE over VPN).
 - More stats, also more dense stat output. Removed an unimportant one, added stats about the batches.

#rb Jason.Nadro, Ben.Ingram
#[review] @Jason.Nadro, @Ben.Ingram
#preflight 6132ec79bf137d0001ae91ee
#jira UE-125101

#ushell-cherrypick of 17448576 by Arciel.Rekman

[CL 17448989 by Arciel Rekman in ue5-main branch]
2021-09-07 15:48:51 -04:00
Josie Yang
a62f714a51 Morph target engine modifications for 3rd party plugin
#fyi alexis.matte, brian.white, christopher.waters, mihnea.balta, rolando.caloca, will.damon, halfdan.ingvarsson, kevin.ortegren

[CL 17444191 by Josie Yang in ue5-main branch]
2021-09-07 09:55:32 -04:00
Florin Pascu
3dac1963fb Workaround for Editor deadlock in material editor while in Mobile Preview
#jira UE-123665
#rb Dmitriy.Dyomin
#preflight 6136ee109c40ec0001de27f5

[CL 17441770 by Florin Pascu in ue5-main branch]
2021-09-07 02:48:22 -04:00
yangke li
0b0ab960e6 add ARM ASTC Encoder, support HDR profile, add astc hdr pixel format for opengl, vulkan and metal
todo:  hdr decode at runtime when astc hdr not supported
needs to figure out why ARM Encoder is much slower than ISPC, use ARM only for HDR Textures might be a good compromise.
#review-17314731
#jira UE-119388

[CL 17441496 by yangke li in ue5-main branch]
2021-09-07 01:23:09 -04:00
tiago costa
2a2337cef9 Added r.Raytracing.UseOfflineBVH to control whether to use offline built BVHs.
#preflight 61363483bdfce00001d57e87
#rb Yuriy.ODonnell


#ROBOMERGE-AUTHOR: tiago.costa
#ROBOMERGE-SOURCE: CL 17439046
#ROBOMERGE-BOT: (v870-17433530)

[CL 17439864 by tiago costa in ue5-main branch]
2021-09-06 15:20:38 -04:00
guillaume abadie
1b35fa0469 Migrates D3D to submit all loose shaders parameters in a single RHISetShaderParameter()
#rb none
#preflight 61323f857d30040001b77b61


#ROBOMERGE-OWNER: guillaume.abadie
#ROBOMERGE-AUTHOR: guillaume.abadie
#ROBOMERGE-SOURCE: CL 17431343
#ROBOMERGE-BOT: (v870-17433530)
#ROBOMERGE-CONFLICT from-shelf

[CL 17438616 by guillaume abadie in ue5-main branch]
2021-09-06 11:28:16 -04:00
christopher waters
15fb3777bf Adding a required StencilRef argument to SetGraphicsPipelineState.
#jira none
#rb zach.bethel, mihnea.balta, florin.pascu
#preflight 61312f4a79ce170001d4a79e
#robomerge[bot1] emt

[CL 17422777 by christopher waters in ue5-main branch]
2021-09-03 11:59:36 -04:00
Lukas Hermanns
c13d78956d Extract source location from shader compiler errors if backend doesn't provide it separately.
#rb Krzysztof.Narkowicz
#fyi Rolando.Caloca, Arciel.Rekman
#jira none
#rnx

[CL 17420624 by Lukas Hermanns in ue5-main branch]
2021-09-03 10:12:13 -04:00
ola olsson
aa43f18c0a Replace side-effect invalidation during instance/cluster cull with a buffer appended to at instance cull.
- preparational step to enable HZB culling of invalidations in an uniform way.
- also add FComputeShaderUtils helper to set up an indirect dispatch.

#rb andrew.lauritzen
#preflight 6130818017a8610001b0cfc7


#ROBOMERGE-SOURCE: CL 17400532
#ROBOMERGE-BOT: (v865-17346139)

[CL 17400838 by ola olsson in ue5-main branch]
2021-09-02 07:12:30 -04:00
tiago costa
fd1b310235 Support FRWBuffer scattered updates.
- Modified MemsetResource and MemcpyResource to take number of elements instead of number of bytes as input, since FRWBuffer can use different formats.

#rb Yuriy.ODonnell
#jira UE-120168
#preflight 612f98feb6b29c00013fbb13

[CL 17394373 by tiago costa in ue5-main branch]
2021-09-01 19:20:17 -04:00
charles derousiers
810cb7dac2 Add RDG Upload variant which take a lambda function for freeing the CPU memory once the data are uploaded.
#rb zach.bethel
#preflight 612f0d3779d62b0001b43362


#ROBOMERGE-SOURCE: CL 17383153
#ROBOMERGE-BOT: (v865-17346139)

[CL 17383415 by charles derousiers in ue5-main branch]
2021-09-01 03:08:48 -04:00
Rolando Caloca
dbff4319b2 UE5 - Remove some hlslcc vestiges from Vulkan
#rb Dmitriy.Dyomin, Lukas.Hermanns, jeannoe.morissette

[CL 17369648 by Rolando Caloca in ue5-main branch]
2021-08-31 12:04:21 -04:00
zach bethel
49f0d28560 Fixed RDG debug crash.
#rb trivial
#jira UE-118756

[CL 17322944 by zach bethel in ue5-main branch]
2021-08-26 14:04:36 -04:00
charles derousiers
fea1dd0b75 Enable resummarize on HTile data for hair visibility pass.
#rb none
#preflight 61261adeba9f0e0001d834a2


#ROBOMERGE-SOURCE: CL 17300694
#ROBOMERGE-BOT: (v861-17282326)

[CL 17300699 by charles derousiers in ue5-main branch]
2021-08-25 06:52:32 -04:00
David Harvey
0c2d6f0261 fix FPlatformProcess::SetupRHIThread calling location.
#jira UECON-499
#rnx
#fyi mihnea.balta

[CL 17300129 by David Harvey in ue5-main branch]
2021-08-25 05:31:37 -04:00