VAAPI: Add check for maximum surface count in EnsureSurfaces