Commit Graph

14638 Commits

Author SHA1 Message Date
sebastien lussier
70eb0e1bf4 MergeMergeUtility - Fix broken hash computation in FProxyMeshDescriptor
* Return values of TypeCrc32() was ignored in some cases
#rb JeanFrancois.Dube

[CL 32300997 by sebastien lussier in ue5-main branch]
2024-03-18 11:06:55 -04:00
matthew sorrels
b1018568f8 Fix crash when cooking Android OpenGLES on Linux by replacing swscanf based parser with native FindNextHLSLDefinitionOfType
#jira UE-205727
#rnx
#rb dan.elksnitis, Dmitriy.Dyomin, Florin.Pascu

[CL 32299451 by matthew sorrels in ue5-main branch]
2024-03-18 10:05:42 -04:00
sebastien lussier
5115db18b1 Merge Actor - Properly handle custom primitive data when baking materials
* Forward custom primitive data info to material baking
* Added Custom Primitive Data case to material baking engine test
* Also updated broken Material Baking tests screenshots as subtle differences are now occuring on shadows... Disabled shadows from the map light source to minimize noise in future test results
#rb JeanFrancois.Dube

#virtualized

[CL 32298478 by sebastien lussier in ue5-main branch]
2024-03-18 09:05:54 -04:00
dan thompson
32ef1ba307 Updating RCD logging to segregate optional containers.
[CL 32286270 by dan thompson in ue5-main branch]
2024-03-15 18:35:50 -04:00
laura hermanns
4b6652e7dc [DXC] Fix CIS build issue with DXC by interpreting float-literals as float instead of double.
- Interpret floating-point literlas as 'float'-type instead of 'double'-type in ASTContext.
- Integrated missing fix in DeclPrinter.cpp that was accidentally reverted during GitHub merge.

#rnx
#rb graham.wihlidal
[FYI] Yuriy.Odonnell, Dan.Elksnitis, Chris.Kulla, Massimo.Tristano

[CL 32280236 by laura hermanns in ue5-main branch]
2024-03-15 14:37:03 -04:00
zousar shaker
84b95ef680 Fix bug in DDC2 texture build path caused by using SourceMips after it had been cleared by BuildTexture.
#rb devin.doucette

[CL 32278799 by zousar shaker in ue5-main branch]
2024-03-15 13:43:13 -04:00
johan berg
c5b4dd800f Trace autostart for Mac/Linux
Implements trace auto-start/auto-connect for Linux and Mac platforms. Applications can now automatically start tracing whenever Unreal Insights application is running. The behaviour can be controlled using the UI in Insights session browser or by starting the application with `-traceautostart=x`.

#rb ionut.matasaru
#jira UE-195281

[CL 32270924 by johan berg in ue5-main branch]
2024-03-15 08:07:21 -04:00
christopher waters
07a7863d21 HlslParser improvements
- Adding support for templated function return types (Texture2d<float> etc)
- Adding support for ignoring empty statements (ie a ";" without code before it)

#rb Laura.Hermanns

[CL 32263255 by christopher waters in ue5-main branch]
2024-03-14 18:44:20 -04:00
laura hermanns
815e1b4690 [DXC] Temporarily disable DXC versioning to fix new DXC version with UBA.
"ImageGetDigestStream" is used to hash the dxcompiler.dll and dxil.dll files to detect outdated SCW builds. This function is buggy on POSIX/Wine, which is used in UBA and causes all shader complations through DXC to fail.

#rb Yuriy.Odonnell
[FYI] Henrik.Karlsson, Dan.Elksnitis
#rnx

