NEW 246388
Max Uniform Block Size (UBO) is too small
https://bugs.webkit.org/show_bug.cgi?id=246388
Summary Max Uniform Block Size (UBO) is too small
munrocket
Reported 2022-10-11 20:58:23 PDT
I am tried to implement compute shader with UBO and faced with a problem that WebGL2 Max Uniform Block Size in Safari is much smaller than in Firefox/Chrome. 16384 instead of 65536.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-10-18 20:59:18 PDT
Kenneth Russell
Comment 2 2022-10-19 11:54:44 PDT
Do you have a test case for your problem? Gregg (gman@, cc'd) raised several of these limits in ANGLE's Metal backend, but I'm not sure they made it into Safari yet. Have you tried Safari Technology Preview? If you try Chrome Canary, go to about:flags, set "Choose ANGLE graphics backend" to "Metal" and restart, is the UBO size larger?
munrocket
Comment 3 2022-10-19 12:25:38 PDT
Interesting. The same issue exist in Chrome Canary (with Metal backend) and Safari Technology Preview. Test case is visible on https://webglreport.com where Max Uniform Block Size is smaller in 4 times.
munrocket
Comment 4 2022-10-21 15:22:57 PDT
In WebKit UBO size in fact almost unlimited. Looks like this bug easy to fix. Test case: https://jsgist.org/?src=cb64%2CeJyNVo9P4zYU_lfeskmkLCQpB6etB2jAwe0k0CF-aJso4kzitGaO3dlO2o71f9-znYQU7k4nQHWfnz9_3_tlngJBShqMgvMlPOoPTJsgCjQ1homJDkZPqygoGKe4vO1cmcjpIp6akqNvJoWhwqB5z1oOxgJgb0pJ7la4LqkhkE2JQtT9cVCZYuuXcQBJu2-Y4fTg5ugTnCxIOeN0L_Emh5R0UHsPMl-2hzIiaqIP9pJm0Zh1ptjMgFYZ3jQ1ZqZHSZLlIn7UOeWsVrGgJhGzMjHzCUfrb7vxME6THHUnu_HCmbeKitu9cYD4HrHh0jBAUlZpsIpehCTTei0i1h-e7NmSqAkTI0jf2W-ypqrgcj6CKctzKtC4GgsvxfvPWW6mIximaT13R6aUTabGW6bOgpxnnCxH8MBl9reFeE3ocZ0PpwbO_7o_P_zz3sZ7H3bSX9--gyTB5TlZwI1ghVQlHFlEuGL_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E7ojm9IScPmTAfmZzB-a8EG74LV3ep_oUeBOQ%3D%3D
munrocket
Comment 5 2022-10-22 02:14:43 PDT
Ok, looks like UBO performance is x10 slower than texture packing for big arrays. Maybe I should close this issue and open a new one about performance.
Note You need to log in before you can comment on or make changes to this bug.