google / google/filament

Mali vs Adreno

Open
#8,028 4 comments 0 reactions 1 assignee Claimed by @pixelflinger View on GitHub
android gpu specific opengl
Dominant language
C++
Stars
20.5k
Forks
2.3k
Avg merge
2d 14h
Merged PRs (30d)
83

Description

⚠️ **Issues not using this template will be systematically closed.**

**Describe the bug**
High end devices (Samsung S22 ultra) fails (app crashes) to load a larger model (over 10K renderables) with the below error, (100s of these in logcat)
```
Adreno-GSL com.google.android.filament.gltf W : sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
Adreno-GSL com.google.android.filament.gltf E : GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
Adreno-GSL com.google.android.filament.gltf W : sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
Adreno-GSL com.google.android.filament.gltf E : GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.
```

Loading the same model on even low end devices with Mali GPUs doesn't crash with OOM. This is from Samsung S6 Lite 2018 which loads even larger models just fine but high end devices like S22 Ultra fails with above error.
```
[ARM], [Mali-G72], [OpenGL ES 3.2 v1.r38p1-01bet0-mbs2v41_0.b9e42ffa6bf354232ad5ee190bbadf16], [OpenGL ES GLSL ES 3.20]
```
This is affecting our release since most of our customers are Samsung users with Adreno GPU. Any suggestions or help here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.