[CL 32262207 by laura hermanns in ue5-main branch]
2024-03-14 18:08:57 -04:00
matanshukry
4de594b05f [DXC] DXC release-1.8.2403 update; Re-introduce CL 32167265 with fixes.
This re-introduced the backed-out CL for the DXC update including fixes to detect derivitive opcodes in DXIL containers and a null-pointer fix in the DXIL code generator (GitHub draf #6411).
Only the Windows binary is updated since no other platform uses the DXIL code generator. Linux and Mac binary updates will follow in a separate CL.

Also replaced DXIL binary with v1.8 obtained from https://github.com/microsoft/DirectXShaderCompiler/releases/tag/v1.8.2403

#jira UE-203636
#rb Graham.Wihlidal, Jeremy.Moore
[FYI] Bob.Tellez, Dan.Elksnitis

[CL 32257727 by matanshukry in ue5-main branch]
2024-03-14 16:16:24 -04:00
josh adams
554a1b56b6 [Backout] - CL32203634
[FYI] bob.tellez
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL32181613
[FYI] Josh.Adams
Original CL Desc
-----------------------------------------------------------------
- Fixing a bug where two branches for SourceControlSettings (project vs engine-only) would re-use one of the branches, instead of loading it a second time (so FIndBranch() will now check the FIlename if appropriate)
- Added support in FConfigContext for contexts that empty out the PRojectConfigDir to only load Engine ini layers
#rb paul.chipchase

[CL 32254428 by josh adams in ue5-main branch]
2024-03-14 15:05:16 -04:00
christopher waters
4ecaa5b7ef Fixing _Static_assert parsing.
- _Static_assert should be handled on the global scope.
- GetCurrentToken() doesn't advance to the next token, you have to PeekToken() and then MatchToken.
- No output was written on successful parsing of _Static_assert
- Removing debug assert when writing static_assert code back out.

#rb Laura.Hermanns

[CL 32250433 by christopher waters in ue5-main branch]
2024-03-14 13:31:50 -04:00
christopher waters
63dcb443e0 Removing LogD3D11ShaderCompiler and LogD3D12ShaderCompiler in favor of LogD3DShaderCompiler.
#rb Laura.Hermanns

[CL 32250370 by christopher waters in ue5-main branch]
2024-03-14 13:29:58 -04:00
david harvey
79752fe11f [trivial] set a default LogFontSize for OutputLog
- code default size of 0 was only overridden if BaseEditorPerProjectUserSettings.ini existed which isn't the case for staged Programs

#rnx
#rb david.harvey

[CL 32248258 by david harvey in ue5-main branch]
2024-03-14 12:25:33 -04:00
mark lintott
a4356326da Added Horde Analytics Backend Module which can automatically set the Horde Server URL if one is present in the Horde Environment Variable
Horde Analytics Backend essentially creates the same IAnalyticsProviderET interface but
Added GetServerURL to FHorde interface which retrieves the Horde Environment Variable
Changed the Horde Analytics backends in teh config files to use the new HordeAnalytics backend  instead of the AnalyticsET backend.
[FYI] Ben.Marsh

[CL 32241969 by mark lintott in ue5-main branch]
2024-03-14 07:56:01 -04:00
halfdan ingvarsson
74dd3f86a2 Skeletal Mesh: Create healthy tangents when reconstructing normals/tangents for render and the UVs are non-existent or degenerate.
#rb Alexis.Matte
#rnx

[CL 32236572 by halfdan ingvarsson in ue5-main branch]
2024-03-13 21:53:15 -04:00
zousar shaker
d524494c62 Address missing file descriptor close on Mac/Linux that is related to the lock file handling when launching zenserver. Also fix an incorrect return value from the Mac/Linux implementation of IsLockFileLocked in the case of an orphaned lock file.
#rb stefan.boberg
#jira UE-207039

[CL 32233751 by zousar shaker in ue5-main branch]
2024-03-13 19:29:39 -04:00
chris constantinescu
56b2fd5e18 Move UE component cleanup logic from TestRunner into proper place (introduced at CL 32031322) and fix refactoring (CL 32031169) on Sony platforms to re-allow unpackaged builds
#jira UE-209196
#rb sebastian.lewicki

[CL 32221092 by chris constantinescu in ue5-main branch]
2024-03-13 14:18:48 -04:00
christopher waters
5a8c01556a Adding proper SM6.8 support to ShaderFormatD3D
- Only WorkGraph shaders use this currently.
- SM6.8 needs to set the __SHADER_TARGET_MAJOR and __SHADER_TARGET_MINOR defines
- Changing some logic that was SM6.6 specific to now allow the higher shader model.

#rb Jeremy.Moore

[CL 32220197 by christopher waters in ue5-main branch]
2024-03-13 13:48:54 -04:00
christopher waters
cd0d92d515 Moving copy-pasted code into ShaderCompilerCommon.
#rb dan.elksnitis, jeannoe.morissette

[CL 32215186 by christopher waters in ue5-main branch]
2024-03-13 11:33:04 -04:00
julien stjean
67d9048ae5 Large perf improvement for the editor in a large project:
Reworked the ClassDataSource so that it doesn't require a full data refresh when a module is Loaded, Unloaded or Reloaded.
Deprecated the capacity for a ContentBrowser Data Source to request a full data refresh since this doesn't well scale on large projects.

Added a way to query a IReload for the classes that were reinstancited.

Fixed a bug in the FNativeClassHierarchy::GatherMatchingNodesForPaths function. It failed a getting a existing class node if a folder in its path had the same name has the class.

#jira UE-208789

#rb kevin.macaulayvacher

[CL 32212553 by julien stjean in ue5-main branch]
2024-03-13 10:24:34 -04:00
dan elksnitis
8906e7ca0b [shaders] further fixes for debug dump artifacts. if the shader format modifies source, ensure that is output as the <ShaderTypeName>.usf file as .bat files for invoking platform compiler directly use this version; in this case we output the directcompile-compatible version with a "_DirectCompile" suffix attached. For backends that don't modify source (i.e. don't set the ModifiedShaderSource field on the output struct) just output the directcompile-compatible version as the single <ShaderTypeName>.usf file (CL also includes cosmetic changes to suffix the dumped .usf files instead of prefixing, to avoid needing extra logic to combine prefixes when the backend already adds its own)
#rb christopher.waters
#jira UE-208327

