gpu: Handle a full cache
Previously, we only checked if the cache had exhausted the maximum number of slices. But we also need to check that the height of the slices doesn't exceed the height of the texture.
Previously, we only checked if the cache had exhausted the maximum number of slices. But we also need to check that the height of the slices doesn't exceed the height of the texture.