#asahi-gpu · 2023-07-25 13:41
linaYes but it's not that one, it's a similar one#asahi-gpu · 2023-07-25 13:38
linaLet me test with Mesa shader replacement that it works...#asahi-gpu · 2023-07-25 13:38
linaI'll file a bug#asahi-gpu · 2023-07-25 13:37
linaThose are the broken shaders, prior to the silly optimization path. It uses mediump on the FS...#asahi-gpu · 2023-07-25 13:36
linahttps://searchfox.org/mozilla-central/source/dom/canvas/DrawTargetWebgl.cpp#1231#asahi-gpu · 2023-07-25 13:36
linaI found it...#asahi-gpu · 2023-07-25 13:32
linaYeah but it could be due to the Canvas blits it does or something#asahi-gpu · 2023-07-25 13:31
linaalyssa: I think sheets might not be using WebGL at all??? Maybe this is an internal firefox bug....#asahi-gpu · 2023-07-25 13:13
linaI think I found the same shader and the precisions are right here...#asahi-gpu · 2023-07-25 13:09
linaalyssa: OK, --ozone-platform=wayland is what gets me WebGL2 using the GLES backend properly#asahi-gpu · 2023-07-25 13:06
lina(All relevant structs)#asahi-gpu · 2023-07-25 13:05
linaAre you clearing the cmdbuf before filling it in?#asahi-gpu · 2023-07-25 13:05
linaUninitialized data?#asahi-gpu · 2023-07-25 13:03
linaI think... it might be trying to use a Vulkan backend???#asahi-gpu · 2023-07-25 13:03
linaWait but it says WebGL2: Software?!#asahi-gpu · 2023-07-25 13:02
linaAh, but it does with --use-gl=egl#asahi-gpu · 2023-07-25 12:59
linaAh, not on Chromium...#asahi-gpu · 2023-07-25 12:56
linaI think Firefox might be using ANGLE?#asahi-gpu · 2023-07-25 12:55
linaThe shaders I dumped on Chromium don't have precision qualifiers at all...#asahi-gpu · 2023-07-25 12:53
linaWe still need to make that skip that mediump io thing #asahi-gpu · 2023-07-25 12:46
linaOooooold...#asahi-gpu · 2023-07-25 12:45
linaFirefox 115.0.2#asahi-gpu · 2023-07-25 12:45
linaalyssa: Doesn't happen on Chromium with or without that flag#asahi-gpu · 2023-07-25 12:34
linaBarriers?#asahi-gpu · 2023-07-25 12:33
linaalyssa: Remember there is a submit count limit (64 IIRC per ioctl)#asahi-gpu · 2023-07-25 12:33
linaHappens for me with 100% display scale too (on KDE)...#asahi-gpu · 2023-07-25 12:29
linahttps://docs.google.com/spreadsheets/d/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms/edit#gid=0 works as a test#asahi-gpu · 2023-07-25 12:29
linaalyssa: Maybe needs HiDPI or page zoom? (guess)#asahi-gpu · 2023-07-25 12:13
linaFound the bad shader (probably), it's exactly as expected (sampling after a clamp()) and everything is mediump#asahi-gpu · 2023-07-25 12:11
linaSo that would break the heuristic#asahi-gpu · 2023-07-25 12:11
linaOK yeah, I see texture sampling that uses min() or max() of some input and something else#asahi-gpu · 2023-07-25 12:04
linaGLES I assume? Whatever firefox does...#asahi-gpu · 2023-07-25 12:04
linaI know we try to skip fp16 for texcoords but I'm guessing there's some ALU in there which breaks the trivial pass#asahi-gpu · 2023-07-25 12:04
linafirefox#asahi-gpu · 2023-07-25 12:03
linaDo you think this is a driver bug? If not I think we need to extend no16 to also drop that lowering, and enable it for browsers because there is waaaaay too much broken WebGL out there...#asahi-gpu · 2023-07-25 12:02
linaNo wait, that was just me being confused#asahi-gpu · 2023-07-25 12:02
linaOhh and one more thing!#asahi-gpu · 2023-07-25 12:01
lina*Âno16#asahi-gpu · 2023-07-25 12:01
linaThat DID fix it *together* with fp16#asahi-gpu · 2023-07-25 11:59
linawait wait#asahi-gpu · 2023-07-25 11:56
linaalyssa: No change#asahi-gpu · 2023-07-25 11:54
linaOh...#asahi-gpu · 2023-07-25 11:53
linaIt could also be that it's intended to be point sampling and it's the linear sampling that shouldn't be there...#asahi-gpu · 2023-07-25 11:51
lina"fp16" you say, but "no16" doesn't fix it!#asahi-gpu · 2023-07-25 11:51
linaIt looks like it's sampling a texture linearly with texcoords that are noticeably off or something like that#asahi-gpu · 2023-07-25 11:50
linaalyssa: Unrelated, but have you seen the Google Sheets issue? I haven't had a chance to look at it yet, just curious whether you have any ideas. Basically as you scroll the visible parts of the canvas gets seriously blurred proportional to the distance to cell A1.#asahi-gpu · 2023-07-25 11:46
linaOops ^^#asahi-gpu · 2023-07-25 11:40
lina"secret" project ^^#asahi-gpu · 2023-07-25 11:39
linaBasically when flushing writers we'd batch up all the submits and send it all at once#asahi-gpu · 2023-07-25 11:39
linaE.g. when doing mipmap gen we can totally do that