Files
UnrealEngineUWP/Engine/Shaders
denys mentiei 732e4a22bf Fix for LightGridInjection compilation on Adreno 6xx.
When the following permutation is compiled:
// #define USE_LINKED_CULL_LIST 1
// #define REFINE_RECTLIGHT_BOUNDS 0
// #define USE_HZB_CULL 0
// #define USE_PARENT_LIGHT_GRID 0
// #define USE_THREAD_GROUP_PER_CELL 0
// #define USE_THREAD_GROUP_SIZE_32 0
// #define LIGHT_LINK_STRIDE 2
// #define THREADGROUP_SIZE 64
// #define THREADGROUP_SIZE_X 4
// #define THREADGROUP_SIZE_Y 4
// #define THREADGROUP_SIZE_Z 4

for Adreno 6xx, driver's reg-alloc exhausts all available UGPRs, while not supporting any spilling.

Hence, it fails with:
AdrenoVK-0: Info log: Assertion failed: false && "No UGPR spill support"

Workarounded to use a slightly less optimal InterlockedAdd on mobile.

#rb Dmitriy.Dyomin, tiago.costa
#rnx

[CL 37247597 by denys mentiei in 5.5 branch]
2024-10-17 22:09:45 -04:00
..