Commit Graph

2199 Commits

Author SHA1 Message Date
zach bethel
61311f64b7 Fixed validation error in transient allocator due to transient allocator being destroyed prior to the CustomDepth texture being destroyed.
#jira UE-169984

[CL 26692458 by zach bethel in ue5-main branch]
2023-07-28 19:31:39 -04:00
charles derousiers
2365ee5308 Change D3D diagnostic buffer to output readable assert message (file/line/condition/message).
Use with check() / checkf()

#rb dan.elksnitis, christopher.waters
[FYI] yuriy.odonnell

[CL 26680005 by charles derousiers in ue5-main branch]
2023-07-28 13:55:18 -04:00
zach bethel
a2c7d0ff1b Refactored OnTransformChanged to take an RHI command list so that it can be moved off the render thread.
[CL 26674727 by zach bethel in ue5-main branch]
2023-07-28 11:29:43 -04:00
dan elksnitis
64a5c76444 [shaders] move custom vulkan bindless parameter parser behaviour into baseclass (parameter parser being part of the serialized preprocess output means subclassing is problematic)
#rb JeanNoe.Morissette

[CL 26674182 by dan elksnitis in ue5-main branch]
2023-07-28 11:11:42 -04:00
bryan sefcik
64f140d78d Added shader.build.cs file.
Updated build.cs files to use new shader module.

#jira
#rb Joe.Kirchoff and guillaume.abadie

[CL 26664107 by bryan sefcik in ue5-main branch]
2023-07-27 22:53:25 -04:00
ross goldblum
f222fa5a1d Add GNearClippingPlane_RenderThread to be accessed on only on the RenderThread and use GNearClippingPlane otherwise. This avoids the need for the FlushRenderingCommands call which was causing a ~50ms hitch on Switch.
[REVIEW] [at]alex.nischwitz [at]ben.woodhouse [at]matt.hoffman [at]zach.bethel

[CL 26652729 by ross goldblum in ue5-main branch]
2023-07-27 16:06:11 -04:00
tom holmes
c03020e505 Better fix for UE-190842 generate new shaderversion guid and restore previous DDC logic
#rb dan.elksnitis
#jira UE-190842
#tests ran editor, cook lyra

[CL 26630815 by tom holmes in ue5-main branch]
2023-07-26 21:22:58 -04:00
michael balzer
fd6ff6a106 RenderCore: Fix AddDrawTexturePass() for specific mip level in different format
#rb zach.bethel

[CL 26618725 by michael balzer in ue5-main branch]
2023-07-26 15:54:42 -04:00
dmitriy dyomin
6a350234e4 Fixed assert related to mobile GPUScene on SM5 static shader platforms
[CL 26601823 by dmitriy dyomin in ue5-main branch]
2023-07-26 05:55:48 -04:00
christopher waters
111e1d5046 Fixing various issues with shader previews
- PC previews of SM6 platforms weren't going to DXC correctly.
- Preview platform include paths weren't initialized when compiling with local-only shader compiles.
- A few preview platform DDSPI settings weren't being initialized correctly based on the capabilites of the preview format.

#rb arciel.rekman, dan.elksnitis

[CL 26589147 by christopher waters in ue5-main branch]
2023-07-25 17:16:48 -04:00
jason hoerner
2aae012935 Shader Compiler static analysis warning: need to move include of Runtime/RenderCore/Internal/ShaderCompilerDefinitions.h to top of ShaderCore.h to avoid "Include after first code block" warning. To make this move, a structure required by that header (FShaderCompilerDefinitions) needed to be moved to a different header as well.
#jira UE-191105
#rnx
#rb trivial

[CL 26585005 by jason hoerner in ue5-main branch]
2023-07-25 15:23:02 -04:00
elizabeth baumel
1349184c6d Fix header guard warning.
#jira UE-191104
#rb trivial

[CL 26584006 by elizabeth baumel in ue5-main branch]
2023-07-25 14:52:55 -04:00
keaton stewart
345c4af69d [Backout] - CL26579205 Compile errors in GPUDebugCrashUtils.h
[FYI] elizabeth.baumel
Original CL Desc
-----------------------------------------------------------------
Only include GPU crash utils when it's enabled, fix warning about missing header guard

#jira UE-191104
#rb trivial

