#
#asahi-gpu · 2022-10-27 13:45
alyssalina: "maybe figure out how to do FP math in the kernel"
#asahi-gpu · 2022-10-27 13:41
alyssacurious
#asahi-gpu · 2022-10-27 05:00
phirem1 max seems to just set all those accleration pointers as soon as the depth buffer is enabled
#asahi-gpu · 2022-10-27 03:26
phire"no it's not?" actually, you might be right. opengl makes it near impossible to tell the unresolved MSAA buffer won't be used again later
#asahi-gpu · 2022-10-27 03:23
alyssabut yes metal builds in something like ms_rtt so safari should be using it fine
#asahi-gpu · 2022-10-27 03:23
alyssaphire: no it's not?
#asahi-gpu · 2022-10-27 03:23
phireI have no idea how smart apple's opengl implementation is, and I assume it's all very explict in metal
#asahi-gpu · 2022-10-27 03:22
phireeven when not using the EXT_ms_rtt extention, that's still something a smart opengl implemenation can infer from the commands and optimise in.
#asahi-gpu · 2022-10-27 03:21
linaI guess tomorrow I should poke around those flags a bit and see what I find...
#asahi-gpu · 2022-10-27 03:15
linaThere is an IRQ line that goes high on faults, but the firmware has a 250us timeout or something like that, so there's no way that would be reliable
#asahi-gpu · 2022-10-27 03:14
alyssamali++
#asahi-gpu · 2022-10-27 03:14
linaThey don't have any kind of reasonable fault handling
#asahi-gpu · 2022-10-27 03:14
linaNo chance of that
#asahi-gpu · 2022-10-27 03:14
alyssaI'm curious if Apple does page fault tricks to get away without wasting that memory in the happy path
#asahi-gpu · 2022-10-27 03:14
alyssawhich means 4x larger temp buffers for tvb overflow
#asahi-gpu · 2022-10-27 03:13
alyssathat means multiple samples in the tilebuffer but only one in memory
#asahi-gpu · 2022-10-27 03:13
alyssahttps://registry.khronos.org/OpenGL/extensions/EXT/EXT_multisampled_render_to_texture.txt
#asahi-gpu · 2022-10-27 03:13
alyssaEXT_ms_rtt
#asahi-gpu · 2022-10-27 03:13
alyssalina: ohhh that's an excellent point
#asahi-gpu · 2022-10-27 03:13
phirecya alyssa
#asahi-gpu · 2022-10-27 03:12
linaalyssa: You should...
#asahi-gpu · 2022-10-27 03:12
phiredepth-test and triangle edeges are per sample. color is duplicated over all samples (masked by depth/stencil/rasteriation)
#asahi-gpu · 2022-10-27 03:12
linaAnd then those extra mystery zls_control flags are probably related...
#asahi-gpu · 2022-10-27 03:12
alyssai should sleep
#asahi-gpu · 2022-10-27 03:12
linaOK, then it makes sense that it would have separate buffers
#asahi-gpu · 2022-10-27 03:12
alyssayes
#asahi-gpu · 2022-10-27 03:11
phireyes, multiple depth samples
#asahi-gpu · 2022-10-27 03:11
linaWait, does MSAA also need multiple samples in the depth buffer, or only color?
#asahi-gpu · 2022-10-27 03:11
phirecould the ultra have forced MSAA on for some reason?
#asahi-gpu · 2022-10-27 03:11
linaMaybe not? Hard to tell with my cursed capture card
#asahi-gpu · 2022-10-27 03:10
alyssayes
#asahi-gpu · 2022-10-27 03:10
linaCome to think of it... I think aquarium is doing AA?
#asahi-gpu · 2022-10-27 03:10
alyssaI thought I noted that down somewhere
#asahi-gpu · 2022-10-27 03:10
alyssalina: Yes, that's it
#asahi-gpu · 2022-10-27 03:10
alyssa03:02 < lina> Now I wonder if this for separate buffers for load/partial/store
#asahi-gpu · 2022-10-27 03:09
phireI just really doubt paranoia is the justification. diffrent buffer layouts (store also resolving MSAA being the best example) is a much better reason
#asahi-gpu · 2022-10-27 03:08
lina(Fault handling being terrible is a separate issue)
#asahi-gpu · 2022-10-27 03:08
linaIf it's wrong the GPU will just fault
#asahi-gpu · 2022-10-27 03:08
linaI mean, none of this matters for safety
#asahi-gpu · 2022-10-27 03:06
phireif apple think Metal is a safety boundary....
#asahi-gpu · 2022-10-27 03:05
linaApps, not so much
#asahi-gpu · 2022-10-27 03:05
linaMetal does
#asahi-gpu · 2022-10-27 03:05
phirewait, these are all supplied from userspace, so app has control over the partial anyway
#asahi-gpu · 2022-10-27 03:05
linaYeah, so maybe if the app provides a custom layout Z buffer it can't use compression, and then you need a separate buffer for internal
#asahi-gpu · 2022-10-27 03:05
phiresafe? that's very paranoid. but I guess
#asahi-gpu · 2022-10-27 03:04
phireyes, but if you are doing that, might as well use the same buffer for both partial and store. It's only if the final store buffer has a diffrent layout for some reason that you need seperate buffers
#asahi-gpu · 2022-10-27 03:04
linaSo you'd want to use a separate buffer from the user-provided buffer in that case
#asahi-gpu · 2022-10-27 03:04
linaAnd I guess under some conditions maybe you can't guarantee that the final buffer is "safe"? Like, the GPU can't trust it to read back during an internal reload?
#asahi-gpu · 2022-10-27 03:04
linaIt makes sense to compress the intermediate buffers but not the final ones if the app needs it for some reason
#asahi-gpu · 2022-10-27 03:03
phireoh... multisample resolve?

plus ›