svga: Clamp max cube texture levels to supported max 2d levels.