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
There was no missing shadow: the note that started this was reasoning, not seeing
vcvkk6aa886eb5c1a
diff --git a/README.md b/README.mdindex aa1f12f..598da75 100644--- a/README.md+++ b/README.md@@ -378,13 +378,19 @@ CoreAnimation; если GPU не запустился, в журнале однответить «да», не заполнив запись, `create_shader` отдаёт пустоту в `strdup`, и оконный серверумирает в `strlen` — это и происходило с `glyes=40` (обработчик отказа в `src/inject.c` печатаеттеперь адрес и цепочку кадров, потому что отчёты о крушениях сюда не доходят). Заполненная запись-падения убирает совсем: тридцать с лишним за прогон превращаются в ноль. `glsb3=1` кладёт в запись-40 («sb3», однопроходное размытие, которым кладётся тень под карточкой переключателя) шейдер по-образцу «ds4» — те же четыре места, без весов. Этого пока **не хватает**: тень всё равно не-рисуется, снимок совпадает до пикселя. Четыре места приходят варьирующими, которые считает-**вершинный** шейдер (у CoreAnimation такой есть: `uniform highp vec2 offset[4]`,-`texcoord0..3 = t0 + offset[i]` — туда и уходят две группы по четыре числа из `function_uniform`),-и вершинная сторона выбирается не этой таблицей. Это следующий шаг.+падения убирает совсем: тридцать с лишним за прогон превращаются в ноль. `glsb3=1` кладёт в запись 40+(«sb3», однопроходное размытие) шейдер по образцу «ds4» — те же четыре места, без весов. Рендер+переписывает его в свой диалект (`sampler2DRect` становится `sampler2D`), компилирует и рисует им:+картинка меняется на уровень-другой по всему экрану там, где прежде не менялась вовсе.++Тени при этом не прибавляется, и **её там и не было**. Функцию взяли в работу потому, что прежняя+запись здесь утверждала, будто тень под карточкой переключателя не рисуется, — но это было+рассуждение «функция отказана, значит чего-то нет», а не наблюдение. Против того же кадра,+нарисованного программным рендером CoreAnimation, край карточки совпадает до уровня: 18, 17, 17,+дальше карточка; мягкого спада нет ни там, ни там. Действие функции нулевое и по второй причине:+две группы по четыре числа, которые ей даёт `function_uniform`, порядка 5·10⁻¹⁹ — для размытия это+ноль, и четыре выборки совпадают. Однопроходное размытие CoreAnimation и просит ровно тогда, когда+радиус слишком мал для многопроходного.Четвёртую — уменьшение картинки в восемь раз, первый шаг размытия подложки — тоже: шестнадцатью выборками вместоодной. Цвет вершин при этом брать не надо: свои шейдеры уменьшения у CoreAnimation его не трогают — этоdiff --git a/userland/src/inject.c b/userland/src/inject.cindex e266983..0497eac 100644--- a/userland/src/inject.c+++ b/userland/src/inject.c@@ -307,14 +307,23 @@ watch_for_faults(void)* own, so this is ds4's own shader with the weights taken out, in the dialect the others are* written in (sampler2DRect, varying, gl_FragData -- the preamble is added by the renderer).*- * Where this stands: with the entry filled the window server no longer dies -- thirty-odd crashes- * a run become none, with glyes=40 as well -- but the shadow is still not drawn, and the picture- * is identical to the pixel. So the fragment source is not the only thing missing. The four places- * reach the shader as varyings that a *vertex* shader computes (one of CoreAnimation's own reads- * "uniform highp vec2 offset[4]" and sets texcoord0..3 = t0 + offset[i], which is where the two- * groups of four numbers function_uniform delivers end up), and that side is chosen by something- * other than this table -- it is not in the three hundred entries after it. That is the next- * thing to find, and it is now a small question rather than a mystery.+ * Where this stands. With the entry filled the window server no longer dies: thirty-odd crashes a+ * run become none, with glyes=40 as well, and the function really is drawn -- the renderer rewrites+ * our source into its own dialect (sampler2DRect becomes sampler2D) and compiles it, and the+ * picture changes by a level or two across the whole screen where before it did not change at all.+ *+ * What it does not do is bring back a shadow, and the reason is that none was missing. This+ * function was taken up because a note here said the shadow under a card of the switcher was not+ * drawn; that note was reasoning from "the function is refused", not an observation. Against the+ * same frame drawn by CoreAnimation's software renderer -- which draws everything correctly, only+ * slowly -- the edge of a card is the same to the level: 18, 17, 17, then the card. There is no+ * soft falloff there in either, so there is nothing of that kind to restore.+ *+ * Its effect is nil for a second reason worth writing down: the four places reach the shader as+ * varyings that a vertex shader computes from "uniform highp vec2 offset[4]", and the two groups+ * of four numbers function_uniform delivers for it are of the order of 5e-19 -- zero, for a+ * blur. CoreAnimation asks for the single-pass blur exactly when the radius is too small to need+ * the multi-pass one, so the four samples coincide and the pass copies what it was given.*/#define CA_SHADER_TABLE 0x1d5b54790UL