Metal just returns NULL when creating a large 3D texture #3153
Labels
area: correctness
We're behaving incorrectly
backend: metal
Issues with Metal
external: driver-bug
A driver is causing the bug, though we may still want to work around it
type: bug
Something isn't working
Milestone
Description
I'm creating an R32Uint texture of size 1024x2048x256, and this line just returns a NULL handle:
A smaller size works (e.g. 128 for the depth).
It's either a driver bug, or we are hitting another limit that we don't know about.
Repro steps
available upon demand :)
This happens in vange-rs
Expected vs observed behavior
We should return an error, or succeed.
Extra materials
Total number of requested texels is 512M.
The total byte size is 2Gb. This one is interesting.
Metal behaves as if it can't allocate more than 1Gb, hence reducing the Z dimension to 128 works (it brings the total size to 1GB). Metal has a limit for the max buffer size. Maybe it also applies to textures?
Platform
The text was updated successfully, but these errors were encountered: