disable gpu preprocessing on android with Adreno 730 GPU and earilier (#14176)
# Objective Fix #14146 ## Solution Expansion of #13323 , excluded Adreno 730 and earlier. ## Testing Tested on android device(Adreno 730) that used to crash
This commit is contained in:
parent
e941264b6f
commit
5d9e44b9dc
@ -226,8 +226,14 @@ impl FromWorld for GpuPreprocessingSupport {
|
||||
let device = world.resource::<RenderDevice>();
|
||||
|
||||
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"))
|
||||
// filter some Qualcomm devices on Android as they crash when using GPU preprocessing
|
||||
(cfg!(target_os = "android") && {
|
||||
let name = adapter.get_info().name;
|
||||
// filter out Adreno 730 and earlier GPUs (except 720, it's newer than 730)
|
||||
name.strip_prefix("Adreno (TM) ").is_some_and(|version|
|
||||
version != "720" && version.parse::<u16>().is_ok_and(|version| version <= 730)
|
||||
)
|
||||
})
|
||||
{
|
||||
GpuPreprocessingSupport::None
|
||||
} else if !device
|
||||
|
Loading…
Reference in New Issue
Block a user