Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.
C
docs, README: the phone's GPU row is 47, not 7 -- the third time this figure lagged
vcvkk22c976590a5d
diff --git a/README.md b/README.mdindex 5af2884..0f9afdc 100644--- a/README.md+++ b/README.md@@ -542,7 +542,7 @@ P3 поверхности кадров копировались, и этого| транслируется в NIR и проходит `nir_validate` | 313 || компилируется ir3 в машинный код Adreno | 313 || совпадает с LLVM численно и **рисуется** (softpipe) | 255 |-| запущено на самом GPU телефона (Adreno 7c+ Gen 3, через `msm` в ядре) | **7** |+| запущено на самом GPU телефона (Adreno 7c+ Gen 3, через `msm` в ядре): 7 отрисовкой, 40 диспатчем | **47** |Из 321 точки входа (135 модулей — библиотечные функции `air.visible`, не точки входа) транслируется313, то есть 97,5 %. Смысл каждой операции `air.*` взят из словаря самого компилятора Apple@@ -637,9 +637,12 @@ P3 поверхности кадров копировались, и этогонет ни в одной паре. Это ограничивает действие починки сверху разбросом между прогонами, а недоказывает, что на экране не изменилось ничего.-Строка таблицы «запущено на самом GPU телефона | 7» от этого не меняется: она считает модули корпуса из-456, а набор — сгенерированные модули, в корпус не входящие, и ни один из тех семи шейдеров корпуса-`air.*` не вызывает. Два разных измерения, и складывать их нельзя.+Строка таблицы «запущено на самом GPU телефона» этих модулей не считает: она про модули корпуса из+456, а набор — сгенерированные, в корпус не входящие, и складывать два измерения нельзя. Сама строка+теперь **47** по другой причине: 7 фрагментных шейдеров отрисовкой и 40 вычислительных ядер+диспатчем, множества не пересекаются — ядро не фрагментный шейдер. До прогона ядер там стояло 7, и+некоторое время после него тоже, и это третий раз, когда именно эту цифру оставляет позади работа,+которая её и сдвинула.Чего нет: 64-битное слово состояния семплера (`constexpr sampler`) не разобрано;`air_run` рисует, но не отправляет вычислительные ядра (из ядер Apple отправлено одно, и то программно);diff --git a/docs/air.md b/docs/air.mdindex 1011efb..aa5169d 100644--- a/docs/air.md+++ b/docs/air.md@@ -23,7 +23,7 @@ Of the 456 modules of the device's system `.metallib` files (`tools/air/check.sh| translated to NIR, passing `nir_validate` | 318 || compiled by ir3 into Adreno machine code | 318 || numerically identical to LLVM's own execution, and drawn | 255 |-| **run on the phone's GPU** | **7** |+| **run on the phone's GPU** — 7 drawn, 40 dispatched | **47** |And of the 119 distinct `air.*` operations those modules call (`tools/air/intrincheck.py`):@@ -83,9 +83,13 @@ functions and not entry points at all.narrow types is narrower than before: the `i1`, `i8` and `i16` ones ran and agree; the `f16` oneswere never asked. Nothing refused to run, though: no assertion, no fallback, no module missing.- The row "run on the phone's GPU | 7" in the first table above is unaffected and still reads 7:- it counts modules of the 456-module corpus, and these are generated modules that are not in the- corpus. The two measurements are deliberately not added together.+ The row "run on the phone's GPU" in the first table above does not count these: it counts+ modules of the 456-module corpus, and these are generated modules that are not in it. The two+ measurements are deliberately not added together. That row now reads **47** for a different+ reason — 7 fragment shaders drawn and 40 compute kernels dispatched, which are disjoint sets+ because a kernel is not a fragment shader. It read 7 until the kernels ran, and it stayed 7 for+ a while after they did, which is the third time this one figure has been left behind by the work+ that moved it.- **Two traps this frontend's own checks fell into, kept here for the instances; the general formsare in README's "Как врут собственные проверки", which collects all six and belongs there becausethe others came from the camera, the services and the build rather than from AIR.** Comparing one