#
#asahi-gpu · 2023-04-08 15:59
alyssatook a lot of poking through the assembly to get there, but
#asahi-gpu · 2023-04-08 15:59
alyssaOk, most of the complexity is to handle subnormal deltas
#asahi-gpu · 2023-04-08 15:29
jannaumy scripted actions were too fast for the memory starved, loaded system. I can push it further manually
#asahi-gpu · 2023-04-08 15:21
jannaumaybe not, now under severe memory pressure it seems to have stopped leaking buffers. I can't get past 529 objects, ~5GB
#asahi-gpu · 2023-04-08 15:16
jannauit looks like this will result in the OOM killer and looks unrelated to the GEM_BIND error
#asahi-gpu · 2023-04-08 15:13
jannauTotal 427 objects, 4065640448 bytes
#asahi-gpu · 2023-04-08 15:08
jannauTotal 276 objects, 2541666304 bytes
#asahi-gpu · 2023-04-08 15:07
jannauthe number of buffers somtimes decreases by 10 to 15 buffers but quicky springs back to the previous value
#asahi-gpu · 2023-04-08 15:05
jannauthanks to uhid the buffer leak reproducer is now automated
#asahi-gpu · 2023-04-08 14:57
alyssameh, 24 is short enough I might as well expand it out
#asahi-gpu · 2023-04-08 14:56
alyssa24 without perspective correction
#asahi-gpu · 2023-04-08 14:50
alyssa~40 instructions
#asahi-gpu · 2023-04-08 14:50
alyssaI think Mesa has this code somewhere
#asahi-gpu · 2023-04-08 14:50
alyssaInterpolating a single float with a constant offset requires a huge pile of instructions.. this is a bit annoying for r/e but whatever
#asahi-gpu · 2023-04-08 14:47
alyssa> Unknown 3:0: 0x1
#asahi-gpu · 2023-04-08 14:47
alyssawe do have
#asahi-gpu · 2023-04-08 14:47
alyssainterestingly, the CF bindings are the same (i.e. for Gouraud shading not flat shading)
#asahi-gpu · 2023-04-08 14:44
alyssacf1 is the thing we want to interpolate, cf0 is w
#asahi-gpu · 2023-04-08 14:44
alyssa 4c: a1010140 TODO.ldcf r0_r1_r2, cf1
#asahi-gpu · 2023-04-08 14:44
alyssa 44: a18d004000400000 TODO.ldcf r3_r4_r5, cf0
#asahi-gpu · 2023-04-08 14:44
alyssabarycentric coordinates
#asahi-gpu · 2023-04-08 14:44
alyssaheart eyes
#asahi-gpu · 2023-04-08 14:44
alyssaI hoped this was so!
#asahi-gpu · 2023-04-08 14:44
alyssaOOOoooOOOOOoo
#asahi-gpu · 2023-04-08 14:41
alyssa(disasm is wrong obviously)
#asahi-gpu · 2023-04-08 14:40
alyssawhere the r1l is the 2 here
#asahi-gpu · 2023-04-08 14:40
alyssa^ this is "interpolate at sample ID r1l"
#asahi-gpu · 2023-04-08 14:40
alyssa 2e: 6185014002400300 TODO.iter r1, perspective, cf1, cf0, 2, no_forward, sample, centroid, 0b0
#asahi-gpu · 2023-04-08 14:40
alyssaunclear if there's an extension for it
#asahi-gpu · 2023-04-08 14:40
alyssathe sample ID starts at bit 32 in either case
#asahi-gpu · 2023-04-08 14:40
alyssa11 -- register sample ID
#asahi-gpu · 2023-04-08 14:40
alyssa10 -- pixel centroid
#asahi-gpu · 2023-04-08 14:39
alyssa01 -- immediate sample ID
#asahi-gpu · 2023-04-08 14:39
alyssa00 - pixel centre
#asahi-gpu · 2023-04-08 14:39
alyssasample/centroid together are actually a 2-bit enum, I guess
#asahi-gpu · 2023-04-08 14:39
alyssaas for varyings
#asahi-gpu · 2023-04-08 14:22
alyssaright.. curiously for MSAA it's always doing sample_mask(csel) rather than if{sample_mask}
#asahi-gpu · 2023-04-08 14:21
alyssaand that's it...
#asahi-gpu · 2023-04-08 14:21
alyssasets pass type to punch through
#asahi-gpu · 2023-04-08 14:21
alyssayes, disables tri merging
#asahi-gpu · 2023-04-08 14:20
alyssasets "lines or points"?? I think we decided that might've been disable tri merging need to check my agxdecode is relaly old
#asahi-gpu · 2023-04-08 14:20
alyssadisables early-z testing
#asahi-gpu · 2023-04-08 14:20
alyssacurious
#asahi-gpu · 2023-04-08 14:20
alyssabut after that is a sample_mask 255, 15 and a signal_pix
#asahi-gpu · 2023-04-08 14:20
alyssathis is before the wait_pix?
#asahi-gpu · 2023-04-08 14:19
alyssa- sample mask 255, 0. interesting metal sometimes does a conditional one with a cmpsel for the first source (but not the second)
#asahi-gpu · 2023-04-08 14:19
alyssamsaa discard requires:
#asahi-gpu · 2023-04-08 14:08
alyssabut I've seen the compute kernels (-:
#asahi-gpu · 2023-04-08 14:08
alyssawould love to be wrong about that
#asahi-gpu · 2023-04-08 14:08
alyssai509vcb: AFAICT apple emulates mesh shading entirely in software on current GPUs (-:

plus ›