You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
n06ody Thanks, the proposal is clear: the two translation paths (on-device compile / prebuilt LibPack) share the translator core but have separate answer and adoption layers, debug builds only exercise on-device compile, and LibPack has long gone unexercised. The four Trails 2nd cases in the table (Mali pixel interlock, 8E read-only bitwise format mismatch causing a black 3D scene, shared memory over the limit, binding slot -1) only surface in release builds once in a scene, which makes a strong case.
We agree with the two items you're already doing (mismatching programs stay out of the library at build time; on adoption mismatch, fall back to on-device compile instead of skipping); open PRs when ready. Which gate layer the equivalence check goes into, where the corpus and device profiles live, who wires the release smoke into the merge train, and where the docs section goes will be decided by the Android maintainers, who own the Android gate and lanes; they'll reply here.
② 运行时核对失败回退现编、不跳过:同意,这一条直接修了你踩到的「读档后 3D 全黑」那类问题,PR 开出来我们优先审。
Agreed. (1) A small fixed-corpus parity unit test in the pre-merge gate (≤60 s, routed on the answer / adoption layers of both paths), plus the full per-pack comparison as a pack-time hard gate, not in CI; existing differences go on a shrink-only allowlist. (2) Device capability profiles under android/tests/vk/profiles/devices/ (the s2a-device-caps-v1 line), corpus under graphics/tools/direct/tests/parity_corpus/ — fixtures and synthetic/minimised shaders only, no game shader bytes. (3) The release smoke can't run on the gate machines (no Android device); the Android line will own a daily release-with-LibPack smoke on our Snapdragon 8 Elite, and we'd ask you to run the same criteria on the Dimensity 9000. (4) A "two translation paths" section in CONTRIBUTING.md. The runtime fallback to device compile is welcome; we'll review it first.
Activity
jhaizhou-ops commentedon Nov 21, 2026
n06ody 谢谢,提议写得很清楚:两条翻译路(设备现编 / 出包预编库 LibPack)共用翻译核心、但回答层和收编层是两套代码,debug 包只走现编,LibPack 长期没人跑;表里四个空轨 2nd 的实例(Mali 像素锁、8E 只读按位读格式不符致 3D 全黑、共享内存超上限、绑定槽 -1)都只在正式包进场景才暴露,很有说服力。
你们在做的两项(出包侧不一致程序不进库、运行时核对失败回退现编而不是跳过)方向我们同意,做完开 PR 就好。等价检查接进哪一层门禁、语料与设备档案放哪、release 冒烟由谁接列车、文档放哪一节,这几件交给负责安卓门禁和车道的安卓线来定,在这里回你。
n06ody Thanks, the proposal is clear: the two translation paths (on-device compile / prebuilt LibPack) share the translator core but have separate answer and adoption layers, debug builds only exercise on-device compile, and LibPack has long gone unexercised. The four Trails 2nd cases in the table (Mali pixel interlock, 8E read-only bitwise format mismatch causing a black 3D scene, shared memory over the limit, binding slot -1) only surface in release builds once in a scene, which makes a strong case.
We agree with the two items you're already doing (mismatching programs stay out of the library at build time; on adoption mismatch, fall back to on-device compile instead of skipping); open PRs when ready. Which gate layer the equivalence check goes into, where the corpus and device profiles live, who wires the release smoke into the merge train, and where the docs section goes will be decided by the Android maintainers, who own the Android gate and lanes; they'll reply here.
jhaizhou-ops commentedon Nov 21, 2026
@n06ody 方向同意,四件事这样定:
1. 等价检查放哪层门禁
tests/libpack_device_parity_test.sh之类),语料是仓里固定的一小份(翻译器夹具 + 从你们踩到的那几类各挑代表程序,几十到一两百个),设备口径用仓里的档案。预算按普通单测 60 秒以内;路由写在文件头# 门禁路由:,覆盖两边的回答层和收编层(graphics/tools/direct/compiler/、graphics/tools/direct/vklib/一带、android/native/direct/libpack_vk.c、android/native/nvn/nvn_vk_program_result.c、android/native/direct/device_caps.c),只在改到这些时才跑,放合入前。这样改了一边忘了另一边,入车就会被拦下。2. 语料与设备档案放哪
android/tests/vk/profiles/s2a_sim_tiers.json(模拟档位),真机能力事实建议同目录加android/tests/vk/profiles/devices/<设备>.json,内容就是会话起点日志里那行direct device caps(s2a-device-caps-v1),8E、9000 先入两份。我们这边的骁龙 8 至尊版(Adreno 830,驱动 2150760521)可以补一份。graphics/tools/direct/tests/parity_corpus/。只放翻译器夹具和合成 / 最小化的着色器,不放游戏原始着色器字节(公开仓)。从游戏里踩到的形态,最小化成合成用例再入库。3. release 冒烟谁接:列车跑在没有安卓真机的门禁机上,不进列车。由安卓线接,放在我们的真机通路上:
4. 文档:放根目录
CONTRIBUTING.md加一节「安卓两条翻译路(设备现编 / 出包预编库)」,写清改回答层、收编层或绑定模型时两边都要看,并用第 1 条的单测自证;docs/里的设计文档只链过去,不重复写。② 运行时核对失败回退现编、不跳过:同意,这一条直接修了你踩到的「读档后 3D 全黑」那类问题,PR 开出来我们优先审。
Agreed. (1) A small fixed-corpus parity unit test in the pre-merge gate (≤60 s, routed on the answer / adoption layers of both paths), plus the full per-pack comparison as a pack-time hard gate, not in CI; existing differences go on a shrink-only allowlist. (2) Device capability profiles under
android/tests/vk/profiles/devices/(thes2a-device-caps-v1line), corpus undergraphics/tools/direct/tests/parity_corpus/— fixtures and synthetic/minimised shaders only, no game shader bytes. (3) The release smoke can't run on the gate machines (no Android device); the Android line will own a daily release-with-LibPack smoke on our Snapdragon 8 Elite, and we'd ask you to run the same criteria on the Dimensity 9000. (4) A "two translation paths" section inCONTRIBUTING.md. The runtime fallback to device compile is welcome; we'll review it first.出包侧不一致程序不进库 + 运行时核对失败回退现编 + 装载路共享字节闸(#1836)
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / lib_deny.txt
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
出库×现编双翻等价门禁(#1836 PR-1)
出包侧不一致程序不进库 + 运行时核对失败回退现编 + 装载路共享字节闸(#1836)
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
安卓真机设备档:8e / 9000 Vulkan caps(#1836 PR-1 双翻语料基座)
出库×现编双翻等价门禁(#1836 PR-1)
出包侧不一致程序不进库 + 运行时核对失败回退现编 + 装载路共享字节闸(#1836)
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
安卓真机设备档:8e / 9000 Vulkan caps(#1836 PR-1 双翻语料基座)
出库×现编双翻等价门禁(#1836 PR-1)
出包侧不一致程序不进库 + 运行时核对失败回退现编 + 装载路共享字节闸(#1836)
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
对照包诊断:程序键出库排除(强制现编)S2A_LIB_DENY / 包内 lib_deny.txt
安卓真机设备档:8e / 9000 Vulkan caps(#1836 PR-1 双翻语料基座)
出库×现编双翻等价门禁(#1836 PR-1)