#asahi-gpu · 2022-12-28 00:09
alyssaugh#asahi-gpu · 2022-12-28 00:07
alyssaand I am 96 commits on top of main#asahi-gpu · 2022-12-28 00:07
alyssaunfortunately most of agx/next is quite broken right now#asahi-gpu · 2022-12-28 00:06
alyssaand everything below that remains in agx/next until it can be fixed#asahi-gpu · 2022-12-28 00:06
alyssathat + the next block becomes asahi/mesa#asahi-gpu · 2022-12-28 00:06
alyssathe stuff on top becomes upstream mesa#asahi-gpu · 2022-12-28 00:06
alyssaMy approach is to reorder commits according to "readiness"#asahi-gpu · 2022-12-28 00:05
alyssatime for a "fun" rebase#asahi-gpu · 2022-12-27 23:59
alyssaugh too much agx/next#asahi-gpu · 2022-12-27 23:59
alyssa 62 files changed, 3490 insertions(+), 816 deletions(-)#asahi-gpu · 2022-12-27 23:51
alyssaGuess I should rebase the world#asahi-gpu · 2022-12-27 23:51
alyssathe deed is done#asahi-gpu · 2022-12-27 21:05
alyssalina: on the verge of saying "screw it" and landing clang-format#asahi-gpu · 2022-12-27 19:37
alyssa0x7fc00000 is the preferred NaN but IDK if it's actually special#asahi-gpu · 2022-12-27 19:34
alyssaok. I guess this is ok.#asahi-gpu · 2022-12-27 19:34
alyssadummy stencil if needed#asahi-gpu · 2022-12-27 19:32
alyssaso we're allowed multiple zs_emit in a shader and they can terminate threads. maybe.#asahi-gpu · 2022-12-27 19:32
alyssawait_pix 1; if (..) { zs_emit NaN }; store; zs emit; sigal_pix 1;#asahi-gpu · 2022-12-27 19:32
alyssafor "if (..) { discard } write depth; side effect;" we get#asahi-gpu · 2022-12-27 19:31
alyssado I really want to disassemble this in my head#asahi-gpu · 2022-12-27 19:31
alyssawhat the heck#asahi-gpu · 2022-12-27 19:31
alyssaokay let's see#asahi-gpu · 2022-12-27 19:25
alyssasmells like a workaround#asahi-gpu · 2022-12-27 19:24
alyssa(surely that last bit is a mistake?!)#asahi-gpu · 2022-12-27 19:24
alyssadepth to any (!)#asahi-gpu · 2022-12-27 19:24
alyssasets pass type to punch through#asahi-gpu · 2022-12-27 19:24
alyssadisables triangle merging#asahi-gpu · 2022-12-27 19:24
alyssaLooks like it inserts the equivalent of `gl_FragDepth = gl_FragCoord.z` for some reason#asahi-gpu · 2022-12-27 19:23
alyssainserts a zs_emit instruction for some reason#asahi-gpu · 2022-12-27 19:23
alyssadisables early-z#asahi-gpu · 2022-12-27 19:23
alyssaunk 2 0 ->3#asahi-gpu · 2022-12-27 19:23
alyssaadding a store into an FS sets "Set when frag shader spills: true" hm#asahi-gpu · 2022-12-27 19:22
alyssastarting with a reference pipeline#asahi-gpu · 2022-12-27 18:50
alyssaIt's not clear a priori how one would implement that on AGX given the zs_emit transform they do#asahi-gpu · 2022-12-27 18:49
alyssabut if you actually terminate the thread when discarding -- or you discard a quad when all threads in it are demoted to helper threads -- then the shader will complete successfully#asahi-gpu · 2022-12-27 18:49
alyssaIf you don't actually terminate the thread when discarding (merely demoting the thread to a helper invocation), the shader will hang the GPU#asahi-gpu · 2022-12-27 18:48
alyssafor (;;) { if (condition that is eventually true) { discard } }#asahi-gpu · 2022-12-27 18:48
alyssathere is an infamous fragment shader, I think it owes to GraphicsFuzz, that does something like:#asahi-gpu · 2022-12-27 18:47
alyssabut it raises its own questions, like how to mask out stores from discarded threads, and how to terminate a quad after all threads in the quad are no longer needed for helper threads#asahi-gpu · 2022-12-27 18:46
alyssaI did not realize that was necessary and not just an optimization#asahi-gpu · 2022-12-27 18:46
alyssaApple's compiler lowers sample mask writes (including discard_fragment) to emitting a NaN depth, if zs_emit is used anywhere in the program#asahi-gpu · 2022-12-27 18:46
alyssaso, I learned last night that sample_mask and zs_emit aren't allowed in the same program#asahi-gpu · 2022-12-27 17:40
alyssathank you#asahi-gpu · 2022-12-27 17:22
corionyes, ma'am. #asahi-gpu · 2022-12-27 17:22
karolherbstfair#asahi-gpu · 2022-12-27 17:22
karolherbst:D#asahi-gpu · 2022-12-27 17:22
alyssa:p#asahi-gpu · 2022-12-27 17:22
alyssathere will be no cursed USB spec references in my house#asahi-gpu · 2022-12-27 17:22
karolherbstahh.. sorry #asahi-gpu · 2022-12-27 17:21
alyssaor #asahi-dev maybe