Commit Graph

3092 Commits

Author SHA1 Message Date
Kevin Ortegren
3fb95ec5c1 Fix triggered assert caused by nullptr in an auto test
#rb Daniel.Wright

[CL 4685988 by Kevin Ortegren in Dev-Rendering branch]
2019-01-07 14:54:29 -05:00
Rolando Caloca
26cf301968 DR - hlslcc - Fix for samplers getting removed while inlining
#rb none
#rnx

[CL 4683264 by Rolando Caloca in Dev-Rendering branch]
2019-01-04 17:38:16 -05:00
Guillaume Abadie
ca8389b9ec s/UBMT_GRAPH_TRACKED_/UBMT_RDG_ for better naming consistency.
#rb none

[CL 4682491 by Guillaume Abadie in Dev-Rendering branch]
2019-01-04 14:52:46 -05:00
Marcus Wassmer
834e95f3d3 Merging //UE4/Dev-Main@4680011 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none

[CL 4680455 by Marcus Wassmer in Dev-Rendering branch]
2019-01-03 19:28:34 -05:00
Marcus Wassmer
cbfcbbb93b Merging //UE4/Dev-Main@4662404 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none
Should be just copyright updates

[CL 4680440 by Marcus Wassmer in Dev-Rendering branch]
2019-01-03 19:16:26 -05:00
Yuriy ODonnell
92196d3f64 Implemented ray tracing shader compile batch script generation and shader worker direct compile support
#rb Rolando.Caloca

[CL 4678725 by Yuriy ODonnell in Dev-Rendering branch]
2019-01-03 11:42:46 -05:00
Kevin Ortegren
020254a323 Fixes auto test ActorMerging/SingleLODMaterialBaking. The new FLightmapResourceCluster was missing from the bake process.
#jira UE-67780, UE-67762
#rb Krzysztof.Narkowicz

[CL 4676197 by Kevin Ortegren in Dev-Rendering branch]
2019-01-02 11:16:39 -05:00
Yuriy ODonnell
f510822c80 Fixed several static analysis warnings
- Optimization flags handling in D3DCreateDXCArguments
- Switch over PipelineType in FD3D12StateCacheBase::ApplyState
- LocalCBVs access in SetRayTracingShaderResources
- Possible nullptr dereference in FD3D12DynamicRHI::RHICreateUniformBuffer

#rb Kevin.Ortegren

[CL 4675940 by Yuriy ODonnell in Dev-Rendering branch]
2019-01-02 08:54:33 -05:00
Marcus Wassmer
4cc088f35c Copying //UE4/Dev-Rendering-HLR@4669539 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none
#lockdown rolando.caloca

[CL 4669551 by Marcus Wassmer in Dev-Rendering branch]
2018-12-18 21:41:17 -05:00
Rolando Caloca
990204b930 DR - vk - Do not emit precision on bool variables
#rb none
#rnx

[CL 4667349 by Rolando Caloca in Dev-Rendering branch]
2018-12-17 18:47:14 -05:00
Marcus Wassmer
3c30baa4f9 Merging //UE4/Dev-Main@4661957 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none
Contains temporary removal of some FGeometryCollectionSceneProxy code that is not compatible with refactor.

[CL 4664599 by Marcus Wassmer in Dev-Rendering branch]
2018-12-15 14:19:22 -05:00
Rolando Caloca
016944b119 DR - hlslcc - Retain sizes for global uniforms (ie float3 doesn't get promoted to float4)
#rb none
#rnx

[CL 4662704 by Rolando Caloca in Dev-Rendering branch]
2018-12-14 14:51:12 -05:00
Rolando Caloca
1c9ffe06d9 DR - Revert all the float3->float4 conversions. Will fix properly on hlslcc
#rb none
#rnx

[CL 4662040 by Rolando Caloca in Dev-Rendering branch]
2018-12-14 11:54:34 -05:00
Richard Wallis
7e5fbb40d7 Fix for side table parsing when using tessellation - consume new line otherwise the rest of the tessellation data is lost.
#jira none
#rb mark.satterthwaite

[CL 4661865 by Richard Wallis in Dev-Rendering branch]
2018-12-14 11:09:25 -05:00
Mark Satterthwaite
e317df0d92 Sort the Metal shader arguments so that all resources are declared by index, this fixes incorrect rendering on Nvidia with the GPUScene enabled though it is unclear why...
#rb none

[CL 4660681 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-13 20:57:35 -05:00
Mark Satterthwaite
e39822bbb0 Remove option for Metal 1.2 support from Mac target settings, Metal 2.0 is now the minimum.
#rb none

[CL 4659463 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-13 16:37:30 -05:00
Rolando Caloca
993ad33db7 DR - Using float3/half3/unit3/int3 as a loose/global parameter will now fail to compile on D3D
#rb none
#rnx

[CL 4659446 by Rolando Caloca in Dev-Rendering branch]
2018-12-13 16:34:44 -05:00
Mark Satterthwaite
96552c85c8 Support lod argument on SRV .Load operations - note that hlslcc DOES NOT support lod arguments on UAV Load/Store operations so far as I can see.
#rb none

[CL 4659166 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-13 15:51:29 -05:00
Mark Satterthwaite
f9a98eb034 Fix Metal 1.2 compilation - post-IAB changes we need to print the inner-type of device buffers directly in some cases, as the normal type printing will emit a buffer_argument structure for the IABs.
#rb none

[CL 4658131 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-13 12:53:41 -05:00
Marcus Wassmer
b5d7db3689 Copying //UE4/Dev-Rendering-HLR@4650617 to Dev-Rendering (//UE4/Dev-Rendering)
#rb none

[CL 4651635 by Marcus Wassmer in Dev-Rendering branch]
2018-12-11 22:25:04 -05:00
Mark Satterthwaite
a7a8582d01 Emulate texture2d-atomics for Metal by creating textures marked as TexCreate_UAV|TexCreate_NoTiling from MTLBuffers as Linear Textures, which means we can bind the buffer for the atomic operations and the texture for normal operations. There may be a performance penalty and unexpected cache interactions with this approach and it is not used anywhere in the engine yet.
#rb none

[CL 4634116 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-05 16:51:47 -05:00
Mark Satterthwaite
0d6980e9aa The buffer_argument type should only be emitted if Metal version is 2.0 or later.
#rb none

[CL 4632999 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-05 13:21:46 -05:00
Mark Satterthwaite
bf1a182e5e All macOS Metal shader formats must use Metal 2.0 or later now, I no longer support Metal 1.2 for desktop.
#rb none
#jira UE-67151

[CL 4628076 by Mark Satterthwaite in Dev-Rendering branch]
2018-12-04 11:43:12 -05:00
Mark Satterthwaite
4a7a1c2474 Don't zero-init threadgroup variables in Metal shaders anymore - it doesn't seem to be necessary these days.
#rb none
#lockdown marcus.wassmer

[CL 4613047 by Mark Satterthwaite in Dev-Rendering branch]
2018-11-29 17:46:09 -05:00
Mark Satterthwaite
f20398a73e Fix the swizzle on Metal for reads from a RWTexture as the Metal function always returns as a vector-4.
#rb none
#lockdown marcus.wassmer

[CL 4612502 by Mark Satterthwaite in Dev-Rendering branch]
2018-11-29 16:31:13 -05:00