Commit Graph
3 Commits
Author SHA1 Message Date
shenandshen a6c3655e21 Android: track disjoint mip layouts and add Vulkan validation tools 2026-10-15 18:53:45 -07:00
shenleiandClaude Opus 5.5 1ceeeaba77 Android: NaN-free float color outputs against the top-of-screen flicker blocks; TBDR clears; mprotect ENOMEM fix
- Shader translator (Vulkan pack only): pixel shaders store 0 instead of NaN in
  float color outputs (XLATE_NAN_OUT=0 disables). ps_foliage occasionally writes
  NaN pixels on Adreno; the downsample / bloom chain spread them into blocks.
  Float min/max/clamp use NMin/NMax/NClamp like Maxwell FMNMX / .SAT
  (XLATE_NAN_MINMAX=0 disables).
- Vulkan backend: pending full clears become loadOp=CLEAR (DM_NVN_TBDR=0
  disables); TBDR / store profile stats; per-batch command pools and query reset.
- Trace diagnostics: NaN / Inf scan of float targets (DM_VK_NANSCAN_PS,
  DM_VK_NANSCAN_BOX), burst readback of the top rows (DM_VK_BURST*).
- nvn_dirty: protection unit max(pagesize, 16K) to stay under the VMA limit
  (mprotect ENOMEM crash); log the process mapping count.
- Upload-MB stat underflow fix; t_vk_perf test fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 19:36:26 +09:00
shenleiandClaude Opus 5.5 3c25cd89fc Android: move the shell to dm/android and the Vulkan backend to dm/gfx/vulkan
Mirror the iOS layout instead of nesting Android inside dm/host:
- dm/android/app       GameActivity app (manifest, java, res, build_apk.sh)
- dm/android/Sources   front_app.c, touch_app.c, front_headless.c
- dm/android/Makefile  entry point (apk / lib / install / headless / tests);
                       rules in build.mk (was dm/host/Makefile.android),
                       run with dm/host as cwd; outputs in dm/android/build/
- dm/android/tests     t_vk_perf
- dm/gfx/vulkan        nvn_vk.c and friends, next to the Metal backend

Only include paths, build paths and docs change; no code changes.
The Mac / iOS source lists do not pick up gfx/vulkan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:59:36 +09:00