Closed jcm93 closed 3 weeks ago
I could add a check for this but the best I can do would result in a black screen/error return, compared to crashing the thread. If the shade requires a large texture then it probably just wont be compatible with Metal.
Stumbled upon this behavior when doing more ares tests; with the 32X, ares can feed a source texture with a width of 1388 to librashader, which seems like behavior that needs to be rectified on the ares end, but in any case, with a source framebuffer that wide, using certain shaders causes librashader to create textures that exceed the maximum texture width/height in Metal of 16384 = 2^14.
Trace for resize:
Repro (in any order):
crt/crt-maximus-royale.slangp
as the shader (probably others affected).