[CL 26581778 by keaton stewart in ue5-main branch]
2023-07-25 14:06:08 -04:00
jon cain
27d55af4ed Backout of CL 25764433 to temporarily resolve render resource crash under certain circumstances when pushing changes in UEFN.
#rb Jason.Nadro, Andriy.Tylychko, Sebastian.Thomeczek

[CL 26580177 by jon cain in ue5-main branch]
2023-07-25 13:30:09 -04:00
elizabeth baumel
ebb89f12f4 Only include GPU crash utils when it's enabled, fix warning about missing header guard
#jira UE-191104
#rb trivial

[CL 26579264 by elizabeth baumel in ue5-main branch]
2023-07-25 13:03:22 -04:00
jason hoerner
a843f96b96 Shader Compiler: Fix for circular include issue temporarily introduced as a step towards deprecation of public access to FShaderCompilerDefinitions structure.
#jira UE-190944
#rnx
#rb trivial

[CL 26560769 by jason hoerner in ue5-main branch]
2023-07-24 21:04:14 -04:00
aleksander netzel
d700a739fa Add offline BLAS compression for supporting platforms:
* Add IsCompressed() to FRHIRayTracingGeometry.
* If BLAS is compressed it will trigger a build that will do the decompression.
* Controlled by target platform setting "Enable Static Mesh Offline BVH Compression"
* Enabled by default.

#jira UE-146162
#rb yuriy.odonnell

[CL 26559972 by aleksander netzel in ue5-main branch]
2023-07-24 20:01:35 -04:00
elizabeth baumel
623e32a666 Fix non-unity build error.
[CL 26558253 by elizabeth baumel in ue5-main branch]
2023-07-24 18:26:26 -04:00
elizabeth baumel
57e3743757 Add debug utility to crash the GPU. From the console, use the command GPUDebugCrash with arguments for the crash type and queue you want to crash on. Usage: GPUDebugCrash [hang | pagefault | platformbreak [direct | compute]]. Crash type is required, queue will default to the graphics queue if unspecified.
#rb mihnea.balta

[CL 26549389 by elizabeth baumel in ue5-main branch]
2023-07-24 13:39:21 -04:00
tom holmes
e0edc4028e Move new ECompilerFlags CFLAG_GenerateSymbolsInfo to the end of the enum
Repair tests / code expecting specific values to remain consistent

[REVIEW] [at]jason.nadro
#jira UE-190866

[CL 26546726 by tom holmes in ue5-main branch]
2023-07-24 12:25:32 -04:00
daniele vettorel
c398b19cea Handle the case where the PSO cache mask is set before the cache is opened.
Before, tasks would only be enqueued whenever the mask was changed. If the pipeline file was opened after the mask was set, the task created as a result of the file opening would not be kicked off until the mask was set again (which could be never).

#pf 64b999681c55de20cf59e305

[CL 26546462 by daniele vettorel in ue5-main branch]
2023-07-24 12:22:10 -04:00
jason hoerner
7f22080814 Shader Compiler: Made FShaderCompilerDefinitions private, to reduce code publicly visible in ShaderCore.h. For now, it's just marked deprecated for 5.4, but will be hidden more generally in 5.5.
#rnx
#rb yuriy.odonnell dan.elksnitis jason.nadro

[CL 26534998 by jason hoerner in ue5-main branch]
2023-07-22 06:35:10 -04:00
tom holmes
c847704982 Mutate DDC string since platform symbol serialization data changed
Protect WriteSymbolData if the Filename is empty

#jira UE-190842
[REVIEW] [at]matt.peters
#tests cooking CitySample

[CL 26528753 by tom holmes in ue5-main branch]
2023-07-21 18:27:54 -04:00
Matt Peters
e88035918f ShaderLibrary: Logging: Restore LogShaderLibrary stat messages to Display because some farm jobs only capture stdout.
#rb None, trivial
#rnx

[CL 26513514 by Matt Peters in ue5-main branch]
2023-07-21 11:30:30 -04:00
tom holmes
ece26e8d8b Support for slim ShaderSymbols.info / r.Shaders.SymbolsInfo=1
Platforms can return a platform hash and a blob of text data to go with that hash
These are stored one / line in ShaderSymbols.info in lieu of full PDB info
Useful when full shader PDBs are impractically large, info-only is much smaller

#rb dan.elksnitis, john.huelin, serge.bernier
#tests test on cooking Lyra, various platforms, noddc and ddc

[CL 26496825 by tom holmes in ue5-main branch]
2023-07-20 16:51:51 -04:00