#asahi-gpu · 2023-06-07 20:08
alyssabut there are lots and lots of them#asahi-gpu · 2023-06-07 20:08
alyssanone of these problems are impossible to solve#asahi-gpu · 2023-06-07 20:08
alyssaetc#asahi-gpu · 2023-06-07 20:08
alyssahave fun reading the index buffer yourself in compute#asahi-gpu · 2023-06-07 20:08
alyssaif you feed a geometry shader with inputs with an index buffer, well if you're doing compute, you get to do primitive assembly yourself#asahi-gpu · 2023-06-07 20:08
alyssasimilar issues on the input side#asahi-gpu · 2023-06-07 20:08
alyssaoften#asahi-gpu · 2023-06-07 20:08
ChaosPrincessSo i take it you also need to write indices from "geometry"#asahi-gpu · 2023-06-07 20:08
alyssaboth are decidedly more complicated than "just write to an array"#asahi-gpu · 2023-06-07 20:07
alyssabut either you need to do extra copying (synthesizing vertices that don't actually exist to feed in triangles), or you need to generate an index buffer with primitive restart so you can feed in strips#asahi-gpu · 2023-06-07 20:07
alyssayes, that's fine#asahi-gpu · 2023-06-07 20:07
ChaosPrincessCan agx take triangle strips as vertex shader inputs?#asahi-gpu · 2023-06-07 20:06
alyssaand they can end the strip and start a new strip whenever they want#asahi-gpu · 2023-06-07 20:06
alyssalike... geometry shaders output triangle *strips*, not triangles#asahi-gpu · 2023-06-07 20:06
alyssaYou get lots of weirdness in all the non-corner cases, actually#asahi-gpu · 2023-06-07 20:06
alyssabut the basic idea isn't too bad#asahi-gpu · 2023-06-07 20:06
alyssaPiles and piles of em#asahi-gpu · 2023-06-07 20:06
alyssaChaosPrincess: Well, yeah. Devil's in the details.#asahi-gpu · 2023-06-07 20:06
ChaosPrincessthere is bound to be some weird corner case that makes it ass#asahi-gpu · 2023-06-07 20:06
alyssaFrom what i can tell, D3DMetal is doing geometry-on-mesh-on-vertex which sounds like it has "interesting" performance characteristics#asahi-gpu · 2023-06-07 20:05
ChaosPrincessSeems too "simple"#asahi-gpu · 2023-06-07 20:05
alyssaSimilar for mesh shaders and tessellation shaders#asahi-gpu · 2023-06-07 20:05
alyssaRight, geometry shaders on AGX are conceptually implemented as compute shaders writing to an array and then fed into the rasterizer with a passthrough vertex shader#asahi-gpu · 2023-06-07 20:04
ChaosPrincessOkay, not quite multi output with vertex but more like compute ones writing to an array#asahi-gpu · 2023-06-07 19:50
alyssa(Geometry shaders need like 256 min-max vertices)#asahi-gpu · 2023-06-07 19:50
alyssawhich makes it ~useless for our pruposes#asahi-gpu · 2023-06-07 19:50
alyssaAs far as I know, that's limited to outputting 2 vertices (instead of 1) from the VS#asahi-gpu · 2023-06-07 19:50
alyssaChaosPrincess: By multi-output I assume you mean Metal's "amplification"?#asahi-gpu · 2023-06-07 19:40
ChaosPrincessalyssa: so, the main feature of geometry shaders is the ability to write out multiple vertices. But their max count is known and capped ahead of time. So on hw level, what is the difference between a multi-output vertex shader and a geometry one?#asahi-gpu · 2023-06-07 16:41
alyssaI like the former better than the latter >:#asahi-gpu · 2023-06-07 16:35
eric_engestromlikes this future, much better than the "have to keep a windows partition around just for gaming" from a couple of decades ago#asahi-gpu · 2023-06-07 16:31
alyssawell, we'll know in a few years I suppsoe.#asahi-gpu · 2023-06-07 16:31
alyssahow will vkd3d + agxv + fex + linux stack up against d3dmetal + apple's metal driver + rosetta + macOS?#asahi-gpu · 2023-06-07 16:31
alyssavkd3d + agxv + fex + linux is the dream#asahi-gpu · 2023-06-07 16:31
TellowKrinkle(Also vkd3d is a thing, it works pretty well with Vulkan drivers that aren't MoltenVK)#asahi-gpu · 2023-06-07 16:29
TellowKrinkleHow? Lina isn't going to be running their DX-Metal translator in Linux...#asahi-gpu · 2023-06-07 16:29
alyssaat any rate, it's not super on topic here#asahi-gpu · 2023-06-07 16:29
alyssaTellowKrinkle's#asahi-gpu · 2023-06-07 16:28
alyssathat was my read as well#asahi-gpu · 2023-06-07 16:28
zzywysmmerely thought it would make lina's livestreamed games testing more interesting#asahi-gpu · 2023-06-07 16:28
TellowKrinkleAFAIK the open source part of the patch is mostly proton stuff. The DX12 support is not included, it's a closed source DX-Metal translator from Apple#asahi-gpu · 2023-06-07 16:28
alyssathere are good reasons gamers prefer radv to amdvlk, despite the latter even being open source (!)#asahi-gpu · 2023-06-07 16:28
alyssaupstream community-backed FOSS, even#asahi-gpu · 2023-06-07 16:26
alyssaultimately FOSS will win out technically, usually does#asahi-gpu · 2023-06-07 16:25
alyssalife goes on for us *shrug*#asahi-gpu · 2023-06-07 16:24
alyssaI'm aware.#asahi-gpu · 2023-06-07 16:23
zzywysmhttps://youtu.be/g3n62FOX1Go#asahi-gpu · 2023-06-07 16:23
zzywysmFYI Apple dropped a huge patch on top of wine that adds DirectX12 support: https://github.com/apple/homebrew-apple/blob/main/Formula/game-porting-toolkit.rb#asahi-gpu · 2023-06-07 16:12
alyssathe same basic ops there#asahi-gpu · 2023-06-07 16:12
alyssa 58: f5ad memory_barrier 3, 1, 10