[CL 32211196 by dan elksnitis in ue5-main branch]
2024-03-13 09:31:38 -04:00
richard malo
c9222edfdb Added new class UDeletedObjectPlaceholder to properly handle when an external package contains no more object.
- Ground work for full support of moving an actor from one External Data Layer to another
- Fixes the Save Package dialog not showing the last valid actor's display name (instead was showing the package name)
- Fixes empty packages not properly cleaned up by ULevel::CleanupLevel
- Changing level's bUseExternalActors from true to false and reloading the level without saving now properly works
#rb jeanfrancois.dube

[CL 32209376 by richard malo in ue5-main branch]
2024-03-13 08:01:53 -04:00
bob tellez
32b56658dd [Backout] - CL32181613
[FYI] Josh.Adams
Original CL Desc
-----------------------------------------------------------------
- Fixing a bug where two branches for SourceControlSettings (project vs engine-only) would re-use one of the branches, instead of loading it a second time (so FIndBranch() will now check the FIlename if appropriate)
- Added support in FConfigContext for contexts that empty out the PRojectConfigDir to only load Engine ini layers
#rb paul.chipchase

[CL 32203657 by bob tellez in ue5-main branch]
2024-03-13 00:39:01 -04:00
jeremy moore
804418158d #jira UE-206245, UE-206247
Add basic DX12 Work Graph support.
For this first pass there is no exposed RHI functionality for directly dispatching a work graph. Instead shader bundles have been extended to support a work graph based implementation.
Nanite compute materials now can use work graph shader bundles on D3D12 when r.Nanite.AllowWorkGraphMaterials and r.Nanite.Bundle.Shading are both set. Both of these default to off at the moment.
Also DataDrivenPlatformInfo now expose bSupportsWorkGraphs. This is false everywhere, but will be enabled for D3D12_SM6 as soon as we have the latest DXC shader compiler with lib_6_8 support submitted.
#rb Kenzo.Terelst, Yuriy.ODonnell

[CL 32196717 by jeremy moore in ue5-main branch]
2024-03-12 18:42:09 -04:00