endGpuUploadAndMaybeRelease