#
✕ nick:bloom
#asahi-gpu · 2021-01-10 23:39
bloomIt's funny, all that reading I did on texture tiling algorithms for Mali never bore much fruit.
#asahi-gpu · 2021-01-10 03:33
bloomwe'll see how desperate I get ;)
#asahi-gpu · 2021-01-10 03:33
bloomlinkmauve: it's an option, but I'd rather stick with Metal if I can just to avoid indirections that might obscure hw behaviour
#asahi-gpu · 2021-01-10 02:58
bloomok, it rendered ok this time, let's see if it's actually linear..
#asahi-gpu · 2021-01-10 02:54
bloomSome combination of allowGPUOptimizedContents and usage should do the trick.
#asahi-gpu · 2021-01-10 02:53
bloomthinks she has it
#asahi-gpu · 2021-01-10 02:47
bloomI will admit Metal is a _lot_ easier to understand than GL.
#asahi-gpu · 2021-01-10 02:46
bloomLooks like I should be able to play games with IOSurface and GetBaseAddress
#asahi-gpu · 2021-01-10 02:45
bloom(I say almost because it's a completely trivial feature, but somehow Vivante [iirc] doesn't support it...)
#asahi-gpu · 2021-01-10 02:44
bloomI know the usual OpenGL tricks, not sure how to do them in Metal
#asahi-gpu · 2021-01-10 02:44
bloomWhich the GPU is almost certainly capable of, just a matter of coaxing the driver into doing it
#asahi-gpu · 2021-01-10 02:44
bloomI'm more interested in the Metal side, rendering off-screen but to something linear / CPU visible
#asahi-gpu · 2021-01-10 02:43
bloomdavidrysk[m]: Right, they probably dropped it so they could pipe in framebuffer compression support quietly and without breaking any apps :)
#asahi-gpu · 2021-01-10 02:42
bloomdavidrysk[m]: That would've sufficed if it were in 11.0 :|
#asahi-gpu · 2021-01-10 02:38
bloom(Bit of an XY problem, trying to get a CPU visible framebuffer)
#asahi-gpu · 2021-01-10 02:35
bloom"On macOS, usage must not include the UsageRenderTarget option" Guess I'm out of luck...
#asahi-gpu · 2021-01-10 02:32
bloomDumping .contents of the buffer to a file and reinterpreting as a linear texture is showing some odd artefacts.
#asahi-gpu · 2021-01-10 02:31
bloomTrying to render into a buffer, I created it as SHARED and used newTextureWithDescriptor:offset:bytesPerRow to get a texture object which I assigned to the color attachment
#asahi-gpu · 2021-01-10 02:31
bloomDoes anyone here know Metal well? Having an issue which I assume is a dumb user error but wouldn't really be possible in OpenGL so...
#asahi-gpu · 2021-01-10 01:47
bloomWhere is this framebuffer?!
#asahi-gpu · 2021-01-07 22:23
bloomroxfan: That's orthogonal, but certainly fun to see :)
#asahi-gpu · 2021-01-07 20:06
bloomthanks :)
#asahi-gpu · 2021-01-07 20:02
bloomContrast eg Adreno
#asahi-gpu · 2021-01-07 20:02
bloomYuzu: No(t yet), which is why I'm concluding there's quite a bit of hw scheduling.
#asahi-gpu · 2021-01-07 20:01
bloomdhewg: I am embarassed by the code, yes
#asahi-gpu · 2021-01-07 20:01
bloomYuzu: Too early to tell and it would be speculation anyway, compiler can only see so much.
#asahi-gpu · 2021-01-07 20:00
bloomsven: thank you :)
#asahi-gpu · 2021-01-07 18:11
bloomthank you :)
#asahi-gpu · 2021-01-07 17:14
bloomwrap code pushed but probably fairly broken rn, whoops
#asahi-gpu · 2021-01-07 16:19
bloomOh, right. I didn't know a priori if that was actual GPU binaries instead of LLVM IR serialization
#asahi-gpu · 2021-01-07 16:18
bloomNor was I, sorry
#asahi-gpu · 2021-01-07 16:18
bloomUsing an arm64 disassembler to disassemble Apples's proprietary code -- noto ok
#asahi-gpu · 2021-01-07 16:17
bloomWriting out own disassembler to disassemble shaders we write ourselves, for ISA r/e -- ok
#asahi-gpu · 2021-01-07 16:17
bloomDisassembly != disassembly
#asahi-gpu · 2021-01-07 16:17
bloom---Correct.
#asahi-gpu · 2021-01-07 16:16
bloomMary_: Disassembly is absolutely a no-no.
#asahi-gpu · 2021-01-07 16:12
bloomthe wrap library will be released shortly, need to disentangle it from unrelated experiment code
#asahi-gpu · 2021-01-07 16:04
bloomMary_: Thanks :)