Commit Graph
5 Commits
Author SHA1 Message Date
Raya Mahardika b81d342bb1 sdm845-common: Fix 32-bit gsl_memory_alloc_pure ABI bridge in libC2D2
- Instead of intercepting gsl_memory_alloc_pure in libgsl.so (which corrupted
  the stack frame and crashed 5-argument callers like libGLESv2_adreno in
  android.hardware.camera.provider-service_32), bridge the legacy 3-argument
  calling convention directly inside libC2D2.so.
- Restore standard Pong calling convention in 32-bit libgsl.so while keeping
  the defensive null check on error return.

Change-Id: I494c15e9f7cca5bcb8a0d786e0034b8fed5dfd9e
2026-10-05 01:15:54 +00:00
Raya Mahardika baca65a148 sdm845-common: Fix gsl_memory_alloc_pure ABI mismatch in 32-bit libgsl
- When graphics blobs were updated from pong, gsl_memory_alloc_pure changed
  its calling convention to 64-bit size, causing 32-bit legacy blobs like libC2D2
  to pass mismatched arguments (flags corrupted to memdesc pointer, memdesc null).
- This caused kgsl_sharedmem_alloc to fail and crash vendor.qti.media.c2@1.0-service
  on null pointer dereference during video encoding (e.g. scrcpy, video recording).
- Add trampoline to correctly bridge 32-bit gsl_memory_alloc_pure calls to
  gsl_memory_alloc_pure_64 and add null check on error path in libgsl.

Change-Id: Ic6b835fbf2ffd876789e9b332bc26634e303c0f4
2026-10-05 00:33:47 +00:00
Raya Mahardika 222fd447bf sdm845-common: Update blobs graphics from pong
Change-Id: I5299ef9b2512fc99abbb2e956be71eef249bcad6
2026-09-28 10:49:58 +00:00
PainKiller3andEdwin Moquete 17957886fb sdm845-common: Kang display blobs from munch
Co-authored-by: Edwin Moquete <edwinmmoquete@gmail.com>
Change-Id: I98a9ffd3aefcbf49cf0a02fee4005d137e3e6163
2026-04-04 10:17:31 +05:00
Bruno Martins aa744be2d8 Import sdm845-common from lineage-19.1 (8ee81e980)
Change-Id: Id464f5828d22874bab1726612fc860c8575719ae
2022-09-20 12:48:00 +01:00