Repository: godot
Issue: 4.0 crash on Raspberry Pi 400 with target=release_debug but not target=debug
Labels: bug,platform:linuxbsd,topic:core,crash

### Godot version

a4e1a07d83a90d0af67ffe17cda4c31134e403d1

### System information

Raspbian Buster 32bit.  Vulkan.  

```
uname -a
Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

cat /etc/debian_version 
10.11

cat /boot/issue.txt 
Raspberry Pi reference 2021-05-07
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, dcfd74d7d1fa293065ac6d565711e9ff891fe2b8, stage4

```


GCC info:  (( have tried 102.0 as well, same issue)

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/arm-linux-gnueabihf/9.1.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../configure --enable-languages=c,c++,fortran --with-cpu=cortex-a53 --with-fpu=neon-fp-armv8 --with-float=hard --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 9.1.0 (GCC) 
```

GLX Info:

```
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Broadcom (0x14e4)
    Device: V3D 4.2 (0xffffffff)
    Version: 20.3.5
    Accelerated: yes
    Video memory: 3660MB
    Unified memory: yes
    Preferred profile: compat (0x2)
    Max core profile version: 0.0
    Max compat profile version: 2.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Broadcom
OpenGL renderer string: V3D 4.2
OpenGL version string: 2.1 Mesa 20.3.5 (git-42a4d76fcc)
OpenGL shading language version string: 1.20

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.3.5 (git-42a4d76fcc)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
```




### Issue description

Memory exception at startup when built with `target` set to `release_debug` but not `debug`
```
Unknown intrinsic: vec1 32 ssa_37 = intrinsic read_first_invocation (ssa_28) ()
```




The crash is at startup:

```
./bin/godot.linuxbsd.opt.tools.32  -v
TextServer: Added interface "ICU / HarfBuzz / Graphite"
Godot Engine v4.0.dev.custom_build.a4e1a07d8 - https://godotengine.org
XInput: Refreshing devices.
XInput: No touch devices found.
WARNING: v3dv is neither a complete nor a conformant Vulkan implementation. Testing use only.
Vulkan API 1.1.0 - Using Vulkan Device #0: Unknown - V3D 4.2
- Vulkan multiview supported:
  max view count: 36
  max instances: 96
- Vulkan subgroup:
  size: 16
  stages: STAGE_FRAGMENT
  supported ops: FEATURE_BASIC, FEATURE_VOTE, FEATURE_ARITHMETIC, FEATURE_BALLOT, FEATURE_SHUFFLE, FEATURE_SHUFFLE_RELATIVE, FEATURE_CLUSTERED, FEATURE_QUAD, FEATURE_PARTITIONED_NV
  quad operations in all stages
Using present mode: VK_PRESENT_MODE_FIFO_KHR
Using present mode: VK_PRESENT_MODE_FIFO_KHR
Using "default" pen tablet driver...
Shader 'ParticlesShaderRD' SHA256: ad637e3e8b1433f866aadd2900491b2dd5722a931a77a75a076319c5adab0157
Shader 'ParticlesCopyShaderRD' SHA256: 700dc031b78d7d8750ca10f584586f80879a93e329542b30915f8b69a019e91c
Shader 'CanvasSdfShaderRD' SHA256: b2e495ab115c6323b57a27f80ab87f386cd7fe2b23ccbebb7f7ee1cc76798312
Shader 'SkeletonShaderRD' SHA256: 8e3eff7ec5cb314696dcc61cebf6ca4163e50f119a4a8f37f5a174a61652483c
Shader 'CanvasShaderRD' SHA256: be4cc1466aa8206fe0d595d79050754c75b5643c0798e4c79c76b76e2752ee60
Shader 'CanvasOcclusionShaderRD' SHA256: ee88ee17aa25736957a15f220804418a0a43238e54a8d046f0650150b176364a
Shader 'ClusterRenderShaderRD' SHA256: e0fe9ebe09965066c034b3dbf6b241e0321788c4c125b9962b2ac108c91c3ec8
Unknown intrinsic: vec1 32 ssa_37 = intrinsic read_first_invocation (ssa_28) ()

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.0.dev.custom_build (a4e1a07d83a90d0af67ffe17cda4c31134e403d1)
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0) [0xb6ac1110] (??:0)
-- END OF BACKTRACE --
================================================================
Aborted
```



### Steps to reproduce


```
scons platform=x11 -c target=release_debug tools=yes  module_denoise_enabled=no  module_etcpak_enabled=no CCFLAGS="-mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -mlittle-endian -munaligned-access"

./bin/godot.linuxbsd.opt.tools.32  -v
```

### Minimal reproduction project

n/a