disable gpu preprocessing on android with Adreno 6xx GPU (#13323)

# Objective

- Fixes #13038 

## Solution

- Disable gpu preprocessing when feature
`SAMPLED_TEXTURE_AND_STORAGE_BUFFER_ARRAY_NON_UNIFORM_INDEXING` is not
available

## Testing

- Tested on android device that used to crash
This commit is contained in:
François Mockers 2024-05-30 16:33:27 +02:00 committed by GitHub
parent 16fe7e64cc
commit e208fb70f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -223,7 +223,10 @@ impl FromWorld for GpuPreprocessingSupport {
let adapter = world.resource::<RenderAdapter>();
let device = world.resource::<RenderDevice>();
if device.limits().max_compute_workgroup_size_x == 0 {
if device.limits().max_compute_workgroup_size_x == 0 ||
// filter lower end / older devices on Android as they crash when using GPU preprocessing
(cfg!(target_os = "android") && adapter.get_info().name.starts_with("Adreno (TM) 6"))
{
GpuPreprocessingSupport::None
} else if !device
.features